modolabs / Kurogo-Mobile-Web

Kurogo is a PHP framework for delivering high quality, data driven customizable content to a wide range of mobile devices. Its strengths lie in the customizable system that allows you to adapt content from a variety of sources and easily present that to mobile devices from feature phones, to early generation smart phones, to modern devices and tablets
http://kurogo.org
GNU Lesser General Public License v2.1
198 stars 99 forks source link

Added grouping to the Content module. #26

Closed eebs closed 13 years ago

eebs commented 13 years ago

USAGE: To add a group, create a file called 'feedgroups.ini' in $configModule. Add entries by creating a unique section title, and adding a TITLE configuration option for that section. A DESCRIPTION option may be optionally added as well. If there is no description set, group descriptions will be taken from the mandatory module description. If you would like no descriptions at all, set the module description to be empty.

After creating a group entry in 'feedgroups.ini', create a file titled 'feeds-[groupname].ini'. In this file, add content entries as you normally would.

Finally, edit 'feeds.ini' to contain group and/or content entries. Group entries should consist of a unique section identifier, an optional title (the title specified in 'feedgroups.ini' will be used if no title is set in 'feeds.ini') and a GROUP configuration option with the same identifier used in 'feedgroups.ini'.

Content entries in 'feeds.ini' are entered as usual. This should ensure that backwards compatibility is maintained, and sites using the old version of the Content module will continue to function as expected.

OTHER FEATURES: If only a single piece of content is entered in 'feeds.ini', visiting the module url will result in that content being displayed. If there is only one group, that group will be displayed. If there is only one entry in a group, that entry will be shown instead of the group listing.

eebs commented 13 years ago

I should also mention that I can update the documentation as well if this passes your review.

akinspe commented 13 years ago

Please update the documentation as necessary and create another pull request