Jump to content

Zmiana ścieżki do zdjęć - homeslider


 Share

Recommended Posts

otwórz homeslider.tpl zlokalizowany w katalogu z szablonem /modules/homeslider/ (o ile istnieje - jeżeli nie - otwórz oryginalny plik modułu)

 

nastepnie zamienień

<img src="{$link->getMediaLink("`$module_dir`images/`$slide.image|escape:'htmlall':'UTF-8'`")}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />

na

<img src="{$content_dir}modules/images/{$slide.image|escape:'htmlall':'UTF-8'}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />

  • Like 1

Share this post


Link to post
Share on other sites

popełniłem mały błąd, wybacz

poprawny kod:

<img src="{$content_dir}modules/homeslider/images/{$slide.image|escape:'htmlall':'UTF-8'}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />

  • Like 1

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More