I've searched the forums and the Internet for a solution to what appears to be a bug, but I can't seem to come up with anything.
I'm a new user trying to set up a blog using Flexinode (so I can define custom fields) and I'd like to use the image-gallery-link feature. I can add the field to the content type just fine, but when I try to use the finished form to create a node, the "Image Galleries" selection box will only list the root galleries. It won't list any of the nested galleries.
For example, say I have the following galleries set up (thanks to the Image module):
What is the correct way to have international characters (æøå etc.) appear correctly in a selection form? My options are hard-coded (that is, they are not retrieved from the data base), and entries look like
'key1' => 'value with æøå in it'
Currently, the special character is rendered as a question mark, and several succeeding characters may be gobbled (depending on the browser...).
I have tried coding the option values with HTML entities (æ etc.) but they get displayed as is, not rendered.
I want a form to submit, update a DB record, then re-render itself with the new info in the form. I am using
function formname() {...}
to render the form, and
function formname_submit() {...}
to process the form. However I find I am unable to modify the form (e.g. add a hidden form field) in the
formname_submit() function. The problem: After the submit button is clicked, Drupal 4.7 seems to first execute the function formname(), THEN execute function formname_submit(). So you do not process the form until after you have re-rendered it.