add field category in table g2_Item

webdemoiselle

Joined: 2008-03-11
Posts: 5
Posted: Tue, 2008-03-11 08:44

Dear,

which file has to be modified to save also the category value in the table g2_Item?

Thx for helping.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2008-03-11 16:25

several files, it's not that simple because of some levels of abstraction.

why not create a new Map table which associates each itemId with your category value?

or why not use the Custom-field module for this?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
webdemoiselle

Joined: 2008-03-11
Posts: 5
Posted: Tue, 2008-03-11 18:10

Thanks for the solutions!

Quote:
why not create a new Map table which associates each itemId with your category value?

And which file is used to upload the photo and put in the database?

Quote:
or why not use the Custom-field module for this?

Is probably the most easy solution, but as category is provided in the metadata, I prefer to use this field.

 
webdemoiselle

Joined: 2008-03-11
Posts: 5
Posted: Tue, 2008-03-11 19:57

I tried to install the module, but I get the following error:
Error Detail -
Error (ERROR_PERMISSION_DENIED)

* in modules/core/classes/GalleryView.class at line 168 (gallerycoreapi::error)
* in modules/core/SiteAdmin.inc at line 196 (galleryview::loadview)
* in modules/core/classes/GalleryView.class at line 300 (siteadminview::loadtemplate)
* in main.php at line 445 (siteadminview::doloadtemplate)
* in main.php at line 94
* in main.php at line 83
* in main.php at line 3

Does this module creates extra fields in the database?

 
webdemoiselle

Joined: 2008-03-11
Posts: 5
Posted: Tue, 2008-03-11 21:16

I also see I can't choose any theme. I don't see the activation tab under plugins, I have a blank page.

Is there a failure in my installation of Gallery?