Where is general.phrase.overview-for coming from in bolt ?
Posted: Mon Oct 10, 2016 11:34 pm
I was just going through the default twig theme files in bolt CMS and came across the following lines of code , in the listing.twig file.
My doubt is about the below line of code:
The above line i believe outputs some content. But what exactly does mean and where is it coming from ??
Code: Select all
{% if taxonomytype is defined %}
<h1>
{{ __('general.phrase.overview-for') }}
{% if taxonomy.options[slug] is defined %}
{{ taxonomy.options[slug] }}
{% else %}
{{ slug }}
{% endif %}
</h1>
{# Taxonomies are fetched unordered by design except if 'has_sortorder'
is set to true. This way we keep 'grouping' intact in the listing. #}
{% if not taxonomy.has_sortorder %}
{# If we specified an order in config.yml, sort them here, accordingly: #}
{% set records = records|order(app.config.get('general/listing_sort')) %}
{% endif %}
{% endif %}Code: Select all
{{ __('general.phrase.overview-for') }}Code: Select all
general.phrase.overview-for