How can I list GCB in editcontent.php
Posted: Thu Mar 11, 2010 12:03 am
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
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