How to create a "SharedFile" from another module ?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/24/2011 11:24:44 PM
Gravatar
Total Posts 7

How to create a "SharedFile" from another module ?

Hello

I'm developing a new module...

From this modules I would like to call a function to create a new SharedFile and get back the just created object so I cna get some details from inside to use in my module.

How can I do this ?

Thanks a lot for the help..

Daniel

1/25/2011 1:49:35 PM
Gravatar
Total Posts 18439

Re: How to create a "SharedFile" from another module ?

Hi Daniel,

You are not going to like my answer, but I recommend do not do that. I think all CMS features (ie features that plug into the content system including Shared Files) should be self contained and not have any dependency on other cms features, they should only depend on mojoPortal core and its sub systems. You should not depend on the existence of another feature and you cannot be sure the feature won't change and break your code. You can borrow code from Shared Files to implement what you need in your own feature but you should not depend on the Shared Files feature from a custom feature. All features included in mojoPortal and all add on features I ship follow this rule.

Best,

Joe

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