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.

{preload_replace} + {categories} + [path} = Problem? Bug??

August 01, 2012 10:32am

Subscribe [2]
  • #1 / Aug 01, 2012 10:32am

    ChiefAlchemist

    913 posts

    Maybe this is a parse order issue? Let me try to explain?

    my {exp:channel:entries} loop’s parms are populated (?) using {preload_replace}. I don’t think that should matter but I wanted to mention it in case it does.  [Same layout(s) but different channels makes preload_replace a gem, yes?]

    Within that for a single entry layout (e.g. blog entry) I want to list that entry’s {categories}. However, when I use {path} within the categories loop it includes the C#. I don’t want the cat # to be inclused. I want path/blog/{category_url_title}.

    I tried path=‘site_index’ but it still includes the cat# in the URL path generates.

    How can I get rid of the c3 in path? Or what’s another reasonable workaround?

    Thanks in advance for your help.

    Mark

  • #2 / Aug 02, 2012 3:00pm

    John St-Amand

    865 posts

    So in Administration > Channel Administration > Global Preferences, do you have “yes” or “no” selected for “Use Category URL Titles In Links?”

  • #3 / Aug 02, 2012 5:44pm

    ChiefAlchemist

    913 posts

    Hey John

    It’s set to no. 95% of I try to operate in dynamic=“no” mode. Rather have to (learn) and assume what EE does under certain conditions I send to be pretty specific, when I can.

    Best I can tell, this isn’t a bug. I reread the docs and it more or less says it’s going to create category able links. I’m gonna have to sack {path} and hardcode the links. NBD. But my dev folder structure is not the same as production so I was hoping to not have to sink to that that.

    Any other idea?

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases