DOWNLOAD DEMO
Current Version: 2.3.9.7 2013-04-30
Need a hand? Join the community.

How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

4/22/2012 6:17:40 PM
Gravatar
Total Posts 64
-- Joe

How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Joe,

My apologies if I am being dumb... but I cannot get the <portal:OrganizationControl to render anything in my footer in Layout.Master.  Perhaps I don't understand what you mean when referencing the Schema.org Organization markup (I did review their site without figuring out the issue).

I was able to get the <portal:CompanyPhoneLiteral id="litPhone" runat="server" /> control to render in the footer.

Also, when I changed the PublicEmail control to <portal:PublicEmailLiteral id="litEmail" runat="server" /> it then rendered for me. It would not work using your example in the mojoPortal 2.3.8.5 blog post (see below).  But adding the "Literal" word to portal:PublicEmail worked.

Thanks in advance for any help you can provide! 

-- Joe Vago

FROM THE 2.3.8.5 BLOG POST:

<portal:OrganizationControl id="oc1" runat="server" /> will include the company info marked up with Schema.org Organization markup. There are also a few literal controls that can be used separately:
<portal:CompanyPhoneLiteral id="litPhone" runat="server" />
<portal:CompanyFaxLiteral id="litFax" runat="server" />
<portal:PublicEmail id="litEmail" runat="server" />

4/22/2012 7:01:27 PM
Gravatar
Total Posts 1635

mojoPortal Hosting & Design @ i7MEDIA!

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Hi Joe,

For the organization control to load the information saved in Site Settings, you need to add LoadFromSiteSettings="true" to the control in the layout.master. Example: <portal:OrganizationControl id="org1" runat="server" LoadFromSiteSettings="true" />

The Public Email literal should be, as you have found, <portal:PublicEmailLiteral id="litEmail1" runat="server" />

HTH,
Joe D.

4/22/2012 7:16:52 PM
Gravatar
Total Posts 64
-- Joe

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Joe Davis,

Thanks for the quick response.  Adding LoadFromSiteSettings="true" that did the trick!

If only the Email address rendered as a href="mailto:" link it would be even more useful.

Thanks again,

-- Joe Vago

4/23/2012 7:45:40 AM
Gravatar
Total Posts 16576

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Hi Joe Vago,

That is a good suggestion, I'll add that for the next release.

Best,

Joe

6/21/2012 10:01:22 AM
Gravatar
Total Posts 21

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Hi Guys,

I'm new to mojoportal and have just come across this exact same issue, I was wondering if there was a quick fix for making the email address a link instead of plain text temporarily until Joe manages to include it in the next release?

 

I tried <a href="mailto:<portal:PublicEmailLiteral id="litEmail1" runat="server" />"><portal:PublicEmailLiteral id="litEmail1" runat="server" /></a>

 

But that obviously will not work. Are there any other suggestions?

 

Thanks in advance!

6/21/2012 10:52:50 AM
Gravatar
Total Posts 1049

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Personally I would replace it with a hardcoded link in layout.master until the change makes it through to you.

6/21/2012 11:15:47 AM
Gravatar
Total Posts 64
-- Joe

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

That is what I did too - a normal HTML anchor link hard coded with the email address.

 

6/21/2012 11:28:42 AM
Gravatar
Total Posts 1635

mojoPortal Hosting & Design @ i7MEDIA!

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Hi,

Your quotes are wrong and you need to have different IDs on each control:

<a href='mailto:<portal:PublicEmailLiteral id="litEmail1" runat="server" />' class="publicemail"><portal:PublicEmailLiteral id="litEmail2" runat="server" /></a>

HTH,
Joe D.

6/21/2012 11:29:12 AM
Gravatar
Total Posts 21

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Thanks for the replies guys,

Yeah thats what I ended up doing, its just a shame it has to be hard coded at the moment. But I guess it won't be long until this is updated.

 

I guess if this is the only thing I've got to moan about then it can't be that bad!   smiley

 

6/21/2012 11:32:57 AM
Gravatar
Total Posts 21

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Well spotted Joe!

Joe Vago, I just tried Joe Davis' example and it worked a treat!

Thanks Joe Davis!

6/21/2012 11:40:52 AM
Gravatar
Total Posts 64
-- Joe

Re: How to use the new portal:OrganizationControl (new in ver 2.3.8.5)

Leave it to Joe Davis to show us up... 

wink

mojoPortal Hosting Made Easy

Go Mobile with mojoPortal and Mobile Kit Pro!