When a new module is installed, or when settings for various features need to be set, how would one figure out how to refer to it in the xml file? So if i want to change a given setting in panels, or the admin_menu, or how to change a setting on any other given setting on the site. Can you sue the devel module and tell it to show the form elements and weights to show the names of different fields to get their values?
For example, if part of the pattern i have created I want to install and setup the IMCE module. How would i know how to call the different fields and dropdowns, and their values from the patterns XML file to set them as desired?
Comments
Comment #1
ChrisBryant commentedThe module supports a
tag that let's you fill out pretty much any form. I'll paste some syntax below.
There is also a setting for "Enable Patterns Form Helper" under /admin/build/patterns/settings that will show the values from submitted forms. This will help to see what forms submit and what you can use with the
tag.
Here are a few YAML examples: (XML should be similar)
We have plans to generate patterns automatically so that you don't have to do this manually, but we haven't had the time to write it just yet. Ideally each of the useful modules should have patterns support written and supplied with them so that the form tag isn't necessary. We've also started work on the Configuration Framework module which should make this much easier as well.
Hope that helps!
Comment #2
ChrisBryant commentedI created a documentation page for this here:
http://drupal.org/node/516332
Comment #3
luckysmack commentedGreat! thanks, i did notice the 'enable patterns form helper' but wasnt sure how to make the best use of it. I think this is a great module and def. has some potential. I should be able to do what i want to try out. thanks.