Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#37 2014-10-05 01:26:34
- gfdesign
- Member
- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
etc wrote #284152:
Just put these
{"good","bad","ugly"}
options into the right field of your second picture, and you should be set. :)
Hi Oleg. I went back to try your beta plugin but I must be doing something wrong. What type ‘input control’ I should choose for my “weather” example ? I’ve tried with all of them but I don’t see my options that I set.
The steps I do to create ‘wheather’ variable are these:
1. I go ‘Prefalizer’ tab and create a new variable called ‘wheater’ with these values:
Name: wheater
Value:
Visibility: hidden
Event: variable
Input control: etc_input_radioset (also I’ve tried with other controls but no success)
User:
Position: 101
Actions
2. I go ‘Variables’ tab and put {"a":"good","b":"bad","c":"ugly"}
in the textarea of right belonging to ‘wheater’ variable I’ve created in the previous step.
3. I don’t see any change :|
Neither, I fail to understand why to put the preset values in a screen where the user could be able change them.
I’m sure I’m doing wrongly.
Offline
Re: Custom theme options
Sorry, Fernando, there was an annoying glitch in my code, now fixed. Please re-download and try again (still for testing only).
gfdesign wrote #284549:
Neither, I fail to understand why to put the preset values in a screen where the user could be able change them.
You are right, and that’s what the plugins help says. I’ve put them there only for testing commodity, but they are visible to admins only.
Offline
#39 2014-10-05 19:40:44
- gfdesign
- Member
- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
etc wrote #284556:
Sorry, Fernando, there was an annoying glitch in my code, now fixed. Please re-download and try again (still for testing only).
Yes. Now it’s working :)
etc wrote #284556:
You are right, and that’s what the plugins help says. I’ve put them there only for testing commodity, but they are visible to admins only.
Ok, welcome the explanation. I asked just in case. Let me know if I can help in some way.
Thanks a lot for this beta plugin.
Best regards.
Offline
Re: Custom theme options
Glad it works, tell me if it’s ok to let the admins modify options in the same tab.
Offline
#41 2014-10-16 15:48:35
- gfdesign
- Member
- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
Hi Oleg. I think it’s ok. The only thing I’d add is an extra field to input a short description, but so far it’s enough for me. Thanks so much.
Offline
Re: Custom theme options
gfdesign wrote #284877:
Hi Oleg. I think it’s ok. The only thing I’d add is an extra field to input a short description, but so far it’s enough for me. Thanks so much.
Hi Fernando, you are welcome. Maybe, you can use title
and/or placeholder
attributes of etc_input_generic
parameters:
{"type":"date","title":"Please pick a date"}
If it’s ok, I can add them to other (select, radio, textarea, …) input types.
Offline
#43 2014-10-16 18:34:33
- gfdesign
- Member
- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
etc wrote #284880:
Hi Fernando, you are welcome. Maybe, you can use
title
and/orplaceholder
attributes ofetc_input_generic
parameters:
{"type":"date","title":"Please pick a date"}...
If it’s ok, I can add them to other (select, radio, textarea, …) input types.
It sounds great! It will be a pleasure to test it. :)
Offline
Offline