Place content feature inside UI Widget?

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/5/2009 12:56:20 PM
Gravatar
Total Posts 2183

Place content feature inside UI Widget?

I would like to use the cool new UI widgets in a somewhat different way. I have a page that will have 3 different contact forms on it and I would like each contact form to be inside of it's own tab.

Anyone know of an easy way to do this? I was thinking I could design a special Skin that put the content areas inside of the UI widget and then I could easily add the Contact Forms to each content area. Thoughts?

-Joe

6/5/2009 1:17:37 PM
Gravatar
Total Posts 2183

Re: Place content feature inside UI Widget?

I just tried to use the HTML Fragment Include but that didn't work out. Basically, my idea was that I could use portal:modulewrapper to include the individual contact modules inside of the UI Widget and then use the HTML Fragment Include module to display the whole thing. I guess the Fragment is included after design time?

6/6/2009 1:54:19 PM
Gravatar
Total Posts 18439

Re: Place content feature inside UI Widget?

Hi Joe,

Ask me this question again after the next release and I will have a workable solution. 

Best,

Joe

7/22/2009 8:23:41 PM
Gravatar
Total Posts 2183

Re: Place content feature inside UI Widget?

Hey Joe,

You requested that I remind you about this after the last release. Maybe I should have asked you to remind me to remind you.

Anyway, do you have any ideas of how to do this?

-Joe

7/23/2009 6:39:38 AM
Gravatar
Total Posts 18439

Re: Place content feature inside UI Widget?

Hi Joe,

Create a text file named whateveryoulike.ascx

paste in this:

<%@ Control Language="C#" ClassName="MultiModuleInTabsModule.ascx" Inherits="mojoPortal.Web.SiteModuleControl" %>

<%@ Import Namespace="mojoPortal.Business" %>
<%@ Import Namespace="mojoPortal.Business.WebHelpers" %>
<%@ Import Namespace="mojoPortal.Web.Framework" %>
<%@ Import Namespace="mojoPortal.Web.Controls" %>
<%@ Import Namespace="mojoPortal.Web.Editor" %>
<%@ Import Namespace="mojoPortal.Net" %>

<script runat="server">

protected void Page_Load(object sender, EventArgs e)
{
}

</script>

<div class="mojo-tabs">
<ul>
<li><a href="#tab1">Tab 1</a></li>
<li><a href="#tab2">Tab 2</a></li>
<li><a href="#tab3">Tab 3</a></li>
</ul>
<div id="tab1">
<portal:ModuleWrapper ID="ModuleWrapper1" runat="server" ConfigureModuleID="5" />
</div>
<div id="tab2">
<portal:ModuleWrapper ID="ModuleWrapper2" runat="server" ConfigureModuleID="58" />
</div>
<div id="tab3">
<portal:ModuleWrapper ID="ModuleWrapper3" runat="server" ConfigureModuleID="5" />
</div>
</div>

Configure the moduleids and tab labels.

Put the file in the /Modules folder or wherever you like.

Install it via the UI under Admin > Advanced Tools Feature Installation.

Add it to a page or pages.

Hope it helps,

Joe 

7/28/2009 9:26:54 AM
Gravatar
Total Posts 2183

Re: Place content feature inside UI Widget?

Joe,

This worked great! Thank you for taking the time to provide me with the necessary code to make this work. I can use this method for a lot of other things I had in mind.

I posted an article on my blog discussing how to do this and included screenshots and the code. Have a look: http://josephmdavis.com/post/mojoPortal-content-features-inside-UI-Widget.aspx

Thanks,
Joe D.

7/28/2009 9:37:07 AM
Gravatar
Total Posts 18439

Re: Place content feature inside UI Widget?

Hi Joe,

Glad it worked for you and thanks for making a nice blog post about it!

I've created a link to your post in the Community Tutorials page to make it easy for other mojoPortal users to find it.

Cheers,

Joe

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