Stephen Winnall wrote:
I am trying to implement my company website using Lenya 1.2.4 on Linux. I would claim to
understand Cocoon, but I don't know my way around Lenya yet.

I would like to create a different presentation depending on language (graphics with language text), browser (non-compliance with standards), subject (different
colours) etc. My approach in Cocoon would be to create a pipeline:

match **/css/company-*-*-*.css

    // {2} = language
    // {3} = subject
    // {4} = browser

    generate .../company.xml
    transform with i18n using parameter {2}
    transform for subject using parameter {3}
    transform for browser if needed using parameter {4}

    serialize as text/css

What I don't understand is where to embed this in Lenya. I assume that it needs
to be part of my publication.

Yes, certainly.

Should I put it into resources/shared/css?

That's what I usually do. I add a pipeline to the main sitemap (or create
an extra sitemap for such resources), and put the XSLT and the
CSS XML in the resources/shared/css directory.

IMO Lenya should provide a sophisticated mechanism to support this
functionality. There is already a pipeline for dynamic CSS generation
in resources.xmap and resources-shared.xmap, but it doesn't allow
custom parameters yet.

-- Andreas


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

Reply via email to