Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    You're looking at the wrong file. There is a main_template_vars.php for most if not all pages; you want /includes/modules/pages/index/main_template_vars.php.
    It has this at the top:
    PHP Code:
     index main_template_vars.php 

    You need to remove the additions you made to the other main_template_vars.php, as they don't belong there.
    Last edited by gjh42; 3 Jan 2013 at 08:49 PM.

  2. #12
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Edit Category Landing Page

    Perfect thank you. Is there a way to left justify it through this page or do I have to use the stylesheet? I don't want to mess up anything else

    thank you so much

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    I see that I gave the exact location for category_row.php in my first post, but not for main_template_vars.php... sorry, my bad.

    You can use the stylesheet to adjust the layout. Let me look at it live and I will give some pointers.

  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    First issue: you have <p> elements set to only 50 pixels wide:
    P, ADDRESS {
    padding: 0.1em;
    width: 50px;
    }

    I can't tell exactly where this rule is because of your minimized stylesheets (lines all run together and very hard to read), but hopefully you can find it. A default setting for all paragraphs to 50px wide doesn't seem like a good idea, as very few will want to be that narrow. Maybe the width was intended only for addresses? If so, you need to make a separate rule for that so as not to mess up paragraphs.

  5. #15
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    Add to your stylesheet (wherever convenient and sensible for you):

    .categoryListBoxContents a {display: block; float: left; clear: both; width: 36%; text-align: left;}
    .categoryListBoxContents a img {margin: 0 1em -3.5em 0;}
    .categoryListBoxContents p, .categoryListBoxContents ul {float: right; width: 62%; text-align: left; margin-top: 0;}

    Adjust to taste. There are still things that are not ideal about the layout, but it is a lot closer. I see that you appear to be escaping from the
    <p class="catListingDesc">' . $categories->fields['categories_description'] . '</p>
    so that the class tag does not actually apply to your content, and there are empty paragraphs above and below your paragraph and ul list. Why is that? Is it intentional? It makes styling considerably trickier.

    "Escaping" means that your content starts with </p> and ends with <p>, closing out the coded <p class="catListingDesc"> before it can be useful.
    Last edited by gjh42; 3 Jan 2013 at 09:37 PM.

  6. #16
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Edit Category Landing Page

    You are the man, thank you so much, it worked great.

    http://www.domo-online.com/Outboard-.../evinrude-c-1/

    BUT where there is no description everything is messed up http://www.domo-online.com/Outboard-...Oil/drums-c-5/

    and
    in Chrome the titles are lining up weird, any ideas? http://www.domo-online.com/Outboard-...l/mercury-c-3/

    thanks

  7. #17
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    For a stopgap with the no-description piling issue, add to your stylesheet

    .categoryListBoxContents {min-height: 160px;}

    I see some categories have longer names, so you probably need to increase the width of the link and decrease the width of p and ul elements.

    You have a lot of messy HTML/CSS in there, and it will be hard to sort out the styling until that is neater. You didn't answer about the "escaping" content.

  8. #18
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    I think it will be easier to handle if you change the addition in category_row.php from
    <p class="catListingDesc">' . $categories->fields['categories_description'] . '</p>
    to
    <div class="catListingDesc">' . $categories->fields['categories_description'] . '</div>

    You will then need to change the one style rule from
    .categoryListBoxContents p, .categoryListBoxContents ul {float: right; width: 62%; text-align: left; margin-top: 0;}
    to
    .categoryListBoxContents .catListingDesc {float: right; width: 62%; text-align: left; margin-top: 0;}

  9. #19
    Join Date
    Aug 2008
    Posts
    274
    Plugin Contributions
    0

    Default Re: Edit Category Landing Page

    Thank you very much. I tried and it seems to work well. Only issue left is the name of the category is messed up, is there a way to put the category name directly under the picture?

    honestly not sure about the escaping, I didn't do it intentionally, I have edited this template quite a few times over the last year. Probably screwed it up but appreciate your help.

    only two things I would love to fix are:

    1) http://www.domo-online.com/Outboard-.../yamalube-c-4/
    The ringfree picture is not lining up like the rest and it would solve the problem of long names if the name can go directly above or below the picture.

    2) Similar issue, some of the names are pushed left and others are not
    http://domo-online.com/Outboard-Moto...=index&cPath=5

  10. #20
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Edit Category Landing Page

    I think the escaping happened automatically when the browser tried to process the output. It had a <p> from the file code and another <p> from your description. You can't have nested paragraphs in HTML, so the browser closed out the outer one before starting the inner one. It works correctly now with the div wrapper.
    The name alignment issues are all as far as I can see caused by width issues - wide images and longer names can't fit on the same line in the set width, so the name drops to the next line and starts at the left edge. Increasing the width or putting the name above/below the image are the only ways to fix it. You really need a handle to style the name; it's not just subtext as the original design made it. Edit category_row.php, changing
    . $categories->fields['categories_name'] . '</a>
    to
    . '<span class="catListingName">' . $categories->fields['categories_name'] . '</span></a>
    to get
    PHP Code:
         'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' zen_image(DIR_WS_IMAGES $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTHSUBCATEGORY_IMAGE_HEIGHT) . '<span class="catListingName">' $categories->fields['categories_name'] . '</span></a><div class="catListingDesc">' $categories->fields['categories_description'] . '</div>'); 
    or if you want the name above the image
    PHP Code:
         'text' => '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new) . '">' .'<span class="catListingName">' $categories->fields['categories_name'] . '</span>' zen_image(DIR_WS_IMAGES $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTHSUBCATEGORY_IMAGE_HEIGHT) . '</a><div class="catListingDesc">' $categories->fields['categories_description'] . '</div>'); 

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v154 Main Category Page that looks like a landing page
    By CabinetGuy in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Jun 2016, 05:43 PM
  2. Category Links Landing Page within Manufacturers
    By dilbert_freak_420 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 22 Jan 2014, 08:15 PM
  3. v139h Top Category Link Landing Page
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Nov 2012, 09:45 PM
  4. v139h Category landing page for a manufacturer
    By kamion in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Jun 2012, 05:29 AM
  5. Category Landing Page issue
    By CompuWeb in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jan 2011, 09:01 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR