Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
None
Description
As mailed to me by Philipp Jurewicz
------ 8< -------
I worked trough templatersquickstart.pdf as a primer and found the following mistakes
you are also using non standard html tags like <nobr> and other things which prevent the output pages to be valid html pages (at least in the admin mode).
-
- issue 1 **
quote begin===========================
4.3 Adapt the page template
[...]
<body bgcolor=<cms:out actpage="true"
nodeDataName="bgcolor"/>>
quote end=============================
this will transformed to <body bgcolor=something> which is not valid html and in times of xml one should try to add quotes to html attributes
<body bgcolor="something">
I'm not sure how much though this is valid jsp (haven't done this for a while)
- issue 1 **
-
- issue 2 **
quote begin===========================
5 Adding paragraphs
[...]
[...]
[...]
<cms:contentNodeIterator
contentNodeCollectionName="contentParagraph">
<cms:adminOnly>
<tr>
<td>
<cms:editBar/>
</td>
</tr>
</cms:adminOnly>
<cms:includeTemplate/>
</cms:contentNodeIterator>
quote end=============================
- issue 2 **
this leads to unvalid HTML code! you shouldn't render between <tr> tags. I can't reproduce your screenshot
<tr>
<td>
<cms:adminOnly>
<cms:editBar/>
</cms:adminOnly>
<cms:includeTemplate/>
</td>
</tr>
makes more sence
-
- issue 3 **
quote begin===========================
6. Dissecting paragraph templates
[...]
So let us have a look at the dialog definition at
"Config/modules/templating/dialogs/samples/basicTemplate/textImage/".
quote end=============================
- issue 3 **
basicTemplate
does not exist in 2.0 distribution
Checklists
Acceptance criteria