Developer forum

Forum » Templates » removing file extension

removing file extension


Reply
Hi Guys,

i've created a paragraph with the gallery module attached to display a bunch of sponsor logos.

I've done following:


      <li><a href="http://www..dk" target="_blank">
    
  a>li>
      

the tag  <
!--@Gallery.Image.Name--> returns the full filenam including the extension. And as you see - I really don't need it ;-)

I was thinking some JS, might do the trick  - but unfortunatey that beyond my skills.

Any help is much appreciated


Replies

 
Reply
Thats a clever idea!

I guess you could be able to do it using XSLT - try reading some tutorials :)
 
Reply
For those interested: I've mixed together a JS that did the trick:

<script type="text/javascript" language="javascript">
$(function() {
  $('.list_carousel li a').each( function() {
   this.href = this.href.replace('.jpg',"");
});
    });
  script>

Best Regards
Dennis

 

You must be logged in to post in the forum