Skip to content

Instantly share code, notes, and snippets.

@airways
Created January 4, 2011 19:48
Show Gist options
  • Save airways/765285 to your computer and use it in GitHub Desktop.
Save airways/765285 to your computer and use it in GitHub Desktop.
{ext:lg_replace:haystack needles="{exp:channel_images:images entry_id="{entry_id}" backspace="1"}image_{image_id}|{/exp:channel_images:images}{videos}video_{entry_id}|{/videos}"}
{exp:article_pagination:show_page
token="page_break"
page="{get:article_page}"}
{article_body}
{/exp:article_pagination:show_page}
{/ext:lg_replace:haystack}
{exp:channel_images:images entry_id="{entry_id}"}
{ext:lg_replace:replacement needle="image_{image_id}"}
<img src="{image_url}" />
{/ext:lg_replace:replacement}
{/exp:channel_images:images}
{videos}
{ext:lg_replace:replacement needle="video_{entry_id}"}
<div>
<a href="videos/{entry_id}"
</div>
{/ext:lg_replace:replacement}
{/videos}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment