Macro parameter for a link

Author Message

Samuel Sauder

Friday 06 May 2005 10:13:11 am

In a template, I am trying to replace a string like "%current_user%" in a URL with the actual value. Do I need to create my own operator to do a simple string replace? Or create my own link class?
In attempting to use the "contains" operator it doesn't indicate what position it is at. So I don't know the offset to "remove" it.
Just making sure I'm not missing something obvious :)

Eivind Marienborg

Sunday 08 May 2005 4:03:37 am

http://www.ez.no/community/forum/developer/contrib_str_replace_template_operator

That migt help you :)

Samuel Sauder

Monday 09 May 2005 8:10:36 am

Thank you!
As I was researching more I found this which is very powerful if I want to dive into building my own extension to call **ANY** php function/logic.
http://ez.no/ez_publish/documentation/development/extensions/template_operator

Idea: Why not create a pass-through function that will attempt to execute any php function with a variable number of parameters? Maybe harder than I think... Any comments?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.