I have a feature request. I'd implement this myself, but I'm really trying
to resist the temptation to hare off and add features when I ought to be
spending time working on performance. 

 

I think the recent comment that CSS control could be better is correct. The
work that Derek has done recently is an improvement, but having implemented
one or two customized wikis, I think it's still a pain. Here's what I'd like
to see: 

 

Every page that renders should have (at least) the following <link> tags
referencing stylesheets: 

 

1)      The wiki default

2)      The wiki override

3)      The static namespace override

4)      The dynamic namespace override

5)      The static topic override

6)      The dynamic topic override

 

By static, I mean "in a file on the filesystem". Having two lets me put in
my overrides in the second one, which makes it easier for me to upgrade (the
default overrides file is empty or doesn't exist). The namespace and topic
static overrides would just be a URL , probably in a property. I think we
have this now, right? 

 

The dynamic ones are where the power comes in. I picture an aspx page like
Css.aspx that dynamically produces CSS based on the contents of either
_ContentBaseDefinition (the dynamic namespace override) or the topic itself
(the dynamic topic override). We could introduce a special syntax for
producing CSS, but I think it might be better just to use CSS itself. 

 

For example, in your _ContentBaseDefinition, you'd do something like this: 

 

AdditionalStyles: [

.some-class { color: Navy; font-weight: bold }

.something-else { background: grey }

]

 

Etc. 

 

Am I insane? This seems like it would be really easy to do, and it would
move yet another piece of configuration *into the wiki* where it belongs. (I
think all configuration should be in the wiki, including the contents of
flexwiki.config.) 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users

Reply via email to