Florent André schrieb:
[…]
Until the subject is hot : In your opinion where is the best place for the
reference (the link) to the CSS selected by combobox for one page ? in the
content (I think no), in metadata ?, ??
IMO the meta data are a good place. The cleanest way would probably be
to use a dedicated element set for layout configuration options:
<component-instance name="http://myproject.org/lenya/layout"
class="org.apache.lenya.cms.metadata.ConfigurableElementSet">
<element name="template" multiple="false" editable="true"/>
<element name="style" multiple="false" editable="true"/>
…
</component-instance>
You still have to tweak the meta data GUI accordingly (just override the
JX template in your publication).
-- Andreas
++
-- Andreas
2/ I don't really study editors for now, so maybe I says some enormous
mistake ! :)
Regards
-- Andreas
Rainer Schöpf wrote:
Hi Anish,
> Thanks Rainer, now it's working. I've applied the patch to
*/tiny_config.js/*
> > Now it doesn't throw any exception when I add border,
> > vspace,hspace
> attributes. But these attributes are not getting reflected in the
image tag
> (after saving).
> > Should they or not as these are deprecated?
These attributes deprecated in HTML 4.01, and not allowed in XHTML.
By default, lenya uses the XHTML basic schema (see
http://www.w3.org/2007/09/dtd-comparison.html
for a comparison to other XHTML schemas.) The problem with the
default
setup for TinyMCE is that is can produce XHTML tags and attributes
that are not allowed in XHTML basic. With the changes, TinyMCE
removes
all these invalid elements and attributes. Otherwise, you get the
exceptions when the editor returns the page to lenya and the schema
validation finds invalid tags or attributes.
You could use another schema, like XHTML Strict, but you will have
the
same problem: if the editor generates tags/attributes that are
rejected by the schema validator, you see the exceptions.
The effect of the attributes like border, vspace, hspace can easily
be
achieved by using CSS, eg. by giving the img element a class (or an
id) attribute:
<img class="img-type-a" .. />
and specifying, eg.
img.img-type-a {
border-width: 1px solid black;
}
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]