Back to ProBlog Support

elibaird110721
elibaird110721

Getting posts by category with the url filter param $this->param("filter") results in errors because it is unable to url decode exactly to the name column. Example: "2016 Operation: Ashabadi (Chamba)" converts to "2016-operation-ashabadi-chamba" for slug, but then when decoded becomes "2016 operation ashabadi chamba." and fails to match back to the column name.

Solution being just use the slug for match, and then the "name" column is free to have crazy symbols.

Thoughts?

Last updated

ChadStrat
ChadStrat

I would suggest making your category names much more simple in nature. The code to parse any number of combinations would be quite bloated. Alternatively, you could pre-dispose the list component to filter by category and manually type the category name in I believe.

elibaird110721
elibaird110721

Yah I understand that chad, I am working with clients, so my predisposition is to make the plugin as fool-proof as possible. I have made the changes to the plugin on my end to match to the slug and have tested for a while to no adverse effects. Just thought I would make the suggestion. You already have a database-safe & url-safe ID with the slug, why not just make it the UID?

Cheers :)

1-3 of 3