How to avoid "No Content given!"

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
Locked
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

How to avoid "No Content given!"

Post by jmansa »

I want o be able to create a new page but without given any content course my content is in the template... Don't ask why :-) Long explanation... I s it possible to create a page without any content?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: How to avoid "No Content given!"

Post by Nullig »

Well you could:

- just put   as the content
- or just
- or put a global content tag that refers to an empty GCB

Nullig
Last edited by Nullig on Wed Mar 26, 2008 10:59 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: How to avoid "No Content given!"

Post by calguy1000 »

or, specify a string like 'Empty' in the content, and then just use {content assign='junk'} in your template, so that nothing gets displayed.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

Re: How to avoid "No Content given!"

Post by jmansa »

Allright... But course I am using 4 different languages, then I have to do so for each language... Could it be possible to insert into the content_props->prop_name all languages like"content_en,content_de,content_fr,content_it" in one record? I am trying to create a page from a module I'm creating rather than "Pages" in content?
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: How to avoid "No Content given!"

Post by duclet »

Is there an option that allow you to set some default content to be in the textarea when you are creating a new content? I am pretty sure there is. Just add   in that.
Locked

Return to “Developers Discussion”