Forums / Setup & design / I want to use the <hr>-Tag in XML fields in ez 3.1.1

I want to use the <hr>-Tag in XML fields in ez 3.1.1

Author Message

Michael Bolien

Wednesday 16 July 2003 8:11:27 am

Ok, I added an entry in the override/content.ini.append.php:
AvailableCustomTags[]=hr

I don't want it as a block, so I added:
IsInline[hr]=true

Then created a file called 'hr.tpl' (content: <hr />) in this directory:
design/mydesign/templates/content/datatype/view/ezxmltags

Added the following to a xml-field in an article:
<custom name='hr'></custom>
Don't work!

I moved 'hr.tpl' to design/mydesign/override/templates/content/datatype/view/ezxmltags as it should be in ez 3.0.2
Don't work!

Trial and error:
moved 'hr.tpl' to design/standard/templates/content/datatype/view/ezxmltags
Don't work!

Any idea????

regards,
Michael

Bård Farstad

Wednesday 16 July 2003 8:27:04 am

Have you cleared the cache?

For this you would need to clear the template override cache ( button in admin ). Or you could to a ./bin/shell/clearcache.sh --clear-all

You need to do this everytime you've added a template to eZ publish. This is because eZ publish caches all templates to prevent slowdown when finding the correct template.

--bård

Documentation: http://ez.no/doc

Michael Bolien

Wednesday 16 July 2003 9:16:02 am

Hello Bård,
thanks for your prompt advice! I cleared the cache, get these messages:
Removing ini cache files in var/cache/ini
Removing template cache files in var/cache/template
Removing template override cache files in var/cache/override
Removing template-block cache files in var/cache/template-block

and now, the site's design disappeared. Instead of my design, all content is displayed in the 'standard'-Design - the fallback I reckon.

BTW: As you know, I'm updating several site from 3.0.2 to 3.1.1 at the time. Due to this I encountered a very strange behaviour.

If you set the switch 'ViewCaching' to enabled, then the site appears correct at the first call. A reload produces several errors, such as
Error: eZTemplate @ design/bephysical/override/templates/pagelayout_section_1.tpl:19[0] Jul 16 2003 18:11:50
Unknown template variable 'node' in namespace ''
Warning: eZTemplate:switch Jul 16 2003 18:11:50
No case match and no default case
Error: eZTemplate @ design/bephysical/templates/head.tpl:16[3] Jul 16 2003 18:11:50
Unknown template variable 'node' in namespace ''
Warning: PHP Jul 16 2003 18:11:50
Undefined variable: functionName in /var/home/eztest/html/lib/eztemplate/classes/eztemplatesetfunction.php on line 155
Warning: eZTemplate Jul 16 2003 18:11:50
Variable 'folder_list' already exists, cannot define
Error: eZTemplate Jul 16 2003 18:11:50
Unknown template variable 'node' in namespace ''

as you see, even the variable "$node" is not known. If you clear the cache with ./bin/shell/clearcache.sh --clear-all

this phenomenon starts over.

Maybe there are correlations?

Michael