Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Override Block in Page
· 11 years ago
thx for your fast respone, I already tried to use the parent function: {% block javascripts %} {# Google Maps #} {% do assets.add('//maps.googleapis.com/maps/api/js?sensor=false') %} {{
-
Override Block in Page
· 11 years ago
Btw you have a typo. Should be {% block javascripts %}
-
Override Block in Page
· 11 years ago
You need to use the parent() twig function: http://twig.sensiolabs.org/doc/tags/extends.html#parent-blocks
-
Override Block in Page
· 11 years ago
Hi@all, is it possible to override (or extend) an existing block which is defined in a template? I want to include a special JS-file on a specific page. So I tried to "override" the javascrips block w
-
Best Practice
· 11 years ago
Looks like your pulling the date form page.date so yes, it's the parent page. If you want the date from the item your looping over, you would need to use press_item.date.
-
Best Practice
· 11 years ago
rhukster, I came across a bug that I am having an issue finding solution for regarding the blog feed on the homepage. I am unsure where it's pulling the date from - seems maybe from the homepage date?
-
Best Practice
· 11 years ago
the dent in my desk, where I am pounding my head from both frustration and "duh" moments is growing larger. Thanks for your help, once again.
-
Best Practice
· 11 years ago
Does the image file exist in the page? Try dumping post.media
-
Best Practice
· 11 years ago
Placing the dump is showing that all the YAML info is coming through as expected. I put <img src="{{ child.header.upcomingrace.image }}" /> in the code and got <img src="biloxi.jpg" />, wh
-
Best Practice
· 11 years ago
When in doubt try doing this: dump(child.header) Then look in the messsages tab in the debugger (must be turned on of course). Then you can inspect and dig into the data and see what your getting bac