ExactlyOriginally Posted by NickW
Note: not sure if it was clear already, but the content templates are not HTML templates (that would (allmost) be impossible with the current osC version).
/************************************************** ********/
Ehhhh...... good question. I assume you are asking how to add a small sidebox for it, but there isn't any tag for affiliate yet. osCDOX has some more boxes than a standard osC install (I just realize).what is the tag for affiliate?
It's noty difficult to add new boxes though. (A discussion about adding a loginbox can be found at forums.oscommerce.com/index.php?showtopic=14686
In general it works like this:
1) first you need a BTS compatible box file (like the ones in includes/boxes/*.*). I assume it's already there in this case, because osCMAX has the affiliate box included.
2) Then you add a new tag to main_page.html wherever you would like the box to appear.
For example like this:(the <div>, class and id are all optional, just adding "{affiliatebox}" (without the quotes) only might be enough for you)Code:<div class="smallBox" id="whatsnewbox">{affiliatebox}</div>
Now the shop should show the tag "{affiliatebox}" (i.s.o. the actual box content)
3) To make it show the box in stead of the tag, some code needs to be added to "main_page.code.php". This code will be executed when the tag is found in the HTML template.
For example like this:
This should work as it is for the affiliate box.Code://begin{affiliatebox} require(DIR_WS_BOXES . 'affiliate.php'); //end{affiliatebox}
Additional code may be added, i.e. if you need to hide a box for certain pages (like you do not wan't a login box to show up whenever someone's already logged in). (normally these boxes are included in column_right.php and column_left.php, but inluding them this way makes the template much more flexible).
/************************************************** ********/
Another note: this template is not compatible with the box controller (or whatever it is called). I is possible/easy to make a compatible version, but I doubt if it would be very usefull. Since (re)moving deleting the box tags inside the HTML template file is so easy.
hth





LinkBack URL
About LinkBacks








Bookmarks