CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Minor bug in News category and suggestion for improvement
https://forum.cmsmadesimple.org/viewtopic.php?f=89&t=76623
Page 1 of 1

Author:  esmiran [ Fri May 19, 2017 9:44 am ]
Post subject:  Minor bug in News category and suggestion for improvement

I do not show a list of categories but I call them by their name.
If I use national alphabet characters such as "Personální" in category name, then {News category="Personální"} correctly displays the news from this category, but the category name is misspelled. {$category_label} in the template returns "Personální".
If I find the category ID, then I use {News category_id="7"} so the category label is displayed in order.

I have suggestions for minor improvement. Can you pop up the News category ID in the admin interface - Settings - News module, to be easily found?
It is better to use {News category_id=} than category=, because the category name can be changed but the ID is not.

Author:  calguy1000 [ Fri May 19, 2017 1:16 pm ]
Post subject:  Re: Minor bug in News category and suggestion for improvemen

This is why you shouldn't call modules from within WYSIWYG areas. You are mixing design with content. Disable the WYSIWYG for that content block or that content page.

WRT changing the News module to include the id... though trivial, it is too late in the development cycle to worry about that. We'll consider it for another release.

Author:  esmiran [ Tue May 23, 2017 7:53 am ]
Post subject:  Re: Minor bug in News category and suggestion for improvemen

Okay, if I turn off WYSIWYG I can see where the problem is.
But my page has a mix of types: first some formatted text with a picture and then some category of news. So the only solution is to first edit WYSIWYG and then shut it down and fix bugs in national characters?

Author:  velden [ Tue May 30, 2017 10:36 am ]
Post subject:  Re: Minor bug in News category and suggestion for improvemen

Better introduce some additional content blocks in your page template; e.g.
Code:
{content}
{content block=newscat assign=newscat oneline=true label='news category'}
{news category=$newscat}

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/