Show default lang or not as required

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
woodruff
New Member
New Member
Posts: 3
Joined: Tue Dec 08, 2009 10:27 pm

Show default lang or not as required

Post by woodruff »

Hello,

is there a way to use tips and tricks #4 and #9 on different pages of our choice ?

I mean having some pages who call default lang content if current is not ready (maybe with some tag in each language page if necessary), and still having others with the default behavior of not showing if not ready.
Peciura

Re: Show default lang or not as required

Post by Peciura »

Show default content is property so it can not be set to both values at the same time.
But you can:
1. set show default content,
2. in page extra field specify in what language to show(or not) it
3. in menu and according to that ajust menu template.
woodruff
New Member
New Member
Posts: 3
Joined: Tue Dec 08, 2009 10:27 pm

Re: Show default lang or not as required

Post by woodruff »

Thanks, it seems a good solution for me, but i'm not sure to understand well   ::)

How should I adjust menu template to do this ?
Peciura

Re: Show default lang or not as required

Post by Peciura »

There were some topics about restricting menu for not logged in visitors.
Key part of template looks like

Code: Select all

$node->extra1 == 'restricted' 
http://forum.cmsmadesimple.org/index.ph ... #msg182255

If specified comma separated languages to show, use structure

Code: Select all

{if stripos($node->extra1,$lang)!==FALSE }
...
{/if}


Search forum with keyword "extra1" and you will find more examples.
Locked

Return to “[locked] CMSMS MLE fork”