We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 708
    • 144 Posts
    hi

    i’ve this code with a tv in my template :
    <img class="img_right" src="[*image*]" alt="" title=""/>
    so i want thet the alt and title attribute take the image name for value...i’m not a php coder but i think its possible with a little bit of code...

    if you know how to do ...

    thx
      AipHesBlOg
      Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
      ---------------------------------------------------------------
      French webdesigner
      • 23571
      • 223 Posts
      I am not sure I completely understand the question, but here is an example of where I had done something similiar: http://www.gregorysmart.com/2009/02/27/modx-documentman-and-jquery-portfolio/

      This is the direct link to the snippet code: http://www.gregorysmart.com/downloads/documentMan_portfolio.txt

      Hope it helps
        • 708
        • 144 Posts
        thx for help but i don’t think it is the way i search...that i search is simple i think,just au little peace of php in the img balise...not necessary a snippet or another plugin for modx...
          AipHesBlOg
          Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
          ---------------------------------------------------------------
          French webdesigner