Shape 5

Joomla Templates => Sea of Glass - September - Club => : akerman November 18, 2008, 02:15:17 PM



: Solved - There's something fishy in the salty Sea... menu labels..
: akerman November 18, 2008, 02:15:17 PM
Hi,

Just want to share a little insight.

Since deployment of SoG there have been some small issues with the SoG menu labels, you know the small subtitles you can put under your mainmenu at top.

Well, as it turns out, the javascript handling this is a bit sensitive when it comes to the characters you actually can use in this field (Text Label 1 - 10 in template manager).

For example if you have a menu saying:  Images
And under that menu you type:                   That's nice!

Well, then that will very efficiently kill the script and all following text labels on the next menu items will simply not be displayed.

This is normal and quite natural since the javascript does not expect to bump into any apostrophe characters.

So, be careful and avoid characters like : "  '  &  ?  ( )  { } [ ] and so forth, since such characters are commonly used within your site scripts.  (This is not a complete list, just serves as an example)

--------------------------------------------------------------------------------------------------------------------------------------------------
FYI, the file 'parameters.ini' is supposed to say 'Unwritable' since the permissions are correctly set to execute/read for all levels of users. The template will still be able to update the file from within Joomla! Template manager. (parameters.ini is where these subtitles are stored)

So, hopefully this will make someone sleep better at night.  ;)

Regards
Akerman


: Re: There's something fishy in the salty Sea... menu labels are odd little buggers..
: jonahh November 19, 2008, 12:21:34 PM
If you do run into this problem you should be able to escape the characters with their ASCII codes, here is a site that lists them:

http://tntluoma.com/sidebars/codes/

For example instead of using "!"  use "!" instead


: Re: There's something fishy in the salty Sea... menu labels are odd little buggers..
: akerman November 19, 2008, 03:15:21 PM
Yes, that is correct. This works for many instances where you can run into similar problems, maybe in a module when typing text in a field.

Just remember that these ASCII codes 'vanish' when you save, and if you edit the field (it is very likely) you have to retype the ASCII code again.

I sometimes use this method with
 in modules with several rows of text in a field, in order to fool it to move text down a row.

Thanx Jonah

Regards
Akerman


: Re: Solved - There's something fishy in the salty Sea... menu labels..
: jjsmulo November 21, 2008, 01:50:10 PM
Thank you for posting on this. When I changed the menu sub-text this morning I lost everything except for the sub-text on 'Home'. I just changed the text on one of the items that had an apostrophe and everything works.