Share » Forums » Developer » override problem,no data after refresh !

override problem,no data after refresh !

override problem,no data after refresh !

Saturday 13 November 2004 5:29:38 am - 6 replies

Author Message

Lazaro Ferreira

Saturday 13 November 2004 6:46:10 am

Hi,

Which files under var are you deleting ?

You should only delete files under:

/var/cache or var/your-site-access/cache

After deleting your cache, you should compile your templates (for ezp3.4+) if template compiler is enabled, you can find more about compiling your templates here :

http://ez.no/ez_publish/documentation/development/scripting/supplied_scripts/template_compiler

Lazaro
http://www.mzbusiness.com

Selmah Maxim

Saturday 13 November 2004 9:59:41 pm

The same error ...

just when i delete the "Cache" files from "var" folder works fine,unless I get node error !

Selmah Maxim

Saturday 13 November 2004 11:06:47 pm

I don`t think this override problem or cache problem ,,,, I think this major bug in the last svn :(

{section show=ne($node.object.contentclass_id,16)}
	{include uri="design:categories_table.tpl"}
{section-else show=eq($node.object.contentclass_id,16)}	
	{include uri="design:category_listing.tpl"}
{/section}

1st time works fine, but when I make refresh I get same page as there is no $node !

I was overriding the categories_table.tpl with category_listing.tpl, and didn`t work, even now !

Selmah Maxim

Saturday 13 November 2004 11:33:07 pm

I found it ... but its shouldn`t be like this (as I think) ...

to speed up the site user shaoudl get the cached files, so in site.ini this var must be :
ViewCaching=enabled

but when its enabled I got this error, just 1st time can see the node, after refresh its ignored !

Lazaro Ferreira

Sunday 14 November 2004 4:14:01 am

Hi,

I didn´t understand why ?

{section show=ne($node.object.contentclass_id,16)}
	{include uri="design:categories_table.tpl"}
{section-else show=eq($node.object.contentclass_id,16)}	
	{include uri="design:category_listing.tpl"}
{/section}

instead use:

{*by the way you can test your $node here because the error said you are not referencing the $node correctly*}
{$node|attribute(show)}
{*if the code above don´t produce $node information listing, then you are not referencing it right look at yout template space names to reference the $node correctly *}
{section show=ne($node.object.contentclass_id,16)}
	{include uri="design:categories_table.tpl"}
{section-else}	
	{include uri="design:category_listing.tpl"}
{/section}

Lazaro
http://www.mzbusiness.com

Selmah Maxim

Sunday 14 November 2004 2:21:46 pm

its have more than 1 or 2 terms ...

not just class id 16, there is more than 6 term, this 2 terms was that start just !
its not my code problem!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu