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" />
mojoPortal Hosting & Design @ i7MEDIA!
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.
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,
Hi Joe Vago,
That is a good suggestion, I'll add that for the next release.
Best,
Joe
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!
Personally I would replace it with a hardcoded link in layout.master until the change makes it through to you.
That is what I did too - a normal HTML anchor link hard coded with the email address.
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.
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!
Well spotted Joe!
Joe Vago, I just tried Joe Davis' example and it worked a treat!
Thanks Joe Davis!
Leave it to Joe Davis to show us up...