Jump to content

Need to move a block of code to another .tpl file


Guest KillerBuzz

Recommended Posts

Guest KillerBuzz

I need to move the functionality of:

<!-- BEGIN: cat_img -->

<img src="{IMG_CURENT_CATEGORY}" alt="{TXT_CURENT_CATEGORY}" border="0" title="{TXT_CURENT_CATEGORY}" />

<!-- END: cat_img -->

Found in \styleTemplates\content\viewCat.tpl to function correctly in \styleTemplates\global\index.tpl

any ideas on how to repoint that loop to a new files?

THANKS!

Link to comment
Share on other sites

{IMG_CURENT_CATEGORY} places the current category image on the viewCat page. It is the image of the category you are in. Since you are not in any category on the home page, your request really doesn't make any sense. You have to code the php file to make this work in a differennt tempolate file, but still would place a "current category" image on a page that is not a category page :rolly:

Link to comment
Share on other sites

Guest KillerBuzz

Unfortunitly, Im in the middle of a complicated template mod, which uses both a "brands" and "advanced expanding dynamic cataroies" mod, plus a designer who has the catagories image located all the way across the page, rather than just the {PAGE_CONTENT} section.

Maybe a better question is, how do I get it to go all the way across the page and above the "colLeft" and "colMid" div tags?

Link to comment
Share on other sites

  • 2 months later...
Guest diazangulo

hi, im working some months ago to add the current category image in the product page, but im very sad cause i cant did it, i really dont know how can do that, i tryed to add the same code that be in viewCat_inc.php in viewProd.inc.php and add the tags in viewprod.tpl but doesnt work, if anybody can help me i will be very very glad.

Link to comment
Share on other sites

The original quaetion posted did not make so much sense, but as to your question, not too tough I thin. You can make the code work in viewProd.tpl but you have to mod includes/content/viewProd.inc.php with code from includes/content/viewCat.inc.php regarding the category image in order to make this work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...