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.

Is there any way around using Category URL Indicator word?

October 28, 2011 3:46pm

Subscribe [9]
  • #16 / Mar 16, 2012 9:04am

    TGP

    78 posts

    Yes, I’d much prefer the kinds of URLs described above, so I’ll give it a go. I just wish the add-on’s documentation were a bit more descriptive. It doesn’t really give much of a clue to how to use the thing. Anyway, thanks for your explanations, guys. 😊

    ralph, I haven’t looked at Seg2Cat’s docs, but i agree that the majority of plugin docs are more dev friendly than “designer” friendly. As a web designer/front-end dev who makes some rather large sites frequently in EE, I’m frequently unsure of exactly what some plugins do that everyone raves about. I think plugin devs need to take a step back and try and view their stuff from a different perspective. It could help them sell more plugins.

  • #17 / Mar 16, 2012 9:22am

    ralph.m

    225 posts

    It could help them sell more plugins.

    I absolutely agree. They have lost a lot of money from me by not giving a clear account of what their add-ons do. I stare and stare at a lot of them but have no real idea what they are FOR. (I’m not the sort to just dive in and experiment. I like to be really clear about something before parting with money. 😊 )

    But I’ve come to the conclusion that there is an inverse relationship between the ability to program and the ability to explain the uses of a program. Sigh ... The EE docs themselves are a case in point. Sure, everything is documented ... but there is often little or no explanation of what those features are for, how they work, or why you’d want to use them. Very frustrating.

  • #18 / Mar 16, 2012 12:13pm

    the3mus1can

    426 posts

    To get the cleaner category urls you are looking for you can use my plugin called Sherlock: https://github.com/themusicman/Sherlock

    Example routing template in blog/index.html (or whatever template group):

    This assumes a url structure like this:
    /blog
    /blog/entry-url-title
    /blog/category-url-title

    {exp:sherlock:page_type}
    
        //should match /blog
        {if is_listing && is_not_category} 
            {embed="blog/.listing"}
        {/if} 
    
         //should match /blog/category-url-title
        {if is_category}
            {exp:sherlock:category_id category_url_title="{segment_2}"}
                {if no_results}
                    {redirect="404"}
                {/if}
                {embed="blog/.listing" category_id="{category_id}"}
            {/exp:sherlock:category_id}
        {/if} 
    
         //should match /blog/entry-url-title
        {if is_entry}
            {embed="blog/.entry" url_title="{segment_2}"}
        {/if}
    {/exp:sherlock:page_type}

    If you have any questions or need help just post to the forum or email me at .(JavaScript must be enabled to view this email address)

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

ExpressionEngine News!

#eecms, #events, #releases