osCmax v2.5 User Manual
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

HTML template (and system) for the BTS

This is a discussion on HTML template (and system) for the BTS within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Originally Posted by NickW For a new template, I understand that if you want to change the outer layout then ...

      
  1. #11
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default Re: RE: Re: RE: Re: RE: HTML template (and system) for the B

    Quote Originally Posted by NickW
    For a new template, I understand that if you want to change the outer layout then you edit the main_page.html, but what if you want to change some html for a specific page eg create_account? Do you add a content dir to your new template dir and only add your modified file create_account.tpl.php to the content dir?
    Exactly
    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).

    /************************************************** ********/

    what is the tag for affiliate?
    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).

    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:
    Code:
    <div class="smallBox" id="whatsnewbox">{affiliatebox}</div>
    (the <div>, class and id are all optional, just adding "{affiliatebox}" (without the quotes) only might be enough for you)
    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:
    Code:
    //begin{affiliatebox}
              require(DIR_WS_BOXES . 'affiliate.php'); 
    //end{affiliatebox}
    This should work as it is for the affiliate box.

    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

  2. #12
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default RE: Re: RE: Re: RE: Re: RE: HTML template (and system) for t

    Thanks Paul for the confirmation. If I want to add a page do I essentially add a new code file at the top level in the catalog dir which points to a new template file via the main template as before?

  3. #13
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default Re: RE: Re: RE: Re: RE: Re: RE: HTML template (and system) f

    Quote Originally Posted by NickW
    Thanks Paul for the confirmation. If I want to add a page do I essentially add a new code file at the top level in the catalog dir which points to a new template file via the main template as before?
    Sounds ok to me, adding new pages is not any different with or without this contribution.

    Again a little note : the only reason the small sideboxes are treated differently is because I think having an easy to edit HTML template would not be very usefull if you are still stuck to the left and right column layout. That is why I made it possible to add single boxes directly to the main template (allthough the "old way" also still is possible, using the column_left.php and right column_right.php, I think there's a note about it in the readme).

  4. #14
    New Member
    Join Date
    Nov 2005
    Posts
    6
    Rep Power
    0


    Default Stupid Question

    where is the main_page.html
    I see lots of main_page_tpl but no main_page.html

  5. #15
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default Re: HTML template (and system) for the BTS

    Where did you search?

    In here:
    Quote Originally Posted by paulM
    ?

  6. #16
    New Member
    Join Date
    Nov 2005
    Posts
    6
    Rep Power
    0


    Default RE: Re: HTML template (and system) for the BTS

    OK thanks , I have the template now, but not sure if you could explain,
    goto http://www.blackcactusonline.com/cat...hp?tplDir=HTML
    thats what it looks like , not understanding why doesnt it call blank items where these are

    {headertags} {stylesheet} {javascript} {common}
    Example of internal HTML link with {BTSsid} attached (only when needed).

    {cataloglogo} {myaccountlogo} {cartlogo} {checkoutlogo}
    {breadcrumbs} {myaccount} | {cartcontents} | {checkout}
    {categorybox}
    {manufacturerbox}
    {whatsnewbox}
    {searchbox}
    {informationbox} {content} {cartbox}
    {maninfobox}
    {orderhistorybox}
    {bestsellersbox}
    {specialfriendbox}
    {reviewsbox}
    {languagebox}
    {currenciesbox}
    {banner}
    {date} {numrequests}
    Copyright (C) 2005 HTML template for the BTS by PandA.nl

  7. #17
    New Member
    Join Date
    Oct 2005
    Posts
    22
    Rep Power
    0


    Default

    Does anyone have any decent templates for the BTS or know where to get some?

  8. #18
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    You can try templates based on BTS from:

    http://creloaded.com/Downloads/d_op=...oad/cid=5.html

    Which does have BTS - However not sure of the version of BTS and there are diffences in the contributions - make sure you "compare" it to the "fallback" in MAX.....

    A quick search I also found:
    http://sourceforge.net/project/showf...kage_id=119333

    (not free)
    http://www.algozone.com/shop/default.php?povID=63
    http://www.websitetemplatedesign.com...x-v17-m-3.html



    ALSO most changes can be done via the CSS file and changing the default graphics! Most other can be done by edit the main template file.


    Good Luck
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. HTML_PARAMS when upgrading RC1 to RC2 with HTML Template
    By miahac in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 09-27-2005, 07:50 AM
  2. Simple Template System Contrib (STS) in MS2MAX?
    By glk in forum osCMax v1.7 General Mods Discussion
    Replies: 4
    Last Post: 05-03-2005, 06:23 AM
  3. BTS 1.2a Basic Template System - questions
    By stevensdesign in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 04-13-2005, 12:18 PM
  4. BTS 1.0b to 1.2a Template System Upgrade causes DB error
    By RaEMeY in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-07-2004, 01:36 PM
  5. PLEASE explain how I can use the BTS (basic template system)
    By lucius in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-23-2003, 06:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •