CMS page content parameters in mySQL

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
iNSiPiD

CMS page content parameters in mySQL

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: CMS page content parameters in mySQL

Post 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.
iNSiPiD

Re: CMS page content parameters in mySQL

Post 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. ;)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: CMS page content parameters in mySQL

Post 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.
superkat

Re: CMS page content parameters in mySQL

Post by superkat »

Is there any documentation or examples for making new content types??
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: CMS page content parameters in mySQL

Post by Ted »

There is no documentation, unfortunately.  However, looking at lib/contenttypes/Content.inc.php should shed some light on what's involved.
Locked

Return to “CMSMS Core”