Closed stinhambo closed 14 years ago
The more people use Freebie the more reports I hear about various plugins and modules not working with this feature....numbers are just too prevalent as URI segments for it to work well.
Do you have a suggested idea for how this could work, or would it make more sense for me to just remove the "ignore numbers" checkbox?
Well I guess a parameter to test against numbers would be useful. At the moment I am using conditionals to test against everything else which can get cumbersome.
So something like {exp:freebie:is_number segment="3"}, that returns true or false, would work?
I think so :) Would this work in a conditional too?
Yep, you'd write {if "{exp:freebie:is_number segment="3"}" == "true" && segment_3 != "sandwiches"}
This is in! Take a look.
Works perfectly! Where can I contribute to your retirement fund?
Closing!
I can ignore numbers in the URL but how can I check to see if the URL contains numbers in the template?
With Freebie, Structure isn't respecting the Channel listing template (the detail page) so I have to create a list of conditionals in the main template.