Last active
December 19, 2015 18:38
-
-
Save StevenLangbroek/6000280 to your computer and use it in GitHub Desktop.
Example of using Preload Replace to make your code a bit DRYer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{preload_replace:c='agenda'} | |
{exp:channel:entries | |
channel='{c}' | |
limit='5' | |
dynamic='no' | |
} | |
<article> | |
<h2>{title}</h2> | |
<img src="{{c}_image_main}" alt="{title}"> | |
{{c}_text_body} | |
</article> | |
{/exp:channel:entries} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment