[dev] Hiding Help entries

Jan Schneider jan at horde.org
Tue Nov 25 08:55:08 PST 2003


Zitat von John Morrissey <jwm at horde.net>:

> It would be nice to automatically hide Help entries if the corresponding
> functionality/preference is disabled. For example, we disable PGP and
> S/MIME
> support for our users by disabling and locking the preference.
>
> What would be the best way to implement this? Maybe something like:
>
> <depends on="prefName">
>   <entry id="foo">
>     <!-- [...] -->
>   </entry>
> </depends>
>
> This would also be useful if you want to hide parts of a Help entry based
> on
> prefs or configuration, for example:
>
> <entry id="foo">
>   <para>Foo does cool stuff.</para>
>
>   <depends on="pgp">
>     <para>You can encrypt your cool stuff.</para>
>   </depends>
> </entry>
>
> If prefName is disabled (and locked?), Help:: will ignore this
> entry/section at parse time.
>
> Would Help entries need to be disabled based on something other than
> preferences? conf.php settings?

While this makes sense, it adds a huge overhead to the help system. We
currently don't need any authentication or even configuration or loaded
preferences to show the help.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the dev mailing list