Announcement

Collapse
No announcement yet.

A question about Customvars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A question about Customvars

    In the productline template i have added a couple of customvars that i want to use to display small gif icons i have created that relate to packaging size, branding etc.

    Currently in the product properties i have the property defined as

    <img border="0" src="icons/50spindle.gif"> but it gets a little complicated for non-techie staff to understand.

    Would there be a way to define the property as "50 Spindle" in actinic that will then use the filename above in the html code?

    I have tried having the template code as <img src="icons/CUSTOMVAR:PACKAGING.gif!> but for the products that do not have the property definded there is a red X (missing image).

    Any ideas / suggestions?

    #2
    If you add CUSTOMVAR:PACKAGING to your site defaults in Design | options and assign a filename that leads to a 10 x 10 transparent gif, then that transparent gif would show in products that do not have an individual property set.

    You should add the filename for the transparent gif to your additional files list within Actinic, to ensure it gets loaded to the website.
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      Javascript will also do it, although Bill's way is cleaner.

      E.g. In your Product Template

      Code:
      <script language=JavaScript>
      <!--
        if ( 'CUSTOMVAR:PACKAGING' ) document.write('<img src="icons/' + 'CUSTOMVAR:PACKAGING' + '.gif">');
      //-->
      </script>
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X