Jump to content
Sign in to follow this  
agileapricot

What the types of option? (Find them hard to spot in class.options.ui.php)

Recommended Posts

agileapricot

I'm adding custom options using advance.php. What the types of option? I find them hard to spot in class.options.ui.php

Share this post


Link to post
Share on other sites
Kate

Hi Robin, I apologize... I'm not sure I understand your question. Would you be able to clarify, please?

Share this post


Link to post
Share on other sites
agileapricot

Hi Kate, I'm trying to set custom options using advanced.php. I want a tick box type option. The comments in the default file say to look in class.options.ui.php for the option types you can set but I can't find them. Basically i want to know all the type names for this array...

	'type' 			=> 'text',
	

Share this post


Link to post
Share on other sites
agileapricot

Hi cmunns, That is what I would have thought but sadly it doesn't seem to display anything in the options list. If I change the type to text it does display though.

	'pagetags' => array(
				'default' 		=> '',
				'type' 			=> 'checkbox',
				'inputlabel' 	=> 'Enable tags for pages'
			),
			'pagecats' => array(
				'default' 		=> '',
				'type' 			=> 'checkbox',
				'inputlabel' 	=> 'Enable categories for pages'
			)
	

Share this post


Link to post
Share on other sites
cmunns

Robin my mistake. Use just `'check'`

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×