Using some of Image Gallery Images in a another modules of mojoPortal

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/10/2011 1:28:56 PM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Using some of Image Gallery Images in a another modules of mojoPortal

Hi,

I have a suggestion to add "only one field of type bit" in Image gallery table with default value 1.

The point:

Many users may need to add a collection of Images which looks like the image gallery structure, but they may use it in their modules only as "private galleries", so If I have a "My Projects" module and each project has a collection of images which I need to view them only in that Project page, I need to create new table Identical to Image Gallery table, but with this "bit" the users can use these images only in their modules and not to view them in Gallery page by setting them to false.

These Images already connected with "ModuleID" to that Project.

Note: I can manage the whole changes and send it to you.

Regards

1/10/2011 1:33:16 PM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: Using some of Image Gallery Images in a another modules of mojoPortal

Also I think it will be useful for the same gallery, because there is no such filed (toShow or isEnabled..etc, I can add 2 fields "isVisible and isPublished")

 

Regards

1/11/2011 1:06:49 PM
Gravatar
Total Posts 18439

Re: Using some of Image Gallery Images in a another modules of mojoPortal

Hi ghalib,

Sorry but I am not warm to this idea. In my opinion content features (features that plug into the content system) should be completely self contained and not have any dependency on other content features, it should only depend on mojoPortal core and sub systems. If you need a gallery as a sub feature within your feature you can borrow code from the gallery feature but you should create your own table and not depend on the table that belongs to the gallery feature. If you have a "my projects" custom feature and it needs to store information about images for your projects in the database then you should create your own table to keep track of your images, you are welcome to base your table on the schema for the table used in the image gallery feature but you should not use the same table. It would be different if there was a sub system for galleries rather than a content feature but that is not how the gallery was implemented, it was implemented as a content feature and no other content feature should take a dependency on it. I would like to have sub systems for comments and tagging and that is on our road map and once implemented can be re-used in other features. Building a gallery sub system might be an interesting idea but it would have to be implemented in a way to make it easy to use in content features and it is not currently a planned sub system and probably will not happen any time soon.

As far as suggesting new fields for the existing gallery, I'm open to the idea if people want a way to disable an image but I would base that on more than one person requesting it and making the case why they need it, no-one has ever requested it before. To me if you don't want an image in the gallery then delete it or don't upload it seems to solve the same problem as IsVisible and I see no difference between IsVisible and IsPublished.

Also if you are wanting to contribute to the project you should first send me a signed contributor agreement in the mail so that I have it on file before I ever see your code.

http://www.mojoportal.com/contribute.aspx

Best,

Joe

2/5/2011 10:55:46 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: Using some of Image Gallery Images in a another modules of mojoPortal

Hi,

I have a small issue, I could not solve it, please help if you can advice:

 

I cloned the Image Galley module as a part of my "Project Module".

now each project have its gallery and when I open the project page it lists projects and the Project gallery (if that project have Gallery) and all the view work fine, but when I click on an Image it opens in the browser as downloaded and it does not  open in the Gallery viewer, when I debug the page it give me error on javascript file : (mojocombinedfull.js) line 69

this.current_set=set;},showSet:function(_41){this.current_index=_41;var _42=this.current_set[this.current_index];this.show(_42.url)

'url' is null or not an object !!!!

 

please advice

regards

2/6/2011 2:27:23 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: Using some of Image Gallery Images in a another modules of mojoPortal

hi all,

what I need here is an advice only, the error on JavaScript, which suggestions or what can cause such error?

I checked the code more than once, I even debug the JavaScript code and it sent these values as Array!

Any advice will be appreciated.

 

regards

2/6/2011 8:19:01 AM
Gravatar
Total Posts 18439

Re: Using some of Image Gallery Images in a another modules of mojoPortal

Hi,

Sorry but I have no idea. Since the code that you cloned works all I can suggest is to compare carefully your cloned version to the original version.

Best,

Joe

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