I needed checkboxes and longer text entries for the fields I use in the cataloger add-on module (0.4). I've attatched the changed file for anyone interested.
It's a bit rough and ready, you just need to terminate the attribute names appropriately.
'_tick' yields a checkbox
'_box' yields a textarea (80x5)
'_wide' yields a wider (80) input textbox
To get the textarea to size properly I also had to remove the 'width' and 'height' entries from the 'textarea' css entry in 'admin\themes\default\css\style.css'.
I strip off the modifiers at the end of the field names in the admin display. Anyone who displays the field names in the templates may want to do the same there.
To check if a checkbox is ticked in a template you'll need to use something like...
{if $fieldname_tick=='on'}
ticked: Yes
{else}
ticked: No
{/if}
Slightly related question. If I add a tag like '{cms_selflink page="home"}' inside the value stored in a text attribute.. how do I process it?
Many Thanks
Peter.
[gelöscht durch Administrator]
Cataloger hack to add checkboxes and textareas for custom fields + call for help
Re: Cataloger hack to add checkboxes and textareas for custom fields + call for
Of course - If you change field-names and already have content in those fields it will not be visible under the new name - unfortunately this appears to be how this module works...
Peter.
Peter.