{% extends "admin/base.html" %} {% block primary_content_inner %} {% if not drupal_url %}

{{ _('ERROR. Missing Drupal URL. The extension won\'t work properly!') }}

{% endif %}
Description Action

{{ _('Clear cache for the synced drupal menus') }}

{% set menu_export_url = drupal_url + menu_export_endpoint %} {{ _("Current menu export URL")}} - {{ menu_export_url }}

{{ _("Current API version")}} - {{ api_version }}

{{ _("Current Cache TTL")}} - {{ cache_ttl_current or cache_ttl_default }}

{{ _("If you made changes on the Drupal side, but you don't see the changes:") }}

  1. {{ _("Clear the Drupal cache via Drush or Admin panel.") }}
  2. {{ _("Clear the CKAN cache by pressing the clear button.") }}

{{ _('If you are using the core API version, you might face the situation when your endpoint differ from the default one.')}} DEFAULT_MENU_EXPORT_EP = "/resource/layout/export"
{{ _('In this case, you can specify the menu export endpoint through the config, e.g.:')}} ckanext.drupal_api.core.menu_export_endpoint = /api/v1/menu_export

{{ _('Clear cache for the custom endpoints') }}

{% endblock %} {% block secondary_content %}

{{ _('Drupal API') }}

{{ _('Cache info') }}

{{ _('Default cache TTL is {} sec.').format(cache_ttl_default) }} {{ _('You can specify the TTL by providing next config option:') }}

ckanext.drupal_api.cache.duration


{{ _('API versions') }}

{{ _("Currently, there are two supported API versions:") }} JSON API {{ _('and') }} RESTful Web Services ({{ _('default') }}) {{ _("You can specify the API version with next config option:") }}

ckanext.drupal_api.api_version
{{ _("There are two options: ") }} json {{ _('and') }} core

{% endblock %}