Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Vadym Member
@b.da · Joined 4 years ago · 90 posts · 0 topics · 26 reputation
Badges
Recent posts
-
Struggling with Blueprint: Custom header data form in Admin area
· 3 years ago
@Flop ok, working solution, but I haven't figured out yet how to make it safe when updating the admin plugin. The idea is to add an option site.private to field type acl_picker (with data_type: access
-
Struggling with Blueprint: Custom header data form in Admin area
· 3 years ago
@Flop, this happened because header.access: already exist in the security tab (Page Access - which is quite new) with validate: type: array for the test purpose you must remove a field (unset@: true)
-
Admin plugin page blueprint, field type “pages”: slug (value) ignores translation
· 3 years ago
so use header_var('internalLinkVariant1'), fallback to theme_var, or page.header.internalLinkVariant1 instead. Just test it ) {% set internalLinkVariant1 = page.find(header_var('internalLinkVariant1'
-
Admin plugin page blueprint, field type “pages”: slug (value) ignores translation
· 3 years ago
hi, @clivebeckett, you can set the var in the page template (as i understand you define var in the theme blueprints.yaml file, if so) an example for a pages form field could be {% set internalLinkVari
-
What would cause page.url to suddenly stop working?
· 3 years ago
ok @pamtbaau, got it, yep that was a first guess, since one var contains an escape filter (and is processed), the other doesn't @pamtbaau: Curious about: that would be my second step 😉
-
What would cause page.url to suddenly stop working?
· 3 years ago
hi, @boatful just a guess, try {{ p.url|e }} and check in the admin panel Configuration > Twig Templating > Autoescape variables
-
Archive Plus plugin: How to add new translation
· 3 years ago
@mikselli, try add to the language file of your inheritance theme some translation you need, just change the values of MONTHS and SHORT_MONTHS to Finnish fi: PLUGINS: ARCHIVE_PLUS: MONTHS:
-
Filtering collection by category
· 3 years ago
If I understand correctly what you want to achieve, try this title: Films content: items: '@page.children': '/programme' movie: items: '@taxonomy.category': movie and add to the p
-
TWIG: Translation dependent on page header (frontmatter) content
· 3 years ago
I use a similar approach, but with a set variable, something like {% set event_freq = ('PLUGIN_EVENTS.EVENTS.FREQ_' ~ page.header.event.freq|upper)|t %} ... <span>{{ event_freq|e }}</span>
-
Title on results page filtered by taxonomy
· 4 years ago
just added a similar one 🤣