posted on September 13, 2010 10:37:07 PM new
I have created a custom template that uses a CSS based gallery for product images. How do I check that images actually exist? I realize there is the IMG_0 and NO_TAG for example. This however does not allow for conditional testing. I assume there is a call that Vendio uses for its own templates thus the associated HTML can be conditionally injected or not.
For example take the following:
<li><a href="#nogo"><b><img src="pimages/AgeOfSail2Privateer1.jpg" title="" alt="" /><span>This is where the descriptive text goes</span></b></a></li>
<li><a href="#nogo"><b><img src="pimages/AgeOfSail2Privateer2.jpg" title="" alt="" /><span>More descriptive text here</span></b></a></li>
Assume the images were replaced with the appropriate vendio tags... Even if these tags are blank (actually it appears that a 1x1 pixel is injected if a image doesnt exist and a IMG_0 or NO_TAG is put in).
Obviously if no images are defined we dont want any of the above injecting into the final HTML output stream. If 1 image exists (IMG_1) lets say, we only want 1 of the above and not two.
How do I conditionally test for image existence. I realize I could do this with Javascript directly checking the TAG_1 for its default output (that 1x1 pinxel) and then hide via CSS or using javascript add/remove the appropriate HTML from the DOM tree... However, I am not sure if eBay allows for that sort of page manipulation and irregardless if they do, it should be done at the Vendio platform.
This is a pretty basic capability... I mean after all, if one is using Custom Template and the custom tags for images (or shipping for that matter) one needs to be able to know whether or not images exist to enable or disable gallery HTML and of course the gallery HTML is going to need to know an image count.
How can this be done?
How does Vendio do it within its stock templates?
If this cant be done then what good are custom templates?
posted on September 14, 2010 11:11:05 AM new
Hello,
Of the customized templates ive seen others import of their own, they were coded to hide the placement of images that weren't attached.
There is no Macro that you can use that will do this coding for you, but we have passed along your questions to one of the engineers for the template to clarify if this is something that can be done from here or not.
As soon as we hear back from the engineer on this we will let you know.
posted on September 14, 2010 02:22:30 PM new
Thank you.
I've tried to locate documentation on what eBay allows and not in javascript. I specifically avoided a full javascript gallery as they manipulate the DOM (document object model) which I would just assume eBay does not allow since DOM manipulation would allow page information to be dynamically changed.
posted on September 17, 2010 07:27:37 PM new
Yes I saw that...
I realize that via embedding images in a hidden DIV I can count them and then use the resultant count to then enable/disable the appropriate tags and/or image containers.
Vendio's own templates do not appear to do this though I certainly dont have access to those templates HTML/Script. One would assume its done dynamically before data is injected into the template from the product database.
I've worked around it as noted above. I guess as I list to eBay I'll find out whether or not they consider it a violation or not.
Incidentally I have not had any sort of response as to how we can apply and/or be considered for a preferred template/engineer firm associated to Vendio.
Vendio's templates are ok for casual sellers but they really do not suit a vendor with alot of listings or within diverse categories.
posted on September 18, 2010 09:17:00 AM new
Hello,
If you are looking for someone to design a custom template for your eBay listings for you, you might want to check with the designers that we have listed on our site for Vendio Store templates (they should also be able to create an eBay template for you). You may locate them here: