Plugin

Developer
Supported

EE 1
EE 2
Rangee

Back to this add-on's main page
View Other Add-ons From Wouter Vervloet

     

You must be logged in to post.

lowercase output option

Feature Request

David Hyland
David Hyland

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
# 1
Developer
Wouter Vervloet

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
# 2
Developer
Wouter Vervloet

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 uppercasethe rest lowercase 

Hope this helps.

Wouter