Cataloger hack to add checkboxes and textareas for custom fields + call for help

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
DigitalAcorn

Cataloger hack to add checkboxes and textareas for custom fields + call for help

Post by DigitalAcorn »

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]
DigitalAcorn

Re: Cataloger hack to add checkboxes and textareas for custom fields + call for

Post by DigitalAcorn »

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.
Locked

Return to “Modules/Add-Ons”