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.

Page Section not Displaying when Category in URL

October 28, 2012 7:14pm

Subscribe [4]
  • #1 / Oct 28, 2012 7:14pm

    Roi Agneta

    352 posts

    I have a blog section on a website.  The default page, ../blog/ includes the last seven entries from the “blog” channel and a few in a side column from an unrelated channel called “videos”.  Everything works fine on the default page.

    I used Categories to create tags, which are assigned to various blog entries by the blogger, and these are presented in a tag cloud in a side column.  Clicking one of them generates a url to the same default page, but with the category ID appended to the URL., e.g. ../blog/C14/ The page then displays blog entries that include that category.  That works fine, except the information from the “video” channel no longer appears in the side column.

    There is nothing remarkable about the Video channel code, other than it is from a different channel.  Here is the code:

    <div class="blog-videos">  
     {exp:channel:entries channel="blog_videos" dynamic="no" disable="pagination|member_data|categories"}
        
     ...various channel fields…
                
     {/exp:channel:entries}           
    </div>

    I originally had it as an embed, which did not work.  Tried using it in the blog template directly, which also does not work.

    Any idea would be appreciated!!

    Roi

     

  • #2 / Oct 29, 2012 6:19am

    ahmad saad

    364 posts

    I don’t see anything wrong in your code, for check please try to put this code on separeted test template , and call the category in the URL and please let us know if that resolve the problem.

    by that we can determent if the problem in this code or in the other parts of your template.

    I hope this will helpfull.

  • #3 / Oct 29, 2012 9:19am

    Roi Agneta

    352 posts

    Thanks for the reply, but perhaps I was not clear in my description.

    The template code is working fine when there is not category in the url - the content from the blog channel and the blog video channel both display properly.  When I add a category to the url, the content from the blog video channel no longer displays.

  • #4 / Oct 29, 2012 9:53am

    ahmad saad

    364 posts

    yes I understand this , but I mean to put blog video code on a test template and call the template by adding the category url title or category id to the URL, and see if the code work fine.

  • #5 / Oct 29, 2012 11:03am

    Boyink!

    5011 posts

    Try not disabling categories?

  • #6 / Oct 30, 2012 11:01am

    Shane Eckert

    7174 posts

    Hey Roi,

    Looks like you are getting a lot of great help here.

    Did you have a chance to give Mike’s direction a go?

    Thank you,

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

ExpressionEngine News!

#eecms, #events, #releases