Announcement

  •  » Engine
  •  » Weird bug with Smarty Foreach properties and prefilters

#1 2014-02-28 11:45:55

flop25
Piwigo Team
2006-07-06
7037

Weird bug with Smarty Foreach properties and prefilters

Hi all

I have an weird and quite annoying bug:
Just set a prefilter (I did in the admin part) to use a foreach properties like http://www.smarty.net/docs/en/language. … .iteration
and then run it: your {$name@iteration} will not render! BUT if you put the {$name@iteration} in the original tpl file, this one and any occurence of $name@iteration added by a prefilter (like {if $name@iteration==5}) are rendered properly!! BUT -again- if you put {$name@iteration}, only $name@iteration will work and others like $name@first will not work.
I have no idea of what's going on and if I should post on Smarty forums too.


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#2 2014-08-15 11:39:46

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Weird bug with Smarty Foreach properties and prefilters

Perhaps it's linked to our prefilters

try the Smarty 2 syntax

Offline

 
  •  » Engine
  •  » Weird bug with Smarty Foreach properties and prefilters

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact