Apostrophe in News Category

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
atdesign
Forum Members
Forum Members
Posts: 38
Joined: Fri Feb 24, 2012 12:57 pm

Apostrophe in News Category

Post by atdesign »

Hello,

I have a news category name that includes an apostrophe. How do I call it? {news category="Category's Name"} is not working. Or are apostrophes not allowed?

Thanks.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Apostrophe in News Category

Post by calguy1000 »

Well, I wouldn't recommend using apostrophe's or any other character that has to be encoded to transmit across urls etc.

However, you may have "limited" success like this:

Code: Select all

{capture assign='tmp'}Category's Name{/capture}
{news category=$tmp}
or

Code: Select all

{news category='Category\'s Name'}
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.
atdesign
Forum Members
Forum Members
Posts: 38
Joined: Fri Feb 24, 2012 12:57 pm

Re: Apostrophe in News Category

Post by atdesign »

Thanks for the suggestions but unfortunately neither worked. I'll rename the category.
Post Reply

Return to “CMSMS Core”