List Info

Thread: Editing Attributes Template To Display Images




Editing Attributes Template To Display Images
user name
2006-03-16 03:53:53
Hi There,

I am working with senbenza's product template manager which
allows the
editing of the attribute templates. The code provided does
not have
the ability to display an image for an option, so I have
tried to add
this in using the following:

<mvt:if expr="l.settings:attr:image">
	<img src="&mvt:attr:image;"
border="0"> <br>
<mvt:else>
	&mvt:option:prompt; <br>
</mvt:if>

I have also tried just using:

<img src="&mvt:attr:image;"
border="0">

My problem is that I still get the text and not the image
and when I
use the second option the image link is broken, the scr
shows up as
scr="" when viewing the source code.

Does the code above look right?

Many Thanks for any tips!!
Jan

------------------ MIVA CORPORATION FOOTER
-------------------
FEATURE REQUESTS: mailto:wishlistmiva.com
TO FIND HELP: mailto:merchant5-users-helplistmgr.miva.com
TO UNSUBSCRIBE - Send mail to:
    mailto:merchant5-users-unsubscribelistmgr.miva.com
  if you need to unsubscribe a different address, send a
message to:
    mailto:ezmlmlistmgr.miva.com
  with a subject or message body of
    unsubscribe merchant5-users yournameyourdomain.com
---------------- END MIVA CORPORATION FOOTER
-----------------

Editing Attributes Template To Display Images
user name
2006-03-18 18:22:49
Hi Jan-
The code should look like for Attributes:

<mvt:if expr="l.settings:attr:image">
    <img src="&mvt:attr:image;"
border="0">
</mvt:if>

And this for Attribute Options:

<mvt:if expr="l.settings:option:image">
    <img src="&mvt:option:image;"
border="0">
</mvt:if>



On 3/15/06, Jan Dunlop <jandunlopgmail.com> wrote:
>
> Hi There,
>
> I am working with senbenza's product template manager
which allows the
> editing of the attribute templates. The code provided
does not have
> the ability to display an image for an option, so I
have tried to add
> this in using the following:
>
> <mvt:if expr="l.settings:attr:image">
>         <img src="&mvt:attr:image;"
border="0"> <br>
> <mvt:else>
>         &mvt:option:prompt; <br>
> </mvt:if>
>
> I have also tried just using:
>
> <img src="&mvt:attr:image;"
border="0">
>
> My problem is that I still get the text and not the
image and when I
> use the second option the image link is broken, the scr
shows up as
> scr="" when viewing the source code.
>
> Does the code above look right?
>
> Many Thanks for any tips!!
> Jan
>
> ------------------ MIVA CORPORATION FOOTER
-------------------
> FEATURE REQUESTS: mailto:wishlistmiva.com
> TO FIND HELP: mailto:merchant5-users-helplistmgr.miva.com
> TO UNSUBSCRIBE - Send mail to:
>     mailto:merchant5-users-unsubscribelistmgr.miva.com
>   if you need to unsubscribe a different address, send
a message to:
>     mailto:ezmlmlistmgr.miva.com
>   with a subject or message body of
>     unsubscribe merchant5-users yournameyourdomain.com
> ---------------- END MIVA CORPORATION FOOTER
-----------------
>
>


--
Scott Zielinski
-----------------------------
Sebenza.com - a Koltek LLC company
http://www.Sebenza.com
- Miva Development
http://www.MivaCentral.
com/SS - Miva Modules
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )