forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: taraAthan on January 04, 2008, 11:42:34 pm

Title: changing keyword input to textarea
Post by: taraAthan on January 04, 2008, 11:42:34 pm
I changed the keyword input field to a textarea so I can add more keywords
as I use a faceted search structure and it takes more characters to indicate
the facet that the keyword belongs to as well as the keyword itself.
It was really easy!!!
1. First, I modified the database (using phpMyAdmin) so that the keywords field is of type text)

2.  Then I changed one line in editpics.php (in the main gallery directory)

I put in this line
        array($lang_editpics_php['keywords'], 'keywords', 2, $CONFIG['max_img_desc_length']),
to replace the current line number 70
//        array($lang_editpics_php['keywords'], 'keywords', 0, 255),

3. I use keywords like this
event.Ludwigia_field_tour species.Ludwigia_hexapetala

and so on: the part in front of the . is the "facet" name.
I tried it first with a : instead of a ., but everything after the : was stripped away
so that didn't work.

Thanks for a well-written and documented application!