Content Block Type
Content Block Type
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?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Content Block Type
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.
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.
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.
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.
Re: Content Block Type
I can't wait for this. 
