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.

Passing global variables to embedded templates, no filtering happening.

November 06, 2008 8:33am

Subscribe [2]
  • #31 / Nov 12, 2008 11:25am

    Robin Sowell

    13255 posts

    Try hard coding {embed:the_template_group} and see if that makes a difference.  I should be able to see the difference at this point, but it’s still not jumping out.  So it’s going to be a matter of making small tweaks until it works- at which point, we’ll know what tweak makes the difference.

  • #32 / Nov 12, 2008 11:39am

    Hard coding {embed:the_template_group} i.e.:

    {exp:weblog:categories weblog="{embed:the_weblog}" style="linear"}
      <li{if segment_3 == category_url_title}class="active_cat"{/if}>
        <a href="http://{homepage}/weblog/category/{category_url_title}/">{category_name}</a>
      </li>
    {/exp:weblog:categories}

    returns no filtering.

  • #33 / Nov 12, 2008 8:45pm

    Greg Aker

    6022 posts

    strange.  Okay, try this:

    {exp:weblog:categories weblog="{embed:the_weblog}" style="linear"}
      <li{if segment_3 == category_url_title}class="active_cat"{/if}>
        {category_name}
      </li>
    {/exp:weblog:categories}

    Does that filter?

  • #34 / Nov 12, 2008 11:22pm

    Uh, oh ...I’m back to confused on that one. Or am I using wrong terminology? Your last suggestion returns the list of category names, but there is no link to see if filtered results can be returned.

  • #35 / Nov 12, 2008 11:35pm

    Greg Aker

    6022 posts

    ah, shoot.  Sorry, you are right.

    Where the link was, put:

    {category_name} - {category_url_title}

    so we don’t have to look at src to see links.  Then can you hit us with a link it should go to?

    Thanks,

    -greg

  • #36 / Nov 13, 2008 3:07pm

    Robin Sowell

    13255 posts

    OK- went in and created a simplified version- is it working correctly here?  It looks like it is. 

    So- took a look at the webpage and understood what you meant about filtering.  You’re creating category url titles manually- and it wasn’t filtering because you didn’t have ‘Use Category URL Titles In Links?’ turned on.  If you’re using the url titles in your links?  That needs to be ‘on’ in ‘Admin- Weblog Admin- Weblog Management- Global Weblog Prefs’.  I’m not entirely sure if/how it would have been working before. 

    This does mean that if you were autogenerating category id links- i.e. Cx- flipping to ‘Category urls titles’ will now generate those links with a category/cat_url_title.  But you need that setting if you’re going to use cat url titles.

    Make sense?  And does it seem to be working now?

  • #37 / Nov 13, 2008 3:24pm

    Makes sense - and yes, is working now. Thanks, all.

  • #38 / Nov 13, 2008 3:41pm

    Sue Crocker

    26054 posts

    Glad everything is up and running. If you have any further issues, don’t hesitate to open a new thread!

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

ExpressionEngine News!

#eecms, #events, #releases