Community
  • Community
    • Q&A
    • Recipes
    • Ideas & Core Changes
    • Community Hubs
    • Chat
    • Get Involved
    • Blog
    • Podcast
  • Learn
    • Ask Chip
    • Manuals
    • Lava
    • Styling
    • Rock U
    • Classes
    • Subscriptions
    • Developer Resources
Ready for RX25? Discounted hotel rates end on August 20. Book now for best pricing!
  1. Rock Community
  2. Q&A
  3. General Use
  4. Sermon URL
Log In

Question

Error

Categories

  • General Use
  • Troubleshooting
  • Websites and Themes
  • Developing for Rock
Photo of Aaron Hackett

0

Sermon URL

7
  • Aaron Hackett posted 8 Years Ago

is there a way to use a slug to change the link of a sermon? For example this sermon link is: 

http://www.thehousechurch.tv/page/481?Item=1101

But I'd like it to read

http://www.thehousechurch.tv/listen/the-master-builder


Any help would be appreciated

Aaron

  • Jim Michael

    Jim Michael

    8 years ago

    What does your page route look like now? I think if you make it listen/{slug} it will do just that.

    • Photo of Jim Michael

      0

      • Jim Michael replied 8 Years Ago

      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.

      <p>Hi Aaron- I haven't tried it, but according to the docs you just do this:</p><p><b>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.</b><br></p>
      Save Cancel
      • Aaron Hackett

        Aaron Hackett

        8 years ago

        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

          Jim Michael

          8 years ago

          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

            Aaron Hackett

            8 years ago

            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

            • Trey Hendon III replied 7 Years Ago

            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.

            <p>Thanks to the Series attributes, we're able to do this at my church. &nbsp;The only downside is that it seems to break the Breadcrumbs.</p><p>I've made an attribute on my Series named Slug and then on the page, I've setup these routes:&nbsp;</p><pre>series/{Item},s/{Slug}</pre><p><a href="https://hubcitychurch.com/s/TakeThePlunge">https://hubcitychurch.com/s/TakeThePlunge</a><a href="https://hubcitychurch.com/s/TakeThePlunge" target="_blank"></a>&nbsp;will take you to the Take the Plunge sermon series. &nbsp;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.<br></p>
            Save Cancel
          • Photo of Andrew Metz

            0

            • Andrew Metz replied 7 Years Ago

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

            <p>Any word if slugs will be fixed? I can't get them working on my site :(</p>
            Save Cancel
          • Photo of Jon Morrissette

            0

            • Jon Morrissette replied 7 Years Ago

            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?

            <p>How do you get the content channel to filter to that slug?&nbsp; I enabled the page parameters checkbox.&nbsp; I have an attribute called 'SeriesSlug' but how do you get it to filter by that value?</p>
            Save Cancel
            • Trey Hendon III

              Trey Hendon III

              7 years ago

              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

              • Jon Morrissette replied 7 Years Ago

              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

              <p>Hey guys, check out my human friendly modification. I added a human friendly attribute to both the series and message podcasts.&nbsp; Unfortunately I had to do some major lava/sql coding to get the message and series pages to filter but that human friendly slug.&nbsp; Check it out...&nbsp;https://www.lakesidechristian.com/Sermons</p><p><br></p><p>I did use the page route s/ option trey provided</p>
              Save Cancel
            • Photo of Andrew Metz

              0

              • Andrew Metz replied 7 Years Ago

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

              <p>Jon - how did you get it to filter by slug?</p>
              Save Cancel
            • Photo of Jon Morrissette

              0

              • Jon Morrissette replied 7 Years Ago

              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.  

              <p>That is a little bit complicated to answer. I created an attribute tag for both series and messages, with the key seriesSlug and messageSlug.&nbsp; 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.&nbsp;&nbsp;</p>
              Save Cancel
            • Download Rock
            • Issues
            • Report Website Issue
            • Learn
            • Ministry Impact
            • Careers
            • Rock Playlist
            • Partners
            • Sponsors
            • 2025 Sponsor Reviews
            • Who's Using Rock
            • Websites Using Rock
            • Promo Shop
            • Chip
            The materials and content contained within this website are the exclusive intellectual property of Spark Development Network. All rights are reserved. Unauthorized use, reproduction, distribution, or transmission of any content on this site without the prior written permission of Spark Development Network is strictly prohibited. If you wish to use any material found on this site, please contact us for permission.
            • Privacy
            • Source Code License

            Rock is a project of Spark Development Network