How to change doctype for Open Graph integration with MojoPortal?

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/23/2011 8:29:27 AM
Gravatar
Total Posts 137
When enough isn't

How to change doctype for Open Graph integration with MojoPortal?

Hi

Following the advices in Facebooks open graph integration you should place different meta tags in your master or on specific pages. The meta tags that Facebook have "invented" unfortunately contain a html-invalid tag "property".

This is the guidence I'm able to find: http://stackoverflow.com/questions/2704942/html-validation-error-for-property-attribute, which tells you should change your doctype to a XHTML+RDFa version. But there a number of different doctypes with and without "transitional" and I'm affraid to break MojoPortal just exchanging them.

In my MojoPortal master it looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

What should it be exchanged with to make both the property tag work and of course wink also MojoPortal?

I'm exited to hear if this is at all possible .. thanks a lot, Lars, Denmark

 

9/23/2011 8:46:50 AM
Gravatar
Total Posts 18439

Re: How to change doctype for Open Graph integration with MojoPortal?

Hi Lars,

You are free to edit the DocType in your layout.master file. You can change it as specified in the facebook documentation or in the stackoverflow post you linked.

mojoPortal won't care about the doctype. It may affect validation according to the w3c validator but its not going to cause any problem in mojoPortal functioning.

Some of the skins we ship use Xhtml doctype and others use Html 5 doctype, but you can use whatever you like.

Hope that helps,

Joe

9/23/2011 1:05:23 PM
Gravatar
Total Posts 137
When enough isn't

Re: How to change doctype for Open Graph integration with MojoPortal?

Thanks - that's great! What can you ask for more ... total freedom smiley.

Thanks for quick and precise answers as always.

Lars

 

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