PureLoneWolf Posted May 10, 2010 Share Posted May 10, 2010 Hi thereIs it possible to specify my own alt text for the image uploaded under the start page editor?I want to use it to give a photo credit if possible so would need to specify my own text completely.Many thankshttp://www.buerstenhaus.de Link to comment Share on other sites More sharing options...
rocky Posted May 10, 2010 Share Posted May 10, 2010 The "Home text editor v1.6" module uses whatever you entered in the "Title" field on the configuration page as the alt text for the image by default. You can change that by editing the following line in modules/editorial/editorial.tpl: {if $homepage_logo}<img src="{$this_path}homepage_logo.jpg" alt="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}" /> Change it to the following: {if $homepage_logo}<img src="{$this_path}homepage_logo.jpg" alt="{*{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}*}Put your alt text here" /> Change "Put your alt text here" to whatever you want the alt tag to be. I commented out the old code instead of deleting it so you can easily change it back in the future if needed. Link to comment Share on other sites More sharing options...
PureLoneWolf Posted May 11, 2010 Author Share Posted May 11, 2010 That's great.Thank you very much for your help..much appreciated Link to comment Share on other sites More sharing options...
Recommended Posts