1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Howto Always Displaying SubCategories

Discussion in 'Showcase Support' started by X3nman, Oct 23, 2013.

  1. X3nman

    X3nman New Member Showcase Sportsbook

    Hi,
    sorry if this has been answered previously, I have searched and not found anything.
    I am hoping this can be done.

    I have subcategories which I would like to have displayed without having to click on the parent category first.

    eg.
    my structure currently looks like this...

    cat 1
    -sub cat 1
    -sub cat 2
    -sub cat 3
    cat 2
    -sub cat 1
    -sub cat 2
    -sub cat 3

    on the hompage of showcase by default it only displays...

    cat 1
    cat 2

    until I click on cat 1 parent category, then is shows...

    cat 1
    -sub cat 1
    -sub cat 2
    -sub cat 3
    cat2
    -sub cat 1
    -sub cat 2
    -sub cat 3

    then if I click on cat 2 parent category I get...

    cat 1
    cat 2
    -sub cat 1
    -sub cat 2
    -sub cat 3

    is there anyway to have the subcategories permanently displayed on the showcase homepage?
    So when I go to www.myurl.com/index.php?showcase/

    it will already be displayed as...

    cat 1
    -sub cat 1
    -sub cat 2
    -sub cat 3
    cat2
    -sub cat 1
    -sub cat 2
    -sub cat 3


    thanks for your help.
     
  2. Bob

    Bob Developer Staff Member

    This would require extensive programming and templating. The main landing page only exposes top level categories for the Category Navigation Block. The Navigation block on the Categories page is not the same as the main landing page (nor is the programming code). The Category Navigation expands all subcats within that specific category.

    You'd have to add your own methods to the Category Model and prepare the hierarchical data properly for templating, then expose the data and modify the templates. Its not something that you can simply do via a template edit.

    Im actually working on a completely different category navigation system right now (experimental).
     
  3. X3nman

    X3nman New Member Showcase Sportsbook

    ok thanks for the reply.
    I might link directly into a category then and miss the homepage out altoghther.
    I will have a play around and see what I can find, I have only played with the product briefly so there might be other ways that suit my needs.

    I will look forward to your new navigation system then :)

    thanks again bob, great product.
     
  4. Bob

    Bob Developer Staff Member

    You could also easily edit the template and manually template out the navigation block to look exactly like you want it to. Fairly easy to do if you don't have a ton of categories.
     
  5. X3nman

    X3nman New Member Showcase Sportsbook

    thanks bob, I think im getting the hang of your product more now and have found a couple of different options to do what I want.
     
    Bob likes this.
  6. woei

    woei Member Showcase

    How did you manage this? I have a similar setup with the

    cat 1
    -subcat 1
    -subcat 2
    -subcat 3

    cat 2
    -ect ect...

    I also want to display this on the showcase homepage in the block. Or will this be possible in 1.4 @Bob B ?
     
  7. Bob

    Bob Developer Staff Member

    Category Navigation is completely different in SC 1.4.0 (its exactly like the XF Resource Manager). Showcase Home only display Top Level Cats and when viewing Categories, expands 1 level based on the current viewing category (displays that cats sub cats only (one depth).

    Doing anything different will require extensive modification to the Category Model (programming) along with a lot of template modification (and modification of the VIEW as well). Its not something that can be handled with a template edit.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.