How can I list GCB in editcontent.php

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
will83
Forum Members
Forum Members
Posts: 88
Joined: Sat Aug 02, 2008 6:23 pm

How can I list GCB in editcontent.php

Post by will83 »

Hi,

I want to do something special : in editcontent.php, I want to have the possibility to create a list of GCBs. Users could choose easily one or more item to put them in the field so in the page (it is pure ergonomy).

For example {content block='Description'} result in editcontent.php like a new WYSIWYG field above the WYSIWYG content field with "Description" as name.

I want {content gcb_list="Myblocks"} result in editcontent.php like a 2 columns table above the WYSIWYG content field.
At the left of the table, all availaible GCBs in listhtmlblobs.php.
At the right of the table, an empty column.
And for users, the possibility to add a particular GCB (or more), in the right column to put them in the page.
(An example of the table, i don't know if a plugin exists for scriptaculous : http://blog.jeremymartin.name/2008/02/e ... query.html).

The output will be for example :
"{global_content name='exemple1'}{global_content name='exemple2'}"

Is it possible to do this with a modification of function.content.php plugin?

Thank you
Last edited by will83 on Thu Mar 11, 2010 12:16 am, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: How can I list GCB in editcontent.php

Post by jmcgin51 »

How about using the custom dropdown in TinyMCE?
Post Reply

Return to “Developers Discussion”