I've totally revamped the com_weblinks admin component (in the Joomla
SVN trunk) in line with new MVC classes and technologies that are
available, and also some new lines of thinking.
The highlights are:
* List view model derives from JModelList
* List model constructor sets the state from the request
* Edit view model derives from JModelItem
* Edit form is running off the new JForm class
* Controllers have been split up
* Trash management is integrated into the list view
* Use of JHtml helpers has been improved
* Save then new feature added
* Namespacing of the language strings
The last one is among the most significant changes. We are going to
move away from our home-grown ini parser and use the built-in parser.
This requires that all keys contain only A-Z0-9_ (ie, no spaces or
other characters). There are a couple of reserved words like yes, no,
true, false, etc so what I've done is namespace all of the keys.
Keys only relating to com_weblinks are prefixed with Weblink_Something
Keys relating to system words are namespaced with something beginning
with "J" with some sort of context. For example, common words used in
a Toolbar are prefixed with JToolbar_ (eg JToolbar_Save,
JToolbar_Empty_trash), and so on. The admin en-GB.ini and
en-GB.com_weblinks.ini have a couple of other examples. The idea is
that any "J" key will have a fairly reliable meaning attached to it so
that 3PD's don't have to duplicate many common words. For example,
JCommon_Yes will mean "Yes", JCommon_Number_Column is always the
column heading for the number column in list views (usually replaced
with just "#"). Anyway, you should get the idea.
Initial comment on the redesign of com_weblinks is welcome.
Note that validation is broken because of the upgrade to Mootools 1.2
but it's all working enough for you to get the idea.
Regards,
Andrew Eddie