VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rasika on July 26, 2013, 15:22:53 PM

Title: How to add HTML code in to the short description
Post by: rasika on July 26, 2013, 15:22:53 PM
Hello,

Please help me to add html code in to the short description area.

My joomla version is 2.5.11 and virtuemart version is 2.0.16.

Thank You
Title: Re: How to add HTML code in to the short description
Post by: rasika on July 27, 2013, 08:02:02 AM
Hello,

Any help ?

Thank You

Title: Re: How to add HTML code in to the short description
Post by: franzpeter on July 27, 2013, 11:15:34 AM
Never did it before but I did try it out. If you would like for example to add a h2 tag and let one word appear as <strong> to a short description like: This is my short description, you just put in inside the short description field inside the backend. So with the example you put the following into the field: <h2>This is my <strong>short</strong> description.</h2>. The short description is just a text area without a editor like the Joomla tinymce or jce.
Title: Re: How to add HTML code in to the short description
Post by: rasika on July 27, 2013, 11:59:33 AM
Hi franzpeter,

Thank you your reply. Do you know how to add image and hyperlink in to the short description.  I need add small button and link it to another menu. 

Thanks
Rasika
Title: Re: How to add HTML code in to the short description
Post by: franzpeter on July 27, 2013, 13:35:56 PM
You need to be careful in case of that, because the database row for short description does have limits in case of the amount of characters (think it is 2000) used. I did try it out and it seems to work with images and links too:
So if you want to insert a small image from your images folder for example you can insert something like that, where it should show up: <img src="images/your_image_folder/yourimage.gif" border="0" alt="" />. In that case I would not insert something into the alt ='', because of the character amount limits.
If you would like to insert a link, you can do it in the following way: <a href="http://www.domain.com" title="domain">
You need, of course replace your_image_folder/yourimage.gif with the correct folder name and the image name, in case of the link replace domain.com with the correct name and the title with something you would like to show as link text.
Title: Re: How to add HTML code in to the short description
Post by: PRO on July 28, 2013, 01:26:14 AM
here is something I did with the "internal notes" field.

http://forum.virtuemart.net/index.php?topic=109549.0