{% extends request.ajax ? "layout_blank.phtml" : "layout_default.phtml" %} {% block meta_title %}{% trans 'Example module' %}{% endblock %} {% set active_menu = 'example' %} {% block content %}
{% trans 'Example module title' %}

{% trans 'This is an example extension content' %}

Example module index
Example settings page
Test link with static URL
Test link location with parameter 1
Test link location with parameter 2
Test link location with parameter 3
API example Client area link example
{# Check if example parameters passed to template file #} {% if youparamname %}

{% trans 'Parameters from Controller' %}

You have passed parameter youparamname: {{ youparamname }}

{% endif %} {# Check if example parameters passed to template file #} {% if userid %}

{% trans 'Parameters from URL' %}

You have passed parameter userid: {{ userid }}

{% endif %} {% if api_example %} {# API example #}

{% trans 'API example' %}

Data from API and passed to template from controller
{% debug list_from_controller %}
Data from API accessed directly from template file
{% set list = admin.example_get_something({"microsoft":1}) %}
{% debug list %}
{% endif %}
{% trans 'README' %}
{{ guest.example_readme|markdown }}
{% endblock %}