Page 1 of 1

HTML special codes in news categegory

Posted: Tue Aug 04, 2020 6:10 pm
by babel
I need in the news-module to name a couple of categories. Works fine, except when using grave accent. For example:

Code: Select all

{news number='5' category='Personal branding,Werken aan je Carrière'}
only shows Personal branding. How can I make sure that Werken aan je Carrière wil also turn up?

Re: HTML special codes in news categegory

Posted: Tue Aug 04, 2020 8:54 pm
by DIGI3
News is a pretty basic module, and quite dated. The category names are essentially aliases so restricted in what they can contain.

If you only have a few, you could give them a simple name (alias) such as 'branding', then in your template add a more detailed title based on a check of the simple category name.

CGBlog, which is a fork of the News module, expanded on this a little bit by adding a field for a description of the category, but it's still a victim of age. Depending upon your setup and requirements, LISE might be another option as it distinguishes between the alias and title of a category.

The future does promise either an update or replacement for News, but not quite yet.

Re: HTML special codes in news categegory

Posted: Wed Aug 05, 2020 9:42 am
by babel
Thanks DIGI3 for your reply. I'll live with it.