Page 1 of 1

Content Block Type

Posted: Sat Oct 10, 2009 6:46 pm
by duclet
So I just stumble across this today as I went over the updated code to CMSModule. I noticed the functions HasContentBlocks, GetContentBlockInputBase, and GetContentBlockInput. There doesn't seem to be much documentation on them so I am wondering if someone who has used these methods, can you please explain what it allows the module to do?

Re: Content Block Type

Posted: Tue Oct 20, 2009 11:17 pm
by duclet
Come on, nobody knows?

Re: Content Block Type

Posted: Tue Oct 20, 2009 11:32 pm
by calguy1000
In 1.6 they do nothing.... it's incomplete functionality.

In 2.0 these functions (or something similar) will allow modules to create different types of content blocks, using the {content_module block='foo' module='mymodule' ....} tag...

CGContentUtils in 2.0 uses this stuff to allow you to create different content block types, like checkboxes, radio buttons, dropdowns, etc.

It only works for simple content types at the moment... but later we may do something to allow for advanced block types.

Re: Content Block Type

Posted: Fri Oct 23, 2009 9:26 pm
by duclet
Cool. Thanks.

Re: Content Block Type

Posted: Mon Nov 09, 2009 4:44 am
by tinhat
I can't wait for this. :)