{% extends 'admin_panel/base.html' %} {% import 'macros/autoform.html' as autoform %} {% import 'macros/form.html' as form %} {% block breadcrumb_content %}
  • {% link_for _("Basic"), named_route='ap_basic.config' %}
  • {% endblock breadcrumb_content %} {% block ap_content %}

    Basic configuration

    {{ h.csrf_input() }} {% set about_url = h.url_for('home.about') %} {% set home_url = h.url_for('home.index') %} {% set docs_url = "http://docs.ckan.org/en/{0}/theming".format(g.ckan_doc_version) %} {% call form.input('ckan.site_title', id='field-ckan-site-title', label=_('Site Title'), value=data['ckan.site_title'], error=error, classes=['control-medium']) %} {{ form.info("This is the title of this CKAN instance It appears in various places throughout CKAN") }} {% endcall %} {% call form.input('ckan.theme', id='field-ckan-main-css', label=_('Custom Stylesheet'), value=data['ckan.theme'], error=error, classes=['control-medium']) %}

    Define an alternative main CSS file.

    {% endcall %} {% call form.input('ckan.site_description', id='field-ckan-site-description', label=_('Site Tag Line'), value=data['ckan.site_description'], error=error, classes=['control-medium']) %}

    {{ _('Set a site description.') }}

    {% endcall %} {% set field_url = 'ckan.site_logo' %} {% set is_upload = data[field_url] and not data[field_url].startswith('http') %} {% set is_url = data[field_url] and data[field_url].startswith('http') %} {{ form.image_upload(data, errors, is_upload_enabled=h.uploads_enabled(), is_url=is_url, is_upload=is_upload, upload_label = _('Site logo'), url_label=_('Site logo'), field_url=field_url, field_upload='logo_upload', field_clear='clear_logo_upload' ) }}

    This is the logo that appears in the header of all the CKAN instance templates.

    {% call form.markdown('ckan.site_about', id='field-ckan-site-about', label=_('About'), value=data['ckan.site_about'], error=error, placeholder=_('About page text')) %}

    This text will appear on this CKAN instances about page.

    {% endcall %} {% call form.markdown('ckan.site_intro_text', id='field-ckan-site-intro-text', label=_('Intro Text'), value=data['ckan.site_intro_text'], error=error, placeholder=_('Text on home page')) %}

    This text will appear on this CKAN instances home page as a welcome to visitors.

    {% endcall %} {% call form.textarea('ckan.site_custom_css', id='field-ckan-site-custom-css', label=_('Custom CSS'), value=data['ckan.site_custom_css'], error=error, placeholder=_('Customisable css inserted into the page header')) %}

    This is a block of CSS that appears in <head> tag of every page. If you wish to customize the templates more fully we recommend reading the documentation.

    {% endcall %} {% call form.select('ckan.homepage_style', id='field-homepage-style', label=_('Homepage'), options=homepages, selected=data['ckan.homepage_style'], error=error) %}

    This is for choosing a predefined layout for the modules that appear on your homepage.

    {% endcall %}
    {{ _('Reset') }}
    {% endblock ap_content %}