2pisoftware / cmfive

DEPRECATED! Please see https://github.com/2pisoftware/cmfive-core for new version
http://cmfive.com
4 stars 4 forks source link

help system fallback #192

Open syntithenai opened 8 years ago

syntithenai commented 8 years ago

The help system is currently tied to modules/actions/subactions. Help is only available on pages where there is a help file matching the current request. Where it is desired to show the same content for multiple actions, the help content must be replicated.

It would be useful to a fallback mechanism so that a module could implement help in a single file and the help delivery system could seek more general help files for the module.

For example the request /tasks/taskgroup-edit/1 would seek help files

until one was found.


Even nicer would be some config mapping to link actions to anchors within a document.

Good time to consider internationalisation too.

careck commented 8 years ago

great idea ... this would work just like the templating mechanism when searching for layout templates.

Internationalisation is a huge topic and not one we have yet dared to approach .. however with help files it may actually be easiest ... just make one file per language.