[Radiant] Extending the admin console

Josh Ferguson josh at besquared.net
Wed Jul 12 01:36:24 CDT 2006


I actually got that helper callback system working like I had planned 
on.. I've used it to add a textarea for entering trackbacks on the new 
and edit pages.. I'm going to use it to create a small comment manager 
on each page under the main page form after the submit buttons; maybe 
ajax style. The number of callbacks is actually surpisingly low.. only 
about 12 to modify the edit/new forms for pages, snippets, and layouts. 
This doesn't yet include adding new tabs. Anyone interested in seeing 
the code?

I think the earlier post about having a special action like 
/admin/plugins/:plugin_name is really great because it allows you to add 
new functionality easily. It doesn't however allow you to modify the 
existing create/edit forms which is where I suspect a lot of 
functionality would want to live for the sake of simplicity. I am 
working tonight on extending the controllers with filters in some way, 
this might require a call to a special callback chain manager, which is 
how I did the other view callbacks.

Josh

Oliver Baltzer wrote:
> On 11-Jul-2006 18:40 -0700, Scott Walter was heard to say:
>   
>> Let me know what you think!  I'm also starting to think about how the
>> existing forms (page, parts, snippets, layout) can be extended.  For
>> example pages don't have any tagging/taxonomy assoicated with them.
>> Wouldn't be cool if a plugin could be developed that could add a tag
>> field to the existing forms.
>>     
>
> Sorry for replying a second time. I think the easiest thing to do this is
> to allow a plugin to register fields with a certain form and associate
> appropriate getter/setter methods with a field. The getter/setter methods
> have to be called in some well defined context, i.e. the page object, such
> that the plugin's implementation can take care of associating the addition
> values with the page.
>
> Oliver
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Radiant mailing list
> Radiant at lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>   




More information about the Radiant mailing list