Technical support This forum is closed.
Version 1.x > Technical support > Image Gallery - Adding Fields to Upload Page View modes: 
User avatar
Member
Member
forrester - 4/14/2006 9:31:00 PM
   
Image Gallery - Adding Fields to Upload Page
Right now, when I add a new image to the Image Gallery, I fill in the fields as such:

Upload File:
File Title:
Description:

Can I modify that upload page to something like this:

Upload File:
Name:
Position:
Contact:

So that the detailed image will display like this:

## Picture ##
John Doe
CEO
(555) 555-3456

Thanks for your help.

forrester

User avatar
Member
Member
Martin_Kentico - 4/18/2006 12:32:55 PM
   
Re: Image Gallery - Adding Fields to Upload Page
Hello,

The image gallery item (image itself) is a regular CMS.File document based on a document template. For additional items you need to edit the document template attributes within the Development section of the CMSDesk.

Please note that if you change the attributes of the CMS.File document template, the items will be changed within all of the CMS.File documents in your tree structure. If you need to apply the changes only for the image gallery files, you should use your own document template.


For the detail display part, you need to edit the CMSDesk/Metadata/CMS/ImageGallery/detail.ascx transformation template or another transformation template that you need to change.


You should find all the information you need to know about creating and editing the document templates and transformations in the Kentico CMS Tutorial (Step 10 - Using Custom Document Types) or in Kentico CMS Developers Guide (Custom Document Templates)

If you need any further help with that, please let me know

Best Regards

User avatar
Member
Member
forrester - 4/18/2006 4:48:34 PM
   
Re: Image Gallery - Adding Fields to Upload Page
Martin,

I will take your advice and give it a try. Thanks for your help and will let you know if I need more assistance.

Regards,
forrester

User avatar
Member
Member
forrester - 4/19/2006 8:26:14 PM
   
Re: Image Gallery - Adding Fields to Upload Page
Martin,

The process was quite simple. I created the document type and edited the transformation template as needed, and it works.

I am still relatively new to SQL, so I have another question relating to this topic. I have 10 other galleries on the same site with the number of images ranging from 10-30 images. Is it possible to convert those galleries (being that they have a different table name from this one) over to the new structure or do I need to delete it, create a new image gallery and re-enter all the images with the new structure.

Thanks for all your help,
forrester

User avatar
Member
Member
Martin_Kentico - 4/20/2006 8:36:23 AM
   
Re: Image Gallery - Adding Fields to Upload Page
Hello,

The SQL Script might be an option, but you would need to analyze the tables structure and it might be quite annoying. I will try to give you better solution for that.

Kentico CMS provides a simple tool that allows you to import certain files or directories into the content tree. The tool is located within the Tools section of CMSDesk and it is named File Import. The only thing you need to do is to setup the upload folder for importing the files (or use the default folder ~/upload), place the image files into that folder and easily import the files using the file importing interface.

You can find some more information about setting up and process the file importing in Kentico CMS Developers Guide, topic "Extending modules" -> "File Import"

If I can be of any further help, please let me know

Best Regards

User avatar
Member
Member
forrester - 4/24/2006 6:06:49 PM
   
Re: Image Gallery - Adding Fields to Upload Page
Martin,

Thanks for your alternative solution. I will give it a try and let you know how it turns out.

Regards,
forrester