Search

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

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details