Hi,
I feel limited by the 6 or so options that I can select from in the frontpage settings. I see on GutHub that this settings page hasn't been updated in two years. I'm about to start an experiment to allow plugins for the front page which includes converting the core options into plugins. Once this is done, people can then write their own plugins/blocks/modules to appear in the centre of the front page.
First question, is this something people would be interested in? Or are you happy with the 6 present options? Or am I missing something that allows me to put custom information into the centre of the homepage?
Second question, where should the code for these go? I was thinking something along the following line:
- Move frontpage and frontpageloggedin to their own setting page under "Front Page"
- Move maxcategorydepth, frontpagecourselimit, newsitems and commentsperpage into settings pages for their own plugins.
- Change the selectors for frontpage and frontpageloggedin to a selector similar to the text editor selector.
- Put the code in a directory in /classes called frontpage in each directory or local/ directory and then in a single file for each 'module'. eg. /course/classes/frontpage/enrolledcourses.php or /local/myplugin/classes/frontpage/mymodule.php
- Settings for these could go in a class in the same file I imagine.
- I'll then render the html for these using a renderer so that they can be overridden in themes.
Does anyone see any problem with that? Or does anyone have anything to add?
Thanks,
Michael