Page 1 of 1
Default Content?!?
Posted: Tue Dec 11, 2007 3:42 pm
by jmansa
I'm creating a site page where every page is restricted by custom content. Can I make a default content for every page I will create for now on like this:
{cms_module module=CustomContent} {cms_module module="Uploads" category="MyCategory" mode="summary"}You are not allowed!
Re: Default Content?!?
Posted: Tue Dec 11, 2007 4:01 pm
by RonnyK
Yes,
under
"Site Admin -> Page defaults -> Content"
Ronny
Re: Default Content?!?
Posted: Tue Dec 11, 2007 4:04 pm
by alby
jmansa wrote:
I'm creating a site page where every page is restricted by custom content. Can I make a default content for every page I will create for now on like this:
{cms_module module=CustomContent} {cms_module module="Uploads" category="MyCategory" mode="summary"}You are not allowed!
IMHO:
- use this logic in template and not in content
- don't use comment tag (it's deprecated, read help of CC)
Alby
Re: Default Content?!?
Posted: Tue Dec 11, 2007 4:08 pm
by kermit
if the entire site is that way; why couldn't you put it right in the template?
{if $customcontent_loggedin}
{content}
{else}
{global_content name='notloggedin'}
{/if}