- Posts: 3
- Thank you received: 0
% and / characters stripped from labels on save
- daduts
- Topic Author
- Offline
- New Member
Less
More
10 years 3 months ago #1935
by daduts
% and / characters stripped from labels on save was created by daduts
greetings,
i just bought and downloaded CP 3 today and am installing it for the first time on a J3.3.1 site.
i've had two problems with special characters not saving properly in labels.
first, i tried to use the value "100%" as one of my property values. the "%" sign disappears when i save the property.
second, my site is bi-lingual and i use the easylanguage plugin to handle translations. i tried to use the following on a property label: {lang en}Composition{/lang}{lang cn}组成{/lang}
upon saving, the brackets saved properly but the "/'s" were removed.
here's a look at the page i'm working on....
teamtierno.com/index.php/en/gloves/fingerless
thanks,
Dave
i just bought and downloaded CP 3 today and am installing it for the first time on a J3.3.1 site.
i've had two problems with special characters not saving properly in labels.
first, i tried to use the value "100%" as one of my property values. the "%" sign disappears when i save the property.
second, my site is bi-lingual and i use the easylanguage plugin to handle translations. i tried to use the following on a property label: {lang en}Composition{/lang}{lang cn}组成{/lang}
upon saving, the brackets saved properly but the "/'s" were removed.
here's a look at the page i'm working on....
teamtierno.com/index.php/en/gloves/fingerless
thanks,
Dave
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
10 years 3 months ago #1936
by andrea_4g
Replied by andrea_4g on topic % and / characters stripped from labels on save
Those 2 chars [%, /] are forbidden.
Please be consider that labels are used in urls (depends on config).
The % sign, when followed by numbers, is interpreted as an url-escaped char, and can alter the meaning of the orl.
The / char changes the url as well.
That's why they are stripped from labels.
Custom Properties is compatible with both native Joomla language system and with Falang component.
Please be consider that labels are used in urls (depends on config).
The % sign, when followed by numbers, is interpreted as an url-escaped char, and can alter the meaning of the orl.
The / char changes the url as well.
That's why they are stripped from labels.
Custom Properties is compatible with both native Joomla language system and with Falang component.
The following user(s) said Thank You: daduts
Please Log in or Create an account to join the conversation.
- daduts
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 years 3 months ago #1937
by daduts
Replied by daduts on topic % and / characters stripped from labels on save
Thanks for the quick reply.
Perhaps you might consider using the "name" field in url's which I think may be more consistent with how regular Joomla articles and most components work.
I guess this is a long shot, but is there any way to do a quick patch that would allow the "/'s" to work ? Maybe strip them when creating URL's instead of when saving labels ?
I'd strongly prefer to keep using the Easy Language plugin as it's a great work saver and I've got this particular client trained on it on other sites already in production.
Thanks for your consideration,
Dave
Perhaps you might consider using the "name" field in url's which I think may be more consistent with how regular Joomla articles and most components work.
I guess this is a long shot, but is there any way to do a quick patch that would allow the "/'s" to work ? Maybe strip them when creating URL's instead of when saving labels ?
I'd strongly prefer to keep using the Easy Language plugin as it's a great work saver and I've got this particular client trained on it on other sites already in production.
Thanks for your consideration,
Dave
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
10 years 3 months ago #1938
by andrea_4g
Replied by andrea_4g on topic % and / characters stripped from labels on save
The url format is selecteable (param "Url format" in Custom Properties options).
One can choose between:
- Tag ID
- Tag Name
- Tag Label
So, if you select either Tag ID or Tag Name there won't be issues with the [%, / ] chars ending up in url.
Then you need to make a modification in CP code to allow the slash char in field labels. (I'll write you in private about such modification)
Please be aware that the modification will be made to the core code of CP, hence it will be overwritten by future updates.
One can choose between:
- Tag ID
- Tag Name
- Tag Label
So, if you select either Tag ID or Tag Name there won't be issues with the [%, / ] chars ending up in url.
Then you need to make a modification in CP code to allow the slash char in field labels. (I'll write you in private about such modification)
Please be aware that the modification will be made to the core code of CP, hence it will be overwritten by future updates.
The following user(s) said Thank You: daduts
Please Log in or Create an account to join the conversation.
- daduts
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 years 3 months ago #1939
by daduts
Replied by daduts on topic % and / characters stripped from labels on save
Fantastic ! Thanks for the patch and thanks for the great support !
Cheers,
Dave
Cheers,
Dave
Please Log in or Create an account to join the conversation.
Time to create page: 0.179 seconds