Announcement

Collapse
No announcement yet.

Adding a code from one frame template to another

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding a code from one frame template to another

    Hi all. In the template im working on there is not left category Nav. It starts with Manufacturers (brands). I got a fram from another template that have the category code but somehow when i copy and paste it to my template all i get is the category title. Any ideas why?
    See it here: Welcome to American Outdoor Pros -
    here is the code i try to copy:Its right after the Left Bar Block:

    <!--START: LEFT_BAR_BLOCKS-->
    <!--START: FRAME_CATEGORY-->
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td><img src="assets/templates/[template]/images/ttl_cat.gif" alt=""></td>
    </tr>
    <!--START: CATEGORIES-->
    <!--START: CATEGORY_FORMAT-->
    <tr>
    <td height="24" style="padding: 0px 0px 0px 20px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="16"><img src="assets/templates/[template]/images/li.gif" alt=""></td>
    <td><a href="view_category.asp?cat=CATID" class="cat">CATEGORY</a></td>
    </tr>
    </table></td>
    </tr>
    <!--END: CATEGORY_FORMAT-->
    <!--START: SUB_CATEGORY_FORMAT-->
    <tr>
    <td style="padding: 2px 0px 2px 36px;"><a href="view_category.asp?cat=CATID" class="subcat">CATEGORY</a></td>
    </tr>
    <!--END: SUB_CATEGORY_FORMAT-->
    <!--END: CATEGORIES-->
    </table>
    <div><img src="assets/templates/common/images/spacer.gif" width="1" height="15" alt=""></div>
    <!--END: FRAME_CATEGORY-->


    In my template i have this:

    <!--END: username-->
    <!--START: LEFT_BAR_BLOCKS-->
    <!--START: FRAME_MANUFACTURER-->
    <table ........................
    There is no FRAME_CATEGORY


    Thank you for looking and helping

  • #2
    take a closer look at this line:
    <td><a href="view_category.asp?cat=CATID" class="cat">CATEGORY</a></td>
    You are hard coding it to "CATEGORY". you maybe missing [CATEGORY] something similar.... go back to where you copied from and do a file compare.
    Elegant Weddings +
    www.elegantweddingsplus.ca
    www.elegantweddingsplus.com

    Comment


    • #3
      This is one of a few variables in the 3DCart template that does not use brackets, so CATEGORY is correct.

      Comment


      • #4
        Doing a file compare will show if there is something missing.....
        I didn't take a look at the code, but , it is easier to narrow down by comparing to original
        Elegant Weddings +
        www.elegantweddingsplus.ca
        www.elegantweddingsplus.com

        Comment


        • #5
          It is the original. In the template i am using now is not even there. Thats why i wanted to copy it from another template. Its going to user name then manufacturer....there is no category code.

          <!--START: LEFT BAR-->
          <td width="186" valign="top" class="frame-L"><div class="column" id="column1">
          <!--START: username-->
          <table width="100%" border="0" cellpadding="5" cellspacing="0">
          <tr>
          <td class="menu-text" align="center" style="padding: 5px;">[account_greeting] [username]&nbsp;&nbsp;<a href="logout.asp" class="link"><strong>Log Out</strong></a></td>
          </tr>
          </table>
          <!--END: username-->
          <!--START: LEFT_BAR_BLOCKS-->
          <!--START: FRAME_MANUFACTURER-->
          <table width="100%" cellspacing="0" cellpadding="0" border="0">......................

          Comment

          Working...
          X