• Photo of Jim Michael

    0

    Hi Aaron- I haven't tried it, but according to the docs you just do this:

    Because content channel query parameter filters also supports route parameters and item attributes, you could use this functionality to support SEO friendly routes for all of your content items. You would first create a new item attribute for your channel with a key of ‘slug’. Then add a new route to the page that has the Content Channel View block that includes the ''slug' parameter (e.g. ‘content/{slug}’). Making these configurations would allow you then to navigate to the page, using a url like /content/car-show.

    • Aaron Hackett

      hmm weird... it worked on my test site, but not on my public site.
      Obviously, this works, Now I just got to figure out what's up with my website... that it won't recognize the slug.


      Thank you so much for the help

    • Jim Michael

      Is your public site on 6.8 and test site on an older version? I've heard one person say they can't get slugs working on 6.8 and I'm wondering if that could be your issue, too.

    • Aaron Hackett

      Yes... my test site is 6.1 actually.
      Well, hopefully this gets resolved in the next update. The item id looks so ugly when sharing via social media.

  • Photo of Trey Hendon III

    0

    Thanks to the Series attributes, we're able to do this at my church.  The only downside is that it seems to break the Breadcrumbs.

    I've made an attribute on my Series named Slug and then on the page, I've setup these routes: 

    series/{Item},s/{Slug}

    https://hubcitychurch.com/s/TakeThePlunge will take you to the Take the Plunge sermon series.  Also, don't remember if it comes of the box like this, but I've got "Enable Query/Route Parameter Filtering" set to true on the Content Channel View block.

  • Photo of Andrew Metz

    0

    Any word if slugs will be fixed? I can't get them working on my site :(

  • Photo of Jon Morrissette

    0

    How do you get the content channel to filter to that slug?  I enabled the page parameters checkbox.  I have an attribute called 'SeriesSlug' but how do you get it to filter by that value?

    • Trey Hendon III

      Hey Jon, you'll need to add a page route to "catch" the slug. In my example above s/{Slug}is a "pretty" way of catching ?Slug=HelloWorld so i can do/s/HelloWorld. For you, you'd want it to be s/{SeriesSlug}. Hope that helps!

  • Photo of Jon Morrissette

    0

    Hey guys, check out my human friendly modification. I added a human friendly attribute to both the series and message podcasts.  Unfortunately I had to do some major lava/sql coding to get the message and series pages to filter but that human friendly slug.  Check it out... https://www.lakesidechristian.com/Sermons


    I did use the page route s/ option trey provided

  • Photo of Andrew Metz

    0

    Jon - how did you get it to filter by slug?

  • Photo of Jon Morrissette

    0

    That is a little bit complicated to answer. I created an attribute tag for both series and messages, with the key seriesSlug and messageSlug.  Then, I created custom lava sql routines that grabs the slug from the page route, and then searches/displays the series page and message page. Essentially you have to bypass the content channel functionality.