Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Twig help - looping through all page images
· 9 years ago
You can certainly get at the first, second, third item etc with the |slice filter (https://twig.sensiolabs.org/doc/2.x/filters/slice.html): For example: <div class="col-md-3" style="background-imag
-
Twig help - looping through all page images
· 9 years ago
Hi I've got 4 images attached to my page and I would like to loop over these in twig. However I have 4 rows of content and would like to display 1 image in each row. So something like {% for image in
-
Add a dynamic variable in title var inside mardown header
· 9 years ago
You can create a translation overrides file and put there all your titles. Then you still need to associate each page title to a string, so yo could enter PAGE_TITLE: BLOG: Blog HOME: Home and in
-
Add a dynamic variable in title var inside mardown header
· 9 years ago
Correct me if I'm wrong but this doesn't really solve the issue for individual pages that have different titles for different languages? Would be handy to have all the translations in a single file fo
-
Add a dynamic variable in title var inside mardown header
· 9 years ago
The evaluate_twig() Twig function should work. E.g. evaluate_twig(page.title)
-
Add a dynamic variable in title var inside mardown header
· 9 years ago
My suggestion is that you use a translation file in your theme folder. user/themes/your_theme/languages.yaml en: SITE: TITLE: Your title DESCRIPTION: COPYRIGHT: © Copyright %s Your Comp
-
Add a dynamic variable in title var inside mardown header
· 9 years ago
Did you/someone else find a solution?
-
Add a dynamic variable in title var inside mardown header
· 10 years ago
Ok thanks, I will try but unfortunately I can't use hard coded titles because I'm using a translation service for that, so I will try your option.
-
Add a dynamic variable in title var inside mardown header
· 10 years ago
Hi @sebastienaxinte, usually page titles are unique (site-wide) and thus it makes no sense to use the Twig translation filter. Usually, what you do is to create one page for each language. The docs te
-
Add a dynamic variable in title var inside mardown header
· 10 years ago
Something like: title: {{ “HEADER.MYTITLE”|t } Thanks