I'd like to show on a page a short part of the text of a the childpage. I also want to have the possibility to use a thumnail for the childpages. Can someone help me?
I tired:
Child page content (experimental)
Child page content (experimental)
{foreach from=$cgsimple->get_children('','',$children) item='child'}
{if $child.show_in_menu}
{$cgsimple->get_page_title($child.alias)}
{$cgsimple->get_page_content($child.alias)}
{/if}
{/foreach}
It works but I get the whole text. I just want the first part of. And I'd like to have the thumbnail.
Show part of a childpage with thumbnail
Re: Show part of a childpage with thumbnail
Not really a place for questions... 
cheers
jeremyBass

cheers
jeremyBass
Re: Show part of a childpage with thumbnail
try {assign var=text value=$cgsimple->get_page_title($child.alias)}
{$test|truncate:30:"..."}
you can read more on it here...
http://www.smarty.net/manual/en/languag ... uncate.php
Cheers
jeremyBass
//// edit/////
if your up to date, you should be able to pull the image tied to the page, but I don't remeber that off the top of my head... Cheers
{$test|truncate:30:"..."}
you can read more on it here...
http://www.smarty.net/manual/en/languag ... uncate.php
Cheers
jeremyBass
//// edit/////
if your up to date, you should be able to pull the image tied to the page, but I don't remeber that off the top of my head... Cheers
Last edited by JeremyBASS on Wed Mar 25, 2009 3:50 pm, edited 1 time in total.