Freebie icon indicating copy to clipboard operation
Freebie copied to clipboard

Strange result when using {exp:freebie:category_id segment='4'} in channel tag

Open rehananwar opened this issue 12 years ago • 0 comments

There seems to be a bug when using {exp:freebie:category_id segment='4'} in channel tag in a specific case.

If the tag {exp:freebie:category_id segment='4'} is used anywhere in the template before using it in the channel tag ( {exp:channel:entries channel="listing-channel-name" category="{exp:freebie:category_id segment='4'}" dynamic="no" parse="inward"} ), the category parameter value is parsed into something cryptic. The template debug output shows the following: Tag: {exp:channel:entries channel="blog" category="M00o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr" dynamic="no" parse="inward"}.

Removing the occurence of this tag earlier in the template gives the following (correct) debug output: (0.023463 / 11.06MB) Tag: {exp:channel:entries channel="blog" category="{exp:freebie:category_id segment='3'}" dynamic="no" parse="inward"}.

rehananwar avatar Oct 27 '12 15:10 rehananwar