Developer
Supported
Rangee
Back to this add-on's main page
View Other Add-ons From Wouter Vervloet
lowercase output option
Feature Request
|
David Hyland
|
| Posted: 24 June 2011 01:50 PM |
|
|
|
|
hi there. i absolutely love this plugin! it’s already found use in 2 different sites since yesterday!
one request though, to add an option to out the text values as lowercase (useful for values, ids, etc). i needed this one for one application so i add the following to your weekdays function:
'day:short:lower' => strtolower($this->EE->lang->line($day[0])), 'day:medium:lower' => strtolower($this->EE->lang->line($day[1])), 'day:long:lower' => strtolower($this->EE->lang->line($day[2])),
thanks for sharing this great plugin!
|
|
|
|
|
Wouter Vervloet
|
| Posted: 26 June 2011 08:45 AM |
# 1
|
|
|
Developer
|
Hi David,
I like your idea, but if I’m going to implement it I’ll probably expand on it a little bit more by adding :uppercase and :capitalize to the mix.
Regards,
Wouter
|
|
|
|
|
Wouter Vervloet
|
| Posted: 26 June 2011 08:57 PM |
# 2
|
|
|
Developer
|
Hi David,
I just put up a new version (v0.8) which includes your feature request.
You can now append :lowercase, :uppercase or :capitalize to any text-based variable and it will output the following:
:lowercase = All lowercase characters :uppercase = All uppercase characters :capitalize = The first character will be uppercase, the rest lowercase
Hope this helps.
Wouter
|
|
|
|