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
Theme option: Display text?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Theme option: Display text?
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:
Regards,
Garvin
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!'
)
);
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Theme option: Display text?
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.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.
YL
You should also be able to use type content:
I don't know what the difference might be, but I always use content in my plugins.
Code: Select all
$template_config = array(
array(
'var' => 'infoxxx',
'name' => 'infoxxx,
'type' => 'content',
'custom' => '<b>Read this! First! Now!</b>'
)
);