Skip to Content
author's profile photo Former Member
Former Member

HTML Meta Tags in Portal Component

Hi,

I have created a portal component and would like to add in <meta> tags into the head of my html document. I have a jsp using the hbj:documentHead tag to add meta tags to the html.

However, when the page is rendered, the <meta> tags appear in the <body> instead of the <head>. Is this a bug in the portal?

Thanks in advance.

Nick Mitchell

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2004 at 10:21 AM

    Crude trick to get this to the top..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2004 at 10:28 AM

    There doesn't seem the ability to add any RAW TEXT into the <head></head> section of a website as it is being controlled by another component.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2004 at 03:46 PM

    We are required by eGovernment initatives to add metadata to the head of our html pages. We can get it to add to the body but not to the head.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I've been looking a bit on the code and there doesn't seem to be any possibility for adding content to the head tag when using htmlb (not sure how jsp rendering is done).

      See classes com.sapportals.portal.htmlb.HTMLBService and com.sapportals.portal.prt.service.laf.LAFService

      of course you could modify the classes above to suit your needs but I wouldn't recommend this due to incompatabilities when upgrading.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.