• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Minor bug in News category and suggestion for improvement
PostPosted: Fri May 19, 2017 9:44 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Apr 02, 2017 10:00 am
Posts: 24
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Minor bug in News category and suggestion for improvemen
PostPosted: Fri May 19, 2017 1:16 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 7805
Location: Fernie British Columbia, Canada
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.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Minor bug in News category and suggestion for improvemen
PostPosted: Tue May 23, 2017 7:53 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Apr 02, 2017 10:00 am
Posts: 24
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?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Minor bug in News category and suggestion for improvemen
PostPosted: Tue May 30, 2017 10:36 am 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 2722
Location: The Netherlands
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}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting