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.

Unique url

September 29, 2011 7:09am

Subscribe [1]
  • #1 / Sep 29, 2011 7:09am

    maxi

    220 posts

    Hi,

    I currently have this url structure http://www.website.com/product/brand/model

    This works fine but at times 2 entries have the same name and therefore url. How can I make it unique by appending automatically the product code, which is a different entry field?

    So it would be like http://www.website.com/product/brand/model/mpn

    Thanks

  • #2 / Sep 29, 2011 4:32pm

    Lisa Wess

    20502 posts

    Howdy maxi,

    How come you’re not using the URL title or Entry ID for this?  Both are going to be unique by virtue of EE’s built in features.

  • #3 / Sep 29, 2011 5:02pm

    maxi

    220 posts

    Hey there you, because I’m begging for Google to love me 😊

  • #4 / Sep 29, 2011 5:08pm

    maxi

    220 posts

    I’m using this now

    <a href="{homepage}{channel_short_name}/{category_url_title}/{url_title}">
  • #5 / Sep 29, 2011 6:59pm

    Lisa Wess

    20502 posts

    Ok… Google should be great with URL titles at least.  But you now have a solution that you like?

  • #6 / Sep 29, 2011 7:04pm

    maxi

    220 posts

    Nop, because sometimes they are the same, what about adding entry id?

    <a href="{homepage}{channel_short_name}/{category_url_title}/{url_title}/{entry_id}">
  • #7 / Sep 29, 2011 11:20pm

    Lisa Wess

    20502 posts

    URL Titles are never the same, at least across the one channel.  EE won’t let them be.  I guess I’m still not understanding what you are running up against?

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

ExpressionEngine News!

#eecms, #events, #releases