View Single Post
  #10  
Old 02-06-2013, 05:42 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default Re: style flyout menu

Code inserted (/common_files/modules/Flyout_Menus/Icons/fancy_subcategories.tpl):

{if $catid eq 272}
Sale! <img src"yourimage.png" />
{/if}




This is the HTML output from this category:

<li id="prefix_272" style="z-index: 102;">
<a class="" href="http://www.xxx.com/Sale/">Sale <img width="40px" height="19px" sale.png"="" icons="" flyout_menus="" modules="" common_files="" skin="" www.xxx.com="" src"http:="">

</a>
</li>


xxx=real url


As you can see the image url in the output and some other things are not correct. I've no clue why this is as I implemented the code as you said. Or does this piece of code need to be at a very specific line within the template file? I also double-checked the URL in the code was typed in with http://www. when I copy paste the URL the image shows up in the browser.

Or does the icon have to be in the same folder? I guess it doesn't matter if I set a full URL.




I also added a second category to the CSS file. After deleting cache (cleanup.php) and deleting the browser cache the second category doesn't show the background color.



#prefix_272 {
background-color: #D6D6D6;
font-weight: bold;
}

#prefix_276 {
background-color: #CFCFCF;
font-weight: bold;
}
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote