Show part of a childpage with thumbnail

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Schlittzky

Show part of a childpage with thumbnail

Post 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.
JeremyBASS

Re: Show part of a childpage with thumbnail

Post by JeremyBASS »

Not really a place for questions... :)

cheers
jeremyBass
JeremyBASS

Re: Show part of a childpage with thumbnail

Post 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
Last edited by JeremyBASS on Wed Mar 25, 2009 3:50 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”