Page 1 of 1

Show part of a childpage with thumbnail

Posted: Wed Mar 25, 2009 9:45 am
by Schlittzky
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.

Re: Show part of a childpage with thumbnail

Posted: Wed Mar 25, 2009 2:11 pm
by JeremyBASS
Not really a place for questions... :)

cheers
jeremyBass

Re: Show part of a childpage with thumbnail

Posted: Wed Mar 25, 2009 3:48 pm
by JeremyBASS
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