Hi,

try playing with smarty {capture} 
http://www.smarty.net/docs/en/language.function.capture.tpl

Alf
________________________________
From: [email protected] 
[[email protected]] on behalf of Rimvydas Paskevicius 
[[email protected]]
Sent: Friday, March 16, 2012 10:44 AM
To: [email protected]
Subject: Re: [oxid-dev-general] Possible to manipulate parent block

Hi,

It’s not possible to manipulate on  [{$smarty.block.parent}] as it is not 
variable, just a placeholder. When block file is parsed, this 
[{$smarty.block.parent}] is replaced by parent blocks content using regexp.


Rimvydas



From: Shaun Purvis<mailto:[email protected]>
Sent: Friday, March 16, 2012 1:35 AM
To: [email protected]<mailto:[email protected]>
Subject: [oxid-dev-general] Possible to manipulate parent block

When overriding tpl blocks, the original parent block can be inserted with 
[{$smarty.block.parent}].  I was hoping to manipulate this variable, but 
haven't had any success.  I'm starting to think it has some special treatment.  
I tried something like

[{$smarty.block.parent|regex_replace:"</td>":"</td><new tag...>"}]

But it didn't render.  No luck with other modifiers either so it seems it 
cannot be modified.

I'm trying to avoid replacing the entire block for the sake of maintenance.  
Has anybody ever tried to modify the $smarty.block.parent variable, or know if 
it's even possible?

Shaun.

________________________________
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to