Edit text direction of variable after creation
First let me say what a wonderful add-on Low Variables is. You really do appear to have thought of everything! Except this...
I've used the Variable suffix option to auto create a set of variables for ar cn en fr tr: Arabic, Chinese, English, French and Turkish respectively.
All of these except for Arabic (ar) need a text direction of left to right, but when I go into post-edit the Arabic variable, text direction is not an option I can change!
Replies
Jonathan Schofield 14 Sep 2011 11:01
I know it does say Creation options at the point of creation but it doesn't say text direction can't be changed afterwards.
I'm guessing I could delve into the SQL data and change it?
Jonathan Schofield 14 Sep 2011 11:08
Oops, looks like the problem is because the variable in question is a P&T List field type and I'm guessing that text direction is not an option on that.
Should I take that up with Pixel & Tonic or can you help?
Low 14 Sep 2011 11:14
Hey Jonathan,
Natively, the text direction option is available for Text Input and Textarea variable types. If you're using P&T List, you'll have to ask Brandon to add that option to the fieldtype, I'm afraid.
Jonathan Schofield 14 Sep 2011 11:32
Thanks for the quick reply, Low. Already raised with P&T.
Jonathan Schofield 14 Sep 2011 16:09
FYI: turns out there is a solution using P&T's cp_css_js extension.
Here's what I did with it.