Jump to content

ricavare nome file in tpl


Recommended Posts

ciao mi potreste aiutare per cortesia

devo modificare il nome di un file contenuto in una variabile di un modulo

 

<span>{$filter.properties.texture}</span>

 

da /img/co/125.jpg   a  /img/co/mini-125.webp

 

grazie mille 

Ilario

Link to comment
Share on other sites

sono riuscito era abbastanza semplice

<span class="color texture" style="background-image:url({dirname($filter.properties.texture)}/mini_{basename($filter.properties.texture,".jpg")}.webp"></span>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...