Folder Gallery

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/25/2008 10:20:19 PM
Gravatar
Total Posts 180
Thomas F. Heringer

Folder Gallery

Joe, I looked through the posts and did not see one about this question. Is it possible to have more then one instance of the folder gallery, but with different content? I have tried it on different pages, but end up with the same content. I have a second place I would like to use it, but when I place it on the page I want it already has the same pictures in it. I understand why it would, because that is the way it is in the file manager. Is it possible to have more then one copy of the folder galleries in the file manager?

6/26/2008 3:40:11 PM
Gravatar
Total Posts 18439

Re: Folder Gallery

Yes you can have multiple folder galleries with different content but they all have to start from beneath the FolderGalleries folder

So for example you could have one page with a Folder Gallery with the starting folder set to /FolderGalleries/Gallery1 and another with a starting folder set to /FolderGalleries/Gallery2

The only reason they show the same thing by default is because by default they start at the very root, /FolderGalleries. If you set the starting folder to be a deeper folder then each instance can have different images by having different starting folders.

I'm not sure it works well to have multiple folder galleries on the same page, but on different pages it should be fine.

Hope it helps,

Joe

6/26/2008 6:24:48 PM
Gravatar
Total Posts 180
Thomas F. Heringer

Re: Folder Gallery

Joe, thank you very much it works great.

8/26/2008 3:37:52 PM
Gravatar
Total Posts 37

Re: Folder Gallery

Hi Joe,

Just a quick question about this folder with a follow-up question.

Is it possible to get the folder to point at another area i.e. not under the web structure to view the pictures. I have content (pictures) located on another drive for organisation and security and so would prefer to point at this folder area. Can it be done.

Secondly, will you or this control writer update this so it can do things like add text, change rows, columns, backgrounds etc. something like pentabyte or gphotonet etc. It would be nice to maybe some layout/font control etc. too. Would any of this be possible?

Cheers, Adam

8/26/2008 3:54:29 PM
Gravatar
Total Posts 37

Re: Folder Gallery

Hi again,

Sorry forgot to ask something else. Whilst setting it up (in the correct manner pending the answer to my previous post) I get the following error:

c:\inetput\wwwroot\data\systemfiles\foldergallerycache access denied error.

I'm guessing that's because this folder isn't created or i've not given permissions if the control creates this at runtime. The question is again, how can i keep this away from c:\inetpub etc. can I change this?

I can see a setting in the web config file but it's the latter part of that path but no choice to change the c:\ element. Can this be done please?

Thanks, Adam

8/27/2008 6:25:50 AM
Gravatar
Total Posts 18439

Re: Folder Gallery

Hi,

I "think" its trying to create that folder but can't. You could try creating the folder, it needs to be wriatable as thats where it creates thumbnails and web size images from the full size originals.

You can put your web sites anywhere on your hard drive, it does not have to be in C:\inetpub\wwwroot, that is just the default location, I never put mine there. The important thing is wherever you point it, IIS and asp.net must have read permission on the whole web root folder and full control on the Data folder.

Though the web site can live anywhere on your drive, the images must live beneath the web for it to work at all because its just creating html and links that point to those images so it can only point to images that are being served from the web.

I've locked it down so it can only access files and folders beneath /Data/Sites/[SiteID]/FolderGalleries because if its not locked down this feature can be used to browse all the folders in the web site by hacking the urls in its links. It can only browse images, but it also could show the entire folder structure of your web if it were not locked down.

I integrated this feature from this Photo Handler project on Codeplex. I had to modify it quite a bit for the integration and I have no plans to keep up with changes in that project. I also have no immediate plans of doing any improvements on this feature because I have too many other plans with higher priorities. To me the beauty of this feature is that it has no database components at all, you just point it at the folder with full size images and it creates a nice display with thumbnails. So there is nowhere to store labels or any other text related to the images without adding database logic to this feature and that adds complexity and work.

I'm not sure about what it would take to style it differently and unfortunately don't really have time to investigate that right now. The thing is very self contained, it writes in its own css from code and the styles may be hard coded, I'm not 100% sure.

Best,

Joe

8/27/2008 6:54:44 AM
Gravatar
Total Posts 37

Re: Folder Gallery

Hi Joe,

Fair enough, hear all your points. Do you know how easy it would be to put a watermark on the pictures as they're rendered? I've been using a free component from pentabyte and can be seen on one of my basic pages for sharing pictures with my family around the world at http://www.prismgraphics.co.uk/Gallery/Default.aspx and I like the fact it can put a watermark on the large image.

 

On another completely different point, do you have a search facility in your forum area or am i just missing it?

Cheers, Adam

 

 

8/27/2008 7:00:31 AM
Gravatar
Total Posts 18439

Re: Folder Gallery

I'm sure it could be done in code somehow just like it does in the thumbnails where it draws up arrows I'm sure it could be modified to show a watermark. If you want to implement that and contribute your mods back to the project it would be great.  Maybe it could read some text from Web.config and write it into the bottom of the images as a watermark that would be cool.

The main site search searches the forums, just use the search link in the top right corner of the page.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.