Default Content?!?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Default Content?!?

Post 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!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Default Content?!?

Post by RonnyK »

Yes,

under

"Site Admin -> Page defaults -> Content"

Ronny
alby

Re: Default Content?!?

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Default Content?!?

Post 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}
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Post Reply

Return to “Developers Discussion”