PDA

View Full Version : Empty NETQUOTEVARs


sametch
10-Dec-2003, 01:35 PM
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?

:confused:

NormanRouxel
10-Dec-2003, 02:02 PM
Can you give an example?

Norman

sametch
10-Dec-2003, 02:24 PM
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">NETQUOTEVAR:DATEPROMPT</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)

NormanRouxel
10-Dec-2003, 03:48 PM
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

<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

sametch
10-Dec-2003, 04:04 PM
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?

cdicken
10-Dec-2003, 04:29 PM
There is a complete guide to all the prompts in 'Design | Text | Website | HTML' in the Advanced Users Guide (see link in my signature).