Derek Harmel wrote:
I am trying to figure out how to include a dynamic CSS file so that content maintainers can add their own CSS since BXE doesn't seem to include any sort of styling functionality, very frustrating.

I am having an extremely difficult time understanding the Lenya xmaps despite working with it for the past month. I have read the more helpful sites, but they still haven't been able to help me. I hate to say it, but Lenya is not very friendly.

i'm with you on this :-D

but be assured, after one or two months of utter confusion, things become easier. initially, lenya is like shooting sparrows with cannons, as a german proverb says. everything is fiendishly complicated and much too powerful and generic for simple problems. but after a month or so, the sparrows are all dead, and when you start tackling the bigger targets, cannons are actually quite fun to use.

Anyway, enough ranting. My thought was to have a CSS automatically included by page2xhtml.xsl using the line:

<link rel="stylesheet" href="thispage.css" type="text/css" />

is this just a static stylesheet, or do you want your editors to be able to change it on a page-by-page basis?

(caveat: i'm using lenya 1.4)

if it's static, no need to deal with pipelines, just reference it as href="{$root}/css/yourstyle.css" and put it in <pub>/resources/shared/css. if you want one stylesheet per page, you could use "{$root}/css/{$document-id}.css", but this pretty much negates the idea of content management, since you will want consistent design.

if your editors require slightly more freedom than bxe's toolbar offers, you can define classes in your stylesheet, which the editors can then use by editing the tag property "class" in the editor (right click).

i've been wondering for a while: if my relax ng scheme defines a set of allowable classes for elements (as opposed to "any valid xml name"), will bxe offer a dropdown menu? i.e., i define three valid classes for <img> elements, i.e. "centered", "float-left" and "float-right". it would be cool if users could just select those.



regards,

jörn


--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to