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.
Minor bug in News category and suggestion for improvement
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
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?
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?
Re: Minor bug in News category and suggestion for improvemen
Better introduce some additional content blocks in your page template; e.g.
Code: Select all
{content}
{content block=newscat assign=newscat oneline=true label='news category'}
{news category=$newscat}