- Posts: 41
COMMUNITY FORUM
K2 Tags - Ampersands
- Tom
-
Topic Author
- Offline
- Senior Member
Stumbled across an annoying little bug.
I have publication issues listed as Tags within K2. The only problem is that the format for these consists of Publication title + issue date.
In some titles we have ampersands and for branding purposes, these must remain (as opposed to replacing with 'and').
The ampersand included causes the tag to break and the articles listed under that tag will not show.
Is there a way anyone knows of to remedy this?
Any assistance greatly appreciated. Th
Joomla 2.5.
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
&|&
Give it a try and let me know.
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
Many thanks for your response.
That area (for me) was under the SEO heading - there's not a specific 'Tag System Settings' header in the K2 Parameters - perhaps as I'm on an older version.
Either way, I now have -
Å |S, Å’|O, Ž|Z, Å¡|s, Å“|oe, ž|z, Ÿ|Y, Â¥|Y, µ|u, À|A, Ã�|A, Â|A, Ã|A, Ä|A, Ã…|A, Æ|A, Ç|C, È|E, É|E, Ê|E, Ë|E, ÃŒ|I, Ã�|I, ÃŽ|I, Ã�|I, Ã�|D, Ñ|N, Ã’|O, Ó|O, Ô|O, Õ|O, Ö|O, Ø|O, Ù|U, Ú|U, Û|U, Ü|U, Ã�|Y, ß|s, à |a, á|a, â|a, ã|a, ä|a, Ã¥|a, æ|a, ç|c, è|e, é|e, ê|e, ë|e, ì|i, Ã|i, î|i, ï|i, ð|o, ñ|n, ò|o, ó|o, ô|o, õ|o, ö|o, ø|o, ù|u, ú|u, û|u, ü|u, ý|y, ÿ|y, ß|ss &|&
The last one (in bold) which I added seems to have converted the code you provided.
No joy yet...
Thanks so much for your assistance with this.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
If upgrading could be avoided, that would be preferable. I have a lot of customisation going on and the fear is that by upgrading, this will be lost.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
I don't know if this will work but you are free to try.
Make a comparison between the k2tag.php files located in administrator/components/com_k2/tables/ of the 2.6.5 and 2.6.7 versions. Check if there are any differences. Maybe if you added the replacement there would work.
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
I've tried updating versions, but am running into an error:
Fatal error: Class 'K2Controller' not found in SITENAME/components/com_k2/controllers/itemlist.php on line 15
Sorry to be a pain with this - it's a small, but very annoying thing I need to get sorted!
Thanks again.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
If it helps, I'm also running sh404sef - but can't see anything there that's causing it.
Is there a private message facility so I can send you a link?
Essentially the '&' in the Tag title is being replaced with '?' in the Tag listing URL - it gets as far as where the '&' is in the URL, then breaks e.g what should be:
site/en/tag/word1-word2-word-3-june-2013
becomes....
site/en/tag/word1-word2-word3?Word4_Word5_June_2013=
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Now I want you to tell me your Joomla! version to check about the error you are getting upon installation of K2.
Please Log in or Create an account to join the conversation.
- Tom
-
Topic Author
- Offline
- Senior Member
- Posts: 41
I'm on Joomla 2.5.
So as I understand it, there is simply no way to have an ampersand in a Tag as it's listing URL will break?
If so, I guess we will have to bite the bullet and replace with 'and' after all.
Thanks for your help with this. Best, Tom.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.