ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to make this structure?

August 25, 2013 4:42pm

Subscribe [2]
  • #1 / Aug 25, 2013 4:42pm

    benya

    3 posts

    Please,help me.

    Hello, I want move site to ExpressionEngine. Site has a complex structure. The structure should be saved.

    http://anyseason.ru/

    I need to build a URL like site.com/news/category/id1/id2/idtext.

    Categories - id1 and id2. Material- idtext. In the admin panel id1-parent category, and id2 - nested category. I do so:

    {exp:channel:categories channel="news"}
    <a href="http://{path=news/index}">{category_name}</a>
    {/exp:channel:categories}

    Links look like site.com/news/category/id1 иsite.com/news/category/id2 but look is necessary site.com/news/category/id1/id2.

    Excuse me for my English

  • #2 / Aug 26, 2013 3:46pm

    Boyink!

    5011 posts

    EE has a certain way it natively wants to use URLS to determine what content to pull.  And that native way isn’t what you have described.

    You can achieve what you want, but it’s going to require first to know what EE wants to do natively and then use some add-ons and coding approaches to work against that to get the URLs you want.

    The main add-on required will be Low’s Seg2Cat - which will allow you to put multiple categories in the URL and then have variables that you can feed a channel:entries tag pair to pull the content.

    It’s not something I would recommend as a first site to build in EE - but is possible.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases