Results 1 to 7 of 7

Thread: Show category description on browsing category page

  1. #1
    Join Date
    Mar 2005
    Posts
    27

    Default Show category description on browsing category page

    I am so excited *grin* I figured out how to not show the category description on the home page, but now I would like to show it on the browsing category page.

    I thought that I would edit the browse.php file to add this line since this is what I modified on the index page:

    $category_obj->show_description = true;

    However, this line is already present...yet the description does not show up. Just to be sure I am using the correct terms, by browse page I mean that you have clicked on a top level category from the home page.

    Thanks! I'm getting the hang of this with the help of this forum ;-)

    Casablanca
    http://www.OnlyBet.com - submit your casino or sportsbetting link!

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    check the description field to make sure you have something in that field for your category.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Mar 2005
    Posts
    27

    Lightbulb

    Quote Originally Posted by esm
    check the description field to make sure you have something in that field for your category.

    As I mentioned, I was able turn it off on the home page but want to display it on a different page - so yes there is content in the description field - it is a matter of learning how to display it on an interior page...

    I know that someone here knows how to do this *grin*

    Darlene

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    hmmmm....

    Maybe I am missing something.

    In index.php I have:
    $category_obj->show_description = true;

    The description shows up on the index page.
    see: http://www.indexuhelp.com/upload/

    In browse.php I have
    $category_obj->show_description = false;

    The description does not show up on the browse page.
    see: http://www.indexuhelp.com/upload/business-business.html

    That seems to be what you want.





    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Mar 2005
    Posts
    27

    Default

    Quote Originally Posted by esm
    ...

    In index.php I have:
    $category_obj->show_description = true;

    The description shows up on the index page.
    see: http://www.indexuhelp.com/upload/

    In browse.php I have
    $category_obj->show_description = false;

    The description does not show up on the browse page.
    see: http://www.indexuhelp.com/upload/business-business.html
    You are on the right track to being less confused by what I say *grin*

    1. I do not want descriptions on home page - done.
    2. I do want descriptions on the browse page for the current (major) category only, not the sub categories. Presently I have the opposite on my current page: http://www.onlybet.com/browse-card_games-5-1.html
    3. I would like the category description to immediately follow the category path. On this page, http://www.onlybet.com/browse-poker-1-1.html, I have a banner following the category path (I put this there by inputting code in the following area: Admin panel, category edit, content section of a category) and would like to have the category description just above the banner. I would like to supress the display of description for any subcategories on this page.

    More clear? :-)

    Darlene

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by seomontreal
    More clear? :-)
    clear as mud!

    Here is the deal. Other than the top level categories, you can refer to a category as either a category or a sub-category ( I can be muddy the water with the best of them ). A category can be a sub-category only in relation to other categories.

    Here is the deal.

    On this page:
    http://www.onlybet.com/browse-card_games-5-1.html

    Baccarat, Blackjack and Poker are properly referred to as Categories. Cards would be referred to as the Parent category, which just happens to also be the top level category.

    Poker could have "sub-categories" of say Stud Poker, Strip Poker and Draw Poker.

    And if you click on the Stud Poker hyper-link, you would go to the Stud Poker category page which may have sub-categories on it. But on that page, Stud Poker would be referred to as a Category.

    On ANY browse page the category can usaually be "defined" by the graphic folder next to it. The sub-categories of that folder are merely listed underneath.

    In INDEXU there are two sections of PHP code used to display "categories." One section generates the "category" information and a second section that generates the sub-cat information.

    So, depending on what page is to be displayed, the "category" will be generated by one section of code or the other and will be a "category" on time and a "sub-category" the next.

    Thus, on this page
    http://www.onlybet.com/index.php

    Baccarat, Blackjack and Poker are properly referred to as sub-categories (the are sub-cats of the Card Games category ).

    but when you go here
    http://www.onlybet.com/browse-card_games-5-1.html

    they are referred to as categories ( and could have their own sub-cats )

    Think of the categories as a ladder with the PHP code moving up and down the ladder. Say Card Games are rung number three. If the "category" section of the code stops on the third rung, then the third rung is a "category." But if the sub-category code stops on the third rung, then the third rung is a "sub-category."

    The information displayed is attached to the PHP code, not to the third rung.

    And if you change the PHP code for categories, then when the rung is displayed it will have category attributes.

    And if you change the PHP code for sub-categories, then when the rung is displayed it will have sub-category attributes.

    You are probably going to have to hack the code to do what you want.

    Hell, I've even managed to confuse myself...!



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Mar 2005
    Posts
    27

    Default

    ok I think we are close *grin*

    On a page such as http://www.onlybet.com/browse-card_games-5-1.html, I now understand that Card Games is not the category but the parent.

    I would like to show the description of the parent. In other words, when I add a description to the card category via Admin panel, I would like it to show under Top > Card Games.

    I just accidently found a way to do this - enter my category "description" in the content field (of the admin panel, editing a category) rather than the "description" field. *grrr*

    It'll do I guess :-)

Similar Threads

  1. Replies: 2
    Last Post: 03-14-2005, 01:58 AM
  2. Show meta description in browse.html
    By binto in forum v5.x
    Replies: 3
    Last Post: 06-07-2004, 06:39 PM
  3. what does it mean ?
    By lewisw in forum v5.x
    Replies: 10
    Last Post: 08-29-2003, 02:05 AM
  4. Replies: 0
    Last Post: 11-01-2002, 10:28 PM
  5. Category description hack
    By armadinina in forum v3.2
    Replies: 0
    Last Post: 08-31-2001, 12:06 PM

Posting Permissions

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