Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Custom theme options
philwareham wrote #284043:
Also remember we have support for jQuery UI in 4.6, so things like datepickers would be fairly easy to incorporate I hope. I’m sprinkling a few jQuery UI bits into my changes to the UI at the moment. Some of the other input types such as
input type=colorcould handle colour pickers if/when all the major browsers fully support HTML5 input types. Just a thought.
Yes, that will be fairly easy to do.
I have uploaded a new version of the plugin, just for testing. It adds custom radiosets to the input controls family.
Offline
#32 2014-09-22 16:26:47
- gfdesign
- Member

- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
- Option name: ‘The friendly name that user reads’
- Variable name: ‘For internal uses on page templates’
- Type of field: As it’s commented above
- Description A simple text to give to user some instructions about it.
- Order or position: Here, I ‘m referring to order in the UI screen regarding the other fields. (If I am not wrong, would be ‘Position’ in the ‘smd_prefalizer’ plugin)
- Public. In adi_variable puglin you can set up some variables as public or not. Basically, it does to enable or disable (not hide) the edition mode depending on user’s privileges.
- Category or group which it belongs. Yes. here etc is right. I mean, the super admin be able to create fildsets in order to group the created fields to get a better UI experience. By way of example, a group called ‘General setting’, ‘Social networking’, ‘Options for “Home” section’, ‘Colors scheme’, and so on.
- Required or not. Options won’t be saved at least that user enters the mandatory or correct data.
About my example “Footer text” may be it’s not be the most representative, but I thought like some editable text displayed across in the whole site.
Bloke wrote #284030:
There’s nothing to stop a clever plugin operating like adi_matrix for Forms, allowing you to use them as true snippet holders without all the other interface clutter. So you could give admins access to this stripped-down, sanitized area that only showed Forms of maybe one type (like ‘Section’ or ‘Misc’ or something). In there, people could just write content which would get folded into the site’s templates.
Yeap. This is what I’ve thought but the (just a bit) annoying thing is to access to these options is that involves more clicks and users some times won’t know how to find them. Please, don’t take this as a complaint, I’m trying to put in the final user’s shoes. :)
etc wrote #284051:
I have uploaded a new version of the plugin, just for testing. It adds custom radiosets to the input controls family.
I don’t see the hour to have a bit spare time to try it :D
Last edited by gfdesign (2014-09-22 16:55:34)
Offline
#33 2014-09-23 01:00:42
- gfdesign
- Member

- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
etc wrote #284051:
I have uploaded a new version of the plugin, just for testing. It adds custom radiosets to the input controls family.
Hi Oleg. I’m testing your beta plugin but I guess I am stuck :P. I’ve read the help but I feel fool because I couldn’t create the variables you put as example. Please, don’t rush. I can wait for other versions and give you some feedback in other new topic if you want. (is it important if I try it in a TXP 4.5.2 installation?)
Please, let me know if I can help with something.
Regards
Offline
Re: Custom theme options
Oops… I guess I have forgotten to precise that you have to disable/enable the plugin to trigger a db table creation, sorry :(
Offline
#35 2014-09-24 04:43:27
- gfdesign
- Member

- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: Custom theme options
I’ve done what you pointed..

but I get this.

Certainly, I am doing something wrong. :|
(pd: Sorry if I delay to answer, but I no longer receive notifications by email about the topic I am subscribed. I no have idea what it’s the problem, even I’ve changed my email several times.)
Offline
Re: Custom theme options
gfdesign wrote #284145:
Certainly, I am doing something wrong. :|
Just put these {"good","bad","ugly"} options into the right field of your second picture, and you should be set. :)
(pd: Sorry if I delay to answer, but I no longer receive notifications by email about the topic I am subscribed. I no have idea what it’s the problem, even I’ve changed my email several times.)
I’m not getting notified, neither.
Offline
#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
titleand/orplaceholderattributes ofetc_input_genericparameters:
{"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