Create table field

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.
2/28/2014 3:52:14 AM
Gravatar
Total Posts 4

Create table field

I want to create data tables to develop individual modules,
When I watch the video (guestbook module) I see your data table has two fields is "ItemGuid" and "ModuleGuid". So when I create a new data table has two fields necessarily have this?
Thank you, Joe

3/11/2014 12:49:14 PM
Gravatar
Total Posts 18439

Re: Create table field

That is entirely up to you but it is what I would do. The moduleguid can be useful for implementing a content delete handler to delete related rows from your table when the module instance is deleted.

moduleguid and itemguid can also be useful if you want to use our built in content versioning to keep a history of changes in edits to your feature and could also be useful for example if you wanted to use our built in comment system to support comments on your feature items or if you wanted to use our content rating system etc. In other words moduleguid and itemguid cna give you somethign to store in those related tables if you choose to use them and it gives you a way to retrieve the related rows from those tables.

You can study built in features to learn about how to implement content delete handlers or how to leverage other subsystems such as content rating, comments, content history etc.

Hope that helps,

Joe

3/20/2014 10:41:18 PM
Gravatar
Total Posts 4

Re: Create table field

Hi Joe,

I made my data tables include the ItemGuid and ModuleGuid, I am very satisfied with results.

Thank you very much.

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