get content from subpages using CGSimpleSmarty and MLE settings

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
korneliusz
Forum Members
Forum Members
Posts: 15
Joined: Wed Oct 28, 2009 10:22 am

get content from subpages using CGSimpleSmarty and MLE settings

Post by korneliusz »

hi

how to get content from subpages using CGSimpleSmarty and MLE ?

i have three language site PL, EN, DE

                {foreach from=$cgsimple->get_children('','',$children) item='child'}
                    {if $child.show_in_menu}
                         
                                {$cgsimple->get_page_content($child.alias)}
                         
                    {/if}
                {/foreach}

but on all these site it always gets content from EN subpages
alby

Re: get content from subpages using CGSimpleSmarty and MLE settings

Post by alby »

korneliusz wrote: how to get content from subpages using CGSimpleSmarty and MLE ?
Have you look in Modules/Addon patchs subforum of CMSMS MLE?

Alby
korneliusz
Forum Members
Forum Members
Posts: 15
Joined: Wed Oct 28, 2009 10:22 am

Re: get content from subpages using CGSimpleSmarty and MLE settings

Post by korneliusz »

i dont know what patch i need
alby

Re: get content from subpages using CGSimpleSmarty and MLE settings

Post by alby »

korneliusz wrote: i dont know what patch i need
humm.... it does not seem so complicated ...
Modules/Addon patchs subforum > CGSimpleSmarty

Alby
korneliusz
Forum Members
Forum Members
Posts: 15
Joined: Wed Oct 28, 2009 10:22 am

Re: get content from subpages using CGSimpleSmarty and MLE settings

Post by korneliusz »

hmmm but i have CGSSimpleSmarty 1.4.3

my question was how to get content from subpages when i have languagemodule ?

as i said this code
                {foreach from=$cgsimple->get_children('','',$children) item='child'}
                    {if $child.show_in_menu}
                         
                                {$cgsimple->get_page_content($child.alias)}
                         
                    {/if}
                {/foreach}

takes always content from one langage version
no matter if i'm on PL, DE or EN site i always get EN subpages content
i tried put lang="$lang" someware in this function but nothing helps
alby

Re: get content from subpages using CGSimpleSmarty and MLE settings

Post by alby »

korneliusz wrote: my question was how to get content from subpages when i have languagemodule ?
Have you read the README FIRST post in Modules/Addon patchs subforum?

Alby
Locked

Return to “[locked] CMSMS MLE fork”