ColorBox popup with HTML

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.
9/19/2011 5:23:20 AM
Gravatar
Total Posts 16

ColorBox popup with HTML

Hi,

I need to create a page that will display a list of contacts.

When you click on each contact a pop-up lightbox will appear with the contact details of that contact. If I make each contact as a new page the pop-up will still have all the template around it which I don't want.

What would be the best way to approach this using MojoPortal and making sure the contact pages are easiliy replicated by the content administrators?

Thanks in advance :)

9/22/2011 8:16:20 AM
Gravatar
Total Posts 18439

Re: ColorBox popup with HTML

In your custom feature you would implement a page to serve as the dialog page and make it not inherit from mojoBasePage and not use the normal master page and styling of the regular CMS pages.

If you are looking for example code that does something similar, take a look at the WebStore feature, if you try it on the demo site you will see if you go to Store Adminsitration there is a link for Order Entry that allows backend creation of orders. Add something to the cart then click checkout. On that page there is a link for user lookup that opens a dialog page to search for existing site users.

Then study the corresponding code in WebStore to see how it works and model your own after it. Making th page open in colorbox is easy, just put a css class of cblink on the link to the dialog page and make sure ScriptLoader has IncludeColorbox="true"

We do have a mojoDialogBasePage that may or may not be useful for you to use as a base class for your dialog page.

Hope that helps,

Joe

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