Forums / General / problem with the path given by the operator ezurl (), ezimage (), ezdesign ()
renald david
Thursday 03 March 2011 12:16:42 pm
Hello;
my problem is the following the operator ezimage, ezurl (), ezdesign () gives me the path:
/sport/extension/medical/design/sport/images/logo.gif and I want to get the path:
/extension/medical/design/sport/images/logo.gif Thank you for your help
Lo' F.
Saturday 05 March 2011 8:05:38 am
Hi david,
The result you get depends on the location of the eZ Publish directory. If you get this result it's because the extension folder isn't under the root directory.
If you really want to get rid of the /sport portion of the returned string you may use string operators such as |replace(1,6)
e.g.
{'logo.gif'|ezimage()|replace(1,6)}
this will remove /sport and return /extension/medical/...
Hope this may help somehow :)
loredanaebook.it