Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

To do this you would edit the template "templates/template_item.vm" and in the top commented section, you would add the following line:

...

Next we need to add to the template the velocity code snippet that displays the new attribute in the template pages:

Code Block
languagegroovy
<center>
#if ($item.getAttributeValue("youtube1") != "")
<h2>Product Video:</h2>
##<div class="videowrapper">
  $item.getAttributeValue("youtube1")
##</div>
#end
</center>

 

Step 2 - Configuring the attribute value for a specific item

...