Announcement

Collapse
No announcement yet.

Empty NETQUOTEVARs

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

    Empty NETQUOTEVARs

    Looking at some of the templates they appear to use NETQUOTEVARs inside HTML tags. If the netquotevar contains no information the HTML ends up with empty HTML tags.

    Is there any way of respecifying the HTML so that if the NETQUOTEVAR is present the html tags appear. If not the HTML tags do not appear?


    #2
    Can you give an example?

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      giving an example succinctly is the difficult bit.

      Basically I have found my HTML code for products to be cluttered with unneccessary html tags. A good example is in some areas I have multiple redundant span tags <span class="actxsmall"></span><span class="actxsmall"></span>.

      This one appears to be caused by the following:

      <span class="actxsmall">NETQUOTEVAR:OTHERINFOPROMPT</span>
      <span class="actxsmall">NETQUOTEVARATEPROMPT</span>

      (Which I will be able to do something about.)

      This may not be a HTML issue, but it bugs me and it makes the HTML code more difficult to follow and larger than necessary.

      I am currently redesigning a product template and to create a more controllable layout I would like to place the NETQUOTEVARS individually in table rows. But if a product does not have a value for a particular NETQUOTEVAR it will result in an unnecessary empty table cell which will effect the appearance. I would like to be able to only call the immediate PRE and POST html tags if the NETQUOTEVAR is not empty.

      I have previously used S H O P F A C T O R Y and this was possible. For all its weaknesses it handled empty variables really well. I would love to be able to do something similar with Actinic.

      (I just love the Grinning face above , which is unintentional, just the way the Actinic code ended up!!! read as full colon followed by D)

      Comment


        #4
        Some NETQUOTEVARS expand in other templates (like NETQUOTEVAR:PRODUCTIMAGE for example) and so nothing is generated if the VAR is empty as the additional template is not called. In these cases the <span...> stuff would be in the next template and thus not generated unless needed.

        However your example is expanded By Design / Text / HTML and can also be easily fixed. Instead of

        Code:
        <span class="actxsmall">NETQUOTEVAR:OTHERINFOPROMPT</span>
        
        Just use 
        
        NETQUOTEVAR:OTHERINFOPROMPT
        
        And change Design / Text / Phase -1 ID 2161 from
        
        
        %s<INPUT TYPE=text NAME="%s" SIZE="%d" MAXLENGTH="%d" VALUE="%s" %s>
        
        to
        
        <span class="actxsmall">%s<INPUT TYPE=text NAME="%s" SIZE="%d" MAXLENGTH="%d" VALUE="%s" %s></span>
        While this seems much cleaner I guess that Actinic didn't implement it this way as it's not so compatible with all the different themes that you can use.


        Norman
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Norman

          I like your suggestion.

          Do you know if there is a corresponding Design / Text / Phase / ID section for all NETQUOTEVARs and if so where they can be found?

          Comment


            #6
            There is a complete guide to all the prompts in 'Design | Text | Website | HTML' in the Advanced Users Guide (see link in my signature).

            Comment

            Working...
            X