Results 1 to 5 of 5

Thread: How to add custom items links to main navigation?

  1. #1
    New user
    Join Date
    01-12-10.
    Location
    Sumy, Ukraine
    Posts
    26

    Default How to add custom items links to main navigation?

    Does anybody know how to add custom navigation items to main navigation?

    Example:
    We have a site structure:

    Code:
    Page1
    --Subpage1.1.
    --Subpage1.2
    -- ...
    Page2
    -- Subpage2.1.
    -- ...
    Catalog
    Page3
    ...and some custom extension (SomeCatalog) with items categories
    Code:
    Category1
    --Subcategory1.1
    --...
    Category2
    Category3
    each category has own alias, so we can generate unique link for it (this is not a problem), as example for Category1 link would be
    Code:
    http://some-site/catalog/items/category1.html
    So, how to add this Catalog categories links to main navigation? I need to have this structure in main navigation:
    Code:
    Page1
    --Subpage1.1.
    --Subpage1.2
    -- ...
    Page2
    -- Subpage2.1.
    -- ...
    Catalog
    --Category1
    ----Subcategory1.1
    ----...
    --Category2
    --Category3
    Page3

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: How to add custom items links to main navigation?

    Must it be generated automatically? If not, just create redirect pages that point to the url that gives that category you need.

    I can recall a catalog navigation module, it might exist. Alternatively you can list categories, adjust the template to make it appear as a menu and use it as a submenu. Sorry, that is the best I can do. Anyone else?

  3. #3
    New user
    Join Date
    01-12-10.
    Location
    Sumy, Ukraine
    Posts
    26

    Default Re: How to add custom items links to main navigation?

    Thanx for answer.

    Must it be generated automatically?
    Yes, it must be generated automatically on all pages.

    I can recall a catalog navigation module, it might exist.
    It's not Catalog extention, it is custom extention. Besides, I am using Taxonomy to list categories hierarchy, so data:
    Code:
    --Category1
    ----Subcategory1.1
    ----...
    --Category2
    --Category3
    are from Taxonomy table. And I have made function for rendering Navigation depending of this hierarchy, but I have no idea how to insert this generated code in main navigation...


    Alternatively you can list categories, adjust the template to make it appear as a menu and use it as a submenu.
    Will try, but i think it's not a solution.

  4. #4
    User
    Join Date
    07-26-09.
    Posts
    175

    Default Re: How to add custom items links to main navigation?

    Some time ago I had a similar problem, I solved it with this code http://pstbn.com/6FGIU3i. You will need to modify it, but should give you the main idea.

  5. #5
    New user
    Join Date
    01-12-10.
    Location
    Sumy, Ukraine
    Posts
    26

    Default Re: How to add custom items links to main navigation?

    Tru, thanks, I will think about this HOOK, but I don't like the idea of replacing with preg_replace...

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
  •