Hi,
AFAIK, there is no such thing as "a list of fields" in DW config, and no way
to build it either. Maybe, using a single big ugly multiline text that you
can easily parse would be ok ? for example a list of paragraph like this :
# This a comment
pattern1
replacement1
titlehead1
titletail1
pattern2
# replacement2 failed attempt
replacement2-correct-version
titlehead2
titletail2
and so on...
During init, your JS sends an AJAX request. The PHP part of your plugin
catches the request,
parses the config and sends a JSON array as the answer. Another way would be to add your
config data to the global
$JSINFO array that DW adds to the page. I don't know if it can be
used when in edit mode.
indexmenu uses both techniques in its
action.php file.