AdvancedContent and Content Dump
Posted: Tue Oct 19, 2010 4:38 pm
Thinking of using AdvancedContent to enable more flexible content insertion in pages..
But would love to use Content_Dump plugin to showcase Projects on the home page..
Could anyone point me in the right direction to finding the values of the fields I create in
i.e
So question is.. what syntax would I be using to target the first image in the array, so I could use it as an image on home page as a summary of the page content.. possibly along side the Page title in question and a brief summery text field.
{content_dump}
{foreach from=$dump item=dump}
{$dump->content->data}
{$dump->content->alias}
{$dump->extensions->video}
{/foreach}
Any pointers here?
But would love to use Content_Dump plugin to showcase Projects on the home page..
Could anyone point me in the right direction to finding the values of the fields I create in
i.e
Code: Select all
{AdvancedContent block="images" label="Select your beloved images" block_type="select_multiple" items=":::list_files dir='images':::" values=":::list_files dir='images' display='relurl':::" smarty="true" assign="images"}
{assign var="img_array" value='|'|explode:$images}
{foreach from=$img_array item="image"}
{if $image !=""}
<img src="{uploads_url}/{$image}" />
{/if}
{/foreach}
{content_dump}
{foreach from=$dump item=dump}
{$dump->content->data}
{$dump->content->alias}
{$dump->extensions->video}
{/foreach}
Any pointers here?