Hello,

i just installed the mod and configured couple of my multiselect menu text fields to have <div id="name"> as prefix and </div> as suffix, but i cannot then see them nowhere in the form submission page code, or on node output code neither.

Maybe i misunderstood the purpose of this module, but it's not to allow more styling of CCK forms?

Thanks for any hint!

Comments

mh86’s picture

The module is exactly made for adding your own code to cck fields, like a div.
I tested it again, and in my forms prefix and suffix appear. Do the markup values appear in the widget settings? Would be interesting!

Thanks for any help!

marcoBauli’s picture

yes, the markup fields do appear in widget settings. But even if i insert there my divs, the code in the submission form appears exactly the same before and after the change:

<div class="form-item">
 <label for="edit-field_kite_lines-key">Lines number: </label>
 <select name="edit[field_kite_lines][key]" class="form-select" id="edit-field_kite_lines-key" ><option value="1">2</option><option value="2">4</option><option value="3">4-5</option><option value="4">5</option></select>
 <div class="description">specify the number of lines on this kite.</div>
</div>

Also a Warning is displayed:
Invalid argument supplied for foreach() in /home/citysnap/public_html/ka/sites/default/modules/form_markup/form_markup.module on line 47.

(..cannot swear it, but i think this happened after the update to
today's version..)

I am on 4.7.2 and my CCK version is 1.56.2.4 of the 07/11

mh86’s picture

prefix and suffix values appear outside of the div class='form-item'!
the reported bug has been fixed (form_marlup version 1.4)! Thanks!

marcoBauli’s picture

uhm..updated to latest form_markup version but it does not work for me..

I keep getting:

warning: Invalid argument supplied for foreach() in /home/citysnap/public_html/ka/sites/default/modules/form_markup/form_markup.module on line 47.

on all of my content-types submission forms.

Also the values i specify in field widgets are not remembered (once i submit my prefix/suffix the default cck message confirms my changes are saved, but if i check back, the two fields are empty!)

and no prefix/suffix out of the div class='form-item' neither..

marcoBauli’s picture

Update: probably CVS version wasn't updated yet (we are on the bleeding line testing here ;)

manually updated to 1.4:

now the Warning disappeared, but still the other 2 problems are there for me (fields not remembered and prefix/suffix do not appear).

thx

mh86’s picture

I tried it again with an older version of cck - and yes your reported problems now occur. I've not yet checked where the differences to older versions are. I would recommend you to update to a newer version of cck!
Thanks for your help!!

marcoBauli’s picture

just a bit lazy to update everything to the new content_ content types, but your module made me take the step up for it. Everything works like a champ now and is hugely useful!

thank you :)

mh86’s picture

Status: Active » Closed (fixed)