Questions tagged [diazo]

Diazo allows you to apply a theme contained in a static HTML web page to a dynamic website created using any server-side technology.

Diazo allows you to apply a theme contained in a static HTML web page to a dynamic website created using any server-side technology. With Diazo, you can take an HTML wireframe created by a web designer and turn it into a theme for your favourite CMS, redesign the user interface of a legacy web application without even having access to the original source code, or build a unified user experience across multiple disparate systems, all in a matter of hours, not weeks.

When using Diazo, you will work with syntax and concepts familiar from working with HTML and CSS. And by allowing you seamlessly integrate XSLT into your rule files, Diazo makes common cases simple and complex requirements possible.

144 questions
8
votes
1 answer

How to split Diazo rules the sane way?

I faced this problem more than once so far and now I'd like to find a perfect solution: when you have a very complex diazo theme, sooner or later you will end up splitting the rules into subsets and move them in separate files. My habit is to keep…
Giacomo Spettoli
  • 4,476
  • 1
  • 16
  • 24
7
votes
1 answer

Add class to body tag using diazo with theme is enabled

I wonder how I can add a class to body tag using Diazo with theme is set. I'll use if-content to check if the portal-column-two exist or not and depending on this put a class into body tag. One solution is:
MrTango
  • 544
  • 2
  • 9
6
votes
2 answers

Stripping empty tags from Plone content with Diazo

I have a Plone site, themed with plone.app.theming. The problem I have is that the design is quite strict and doesn't assume any empty

elements or any other nonsense TinyMCE outputs. Such elements break the intended design. So I want to strip…

spliter
  • 12,321
  • 4
  • 33
  • 36
6
votes
2 answers

Diazo add unwanted html header into json response

I have a blank Plone 4.1 site with only collective.quickupload installed. The upload portlet worked fine until I install plone.app.theming and apply my theme. The files were still uploaded, but the web client got "Failed" status. Inspecting the ajax…
quyetnd
  • 589
  • 3
  • 8
5
votes
1 answer

Remove attributes-on-fly with Diazo

I want to strip the "class attribute" from a tag. What's the best way? Example: Thank's Vito
Vito
  • 1,201
  • 1
  • 10
  • 16
5
votes
2 answers

How to preserve conditional comments in element in a Diazo theme?

I have a Diazo theme file which is based on the html5boilerplate. The theme uses conditional comments on the element to identify particular versions of Internet Explorer, e.g.