Forums / General / problem with the path given by the operator ezurl (), ezimage (), ezdesign ()

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

problem with the path given by the operator ezurl (), ezimage (), ezdesign ()

Author Message

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 Exponential 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