Steeve LE PROVOST
2008-12-17 12:29:58 UTC
Hello everybody,
I need your help concerning Jahia 5.
In fact, I'm looking to give the possibility for an administrator to change the stylesheet of a template (the CSS) for the website.
In order to create this, we can have for example 5 different stylesheets, with other colors or other text size...When the administrator want to change the look'n'feel of the website, he has only to click on it and the website will be display for the guest like the administrator wants.
I implemented the "Css Choice" with a multivalue list into the popup of the header logo (Where you can also make a choice for the footer). All this code with the container is into the file "site_settings.inc".
However, the value doesn't change when I modify it, I'm sure it's a coding issue concerning my container declaration or definition (Cf. below)
<content:declareField name="cssChoice" title="CSS Choice" type="SharedSmallText"
titleKey="cssChoice"
value="jahia_multivalue[template3_css.jsp:templates2_css.jsp:template_css.jsp]>template_css.jsp
bundleKey="<%=resBundleID%>"
/>
</content:declareContainer>
</content:declareContainerList>
<bean:define id="cssChoice" value="template_css.jsp"/>
<%
cssChoice = (String) pageContext.findAttribute("cssChoice");
%>
Thanks a lot for your precious help.
Steeve Le Provost
**********************************************************************
DISCLAIMER
This email and any files transmitted with it, including replies and
forwarded copies (which may contain alterations) subsequently
transmitted from Firmenich, are confidential and solely for the use
of the intended recipient.
The contents do not represent the opinion of Firmenich except
to the extent that it relates to their official business.
**********************************************************************
I need your help concerning Jahia 5.
In fact, I'm looking to give the possibility for an administrator to change the stylesheet of a template (the CSS) for the website.
In order to create this, we can have for example 5 different stylesheets, with other colors or other text size...When the administrator want to change the look'n'feel of the website, he has only to click on it and the website will be display for the guest like the administrator wants.
I implemented the "Css Choice" with a multivalue list into the popup of the header logo (Where you can also make a choice for the footer). All this code with the container is into the file "site_settings.inc".
However, the value doesn't change when I modify it, I'm sure it's a coding issue concerning my container declaration or definition (Cf. below)
<content:declareField name="cssChoice" title="CSS Choice" type="SharedSmallText"
titleKey="cssChoice"
value="jahia_multivalue[template3_css.jsp:templates2_css.jsp:template_css.jsp]>template_css.jsp
bundleKey="<%=resBundleID%>"
/>
</content:declareContainer>
</content:declareContainerList>
<bean:define id="cssChoice" value="template_css.jsp"/>
<%
cssChoice = (String) pageContext.findAttribute("cssChoice");
%>
Thanks a lot for your precious help.
Steeve Le Provost
**********************************************************************
DISCLAIMER
This email and any files transmitted with it, including replies and
forwarded copies (which may contain alterations) subsequently
transmitted from Firmenich, are confidential and solely for the use
of the intended recipient.
The contents do not represent the opinion of Firmenich except
to the extent that it relates to their official business.
**********************************************************************