Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]ray73864[/eluser]
Soooo, here's my idea of widgets, and please oh please do criticise and all that, comments very much welcome Smile

Anyway, the way i see the widget system working is sort of like the modules system and the navigation module combined. You create a module, and then define in that module (in a similar way to the details.xml file) a 'widget.xml' file, which basically says what version the different widgets are, what the view files are for those widgets, etc...

Then, in a special new 'widget' module, it goes through and lists all the widgets available on the CMS, then, like navigation, you have special widget areas on the page, eg. header, footer and sidebar. You use the widget module to activate/deactivate widgets and also assign them to different areas on the page.

This way, you could have a news ticker on the top of the page coming from the news module, and at the same time display the top 5 news articles in the sidebar underneath the navigation coming from another widget in the news module.

When a module is deleted, the widgets that it has go with it, just like what happens when you delete a module and it disappears from the admin panel.


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 07-21-2009, 02:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB