The basename of the file without extension will definitely consist of allowed characters only, as it's used as the name of the function to call. So I did it this way (r446-r448).cmb wrote:Alternatively we could use the basename() of the file containing the view's definition. This will hopefully consist of allowed characters only
(->1.6) meaningful colors for page tags
Re: (->1.6) meaningful colors for page tags
Last edited by cmb on Sat Jan 26, 2013 5:16 pm, edited 1 time in total.
Reason: fixed revision range
Reason: fixed revision range
Christoph M. Becker – Plugins for CMSimple_XH
Re: (->1.6) meaningful colors for page tags
Hmm, that's still on the XH 1.7 roadmap. Is it still relevant?
Christoph M. Becker – Plugins for CMSimple_XH
Re: (->1.6) meaningful colors for page tags
Not really at present. However once it is available it could become a useful tool to indicate certain settings, e.g.:cmb wrote:Is it still relevant?
Hidden pages could get a red page tab, pages with changed meta setting could take a little color, etc.
Re: (->1.6) meaningful colors for page tags
Okay, makes sense. I propose this patch. It makes it possible to add a certain CSS class to the tab's <span>, by passing an optional argument to $pd_router->add_tab(). Style rules for this class can be added to the plugin stylesheet, as usual.svasti wrote:Not really at present. However once it is available it could become a useful tool to indicate certain settings, e.g.:cmb wrote:Is it still relevant?
Hidden pages could get a red page tab, pages with changed meta setting could take a little color, etc.
Christoph M. Becker – Plugins for CMSimple_XH
Re: (->1.6) meaningful colors for page tags
Sounds good
Re: (->1.6) meaningful colors for page tags
Well, you may try the patch.svasti wrote:Sounds good
Christoph M. Becker – Plugins for CMSimple_XH
Re: (->1.6) meaningful colors for page tags
Done (r1532).
Christoph M. Becker – Plugins for CMSimple_XH