Example extension with text field in `Preferences`
This is an open discussion with 2 replies, filed under General.
Search
Michael-e’s Textformatter Labels is a good example:
http://github.com/michael-e/textformatter_labels/blob/master/extension.driver.php
Subscribe to the AddCustomPreferenceFieldsets
delegate and in your callback function (above is named appendPreferences
) return an XMLElement containing a fieldset element and input elements. If you name your form fields like:
settings[group_name][variable_name]
They’ll be saved into manifest/config.php
in the settings array for you to retrieve like:
Symphony::Configuration()->get('field_name', 'group_name'))
Superb! Thanks Nick…
Create an account or sign in to comment.
Hello,
Can someone direct me to an extension that demonstrates this functional so I can use its source as a starting reference?
I wish to extend an extension by adding a text field in the preferences panel.
This text field will be stored and retrievable in the db.
Many thanks Ross