Hi,
Is there a way for a user to edit the alternate text in an image contained within a repeating region.
Alternate Text
(5 posts) (3 voices)-
Posted 9 months ago #
-
The only way I know of is in the Wysiwyg editor. When you click on the image icon you can add an image inside the editable text area, one of the options that comes up in the dialog box is the "title".
Perhaps if you added the image into the p tag (rather than on the img itself) your client would have better control of the title?
Posted 9 months ago # -
There is another way using javascript:
<img src="image.jpg" id="sliderimage1" class="cms-editable" /> <!-- CMS:REMOVE --> <div id="mes" style="display:none;"> <!-- CMS:END-REMOVE --> <p class="cms-editable" id="nn33">This is what your alt tag will say</p> <!-- CMS:REMOVE --> </div> <!-- CMS:END-REMOVE -->What I have done here is create a paragraph that is editable, but hidden to users not using pagelime. Then using jquery we can add the text from the paragraph into the image alt tag:
<script type="text/javascript"> $(document).ready(function(){ var txt = $('#mes p').text(); $("#sliderimage1").attr("alt",txt); }); </script>Posted 8 months ago # -
Is there any documentation on this CMS:REMOVE feature?
Posted 6 months ago # -
http://docs.pagelime.com/index.php/KB:Troubleshooting
Posted 6 months ago #
Reply
You must log in to post.