Page 1 of 1
Theme option: Display text?
Posted: Thu Feb 14, 2008 4:02 pm
by yellowled
I'm working on a template which might require some user instructions. I have done this before, shipping a REAME file with the template, but you can never be sure people actually read it. So I was wondering if it's possible to display some instructional text in the theme options and how to do that.
YL
Re: Theme option: Display text?
Posted: Thu Feb 14, 2008 4:23 pm
by garvinhicking
Hi!
You can use your own configuratm item for that. instead of giving the user a text input field, you can use the "custom" item type. The content itself is then emitted using the 'custom' item variable:
Code: Select all
$template_config = array(
array(
'var' => 'infoxxx',
'name' => 'infoxxx,
'type' => 'custom',
'custom' => 'Read this! First! Now!'
)
);
Regards,
Garvin
Re: Theme option: Display text?
Posted: Thu Feb 14, 2008 6:00 pm
by yellowled
garvinhicking wrote:You can use your own configuratm item for that. instead of giving the user a text input field, you can use the "custom" item type.
Awesome, thanks. I'll definitely use that in templates to come, and I think other template designers should do that, too, if the template requires it.
YL
Posted: Fri Feb 15, 2008 4:59 am
by judebert
You should also be able to use type content:
Code: Select all
$template_config = array(
array(
'var' => 'infoxxx',
'name' => 'infoxxx,
'type' => 'content',
'custom' => '<b>Read this! First! Now!</b>'
)
);
I don't know what the difference might be, but I always use content in my plugins.