Page 1 of 1

CMS page content parameters in mySQL

Posted: Tue Aug 02, 2005 1:30 am
by iNSiPiD
Does anyone know what the 3 parameter columns are for in the cms_content_props table?

Are these reserved for modules or can I tap into these some way and perhaps use them for compund links etc?

e.g. page=index.php?page=events&year=&month=...

Enquiring minds wanna know.

Re: CMS page content parameters in mySQL

Posted: Tue Aug 02, 2005 1:46 am
by Ted
They're there for content types to use...  so while you could tap into them somehow, it would require some custom coding of a new module type.

I just wanted to be sure I had every possible field when I made that table.

Re: CMS page content parameters in mySQL

Posted: Tue Aug 02, 2005 2:02 am
by iNSiPiD
Ah...so I shouldn't just be whacking my own data in there then? [oops]

Could oyu give an example of how they might be used properly? I didn't come acorss any populated fields.

NB: Just so you know, the answer is yes. This means I've got my driver's licence and am now playing around under the hood. ;)

Re: CMS page content parameters in mySQL

Posted: Tue Aug 02, 2005 11:58 am
by Ted
Well, keep in mind this is only in relation to making new content types...

Say you're designing a content type like a calendar of events (yes, we have a module for this, but I was trying to think of a weird example).  Anyhoo, instead of having to save all of your data with cryptic names like 2005_05_10_14_33, you can put the date in param1, the time in param2, etc.  It's for instances where the properties of a content type might have more than one primary key, basically.

Re: CMS page content parameters in mySQL

Posted: Tue Aug 16, 2005 8:03 am
by superkat
Is there any documentation or examples for making new content types??

Re: CMS page content parameters in mySQL

Posted: Tue Aug 16, 2005 1:43 pm
by Ted
There is no documentation, unfortunately.  However, looking at lib/contenttypes/Content.inc.php should shed some light on what's involved.