Content Block Type

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
Post Reply
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Content Block Type

Post 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?
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Content Block Type

Post by duclet »

Come on, nobody knows?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Content Block Type

Post 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.
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.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Content Block Type

Post by duclet »

Cool. Thanks.
User avatar
tinhat
Forum Members
Forum Members
Posts: 65
Joined: Fri May 23, 2008 6:33 am
Location: Sydney, Australia

Re: Content Block Type

Post by tinhat »

I can't wait for this. :)
Post Reply

Return to “Developers Discussion”