- Messaggi: 3
- Ringraziamenti ricevuti 0
% and / characters stripped from labels on save
- daduts
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
10 Anni 3 Mesi fa #1935
da daduts
% and / characters stripped from labels on save è stato creato da 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
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
10 Anni 3 Mesi fa #1936
da andrea_4g
Risposta da andrea_4g al 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.
I seguenti utenti hanno detto grazie : daduts
Si prega Accesso o Crea un account a partecipare alla conversazione.
- daduts
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
- Messaggi: 3
- Ringraziamenti ricevuti 0
10 Anni 3 Mesi fa #1937
da daduts
Risposta da daduts al 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
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
10 Anni 3 Mesi fa #1938
da andrea_4g
Risposta da andrea_4g al 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.
I seguenti utenti hanno detto grazie : daduts
Si prega Accesso o Crea un account a partecipare alla conversazione.
- daduts
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
- Messaggi: 3
- Ringraziamenti ricevuti 0
10 Anni 3 Mesi fa #1939
da daduts
Risposta da daduts al topic % and / characters stripped from labels on save
Fantastic ! Thanks for the patch and thanks for the great support !
Cheers,
Dave
Cheers,
Dave
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.135 secondi