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

You could probably hack it by using extending  AbstractPortal and overwriting for example doOnNodeReady ( http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/runtime/com/sapportals/portal/prt/component/AbstractPortalComponent.html )
Why do you need the meta information ?

Similar Messages

  • How to specify HTML meta tags?

    I'm trying to get a portal to always have the following an HTML meta tag in the head of the generated HTML:
    <meta name="ROBOTS" content="NOFOLLOW" />
    I haven't seen any documentation about doing this in particular, but looking at some of the XML schema (*.xsd) files in various weblogic-specific jars, it seems like maybe the following would work in the <netuix:head> tag of the .portal configuration file for the portal:
    <netuix:head>
    <netuix:meta name="ROBOTS" content="NOFOLLOW" />
    </netuix:head>
    However, this does not seem to work.
    Also, I've checked the skin.properties file to see if there are any comments about how to specify meta tags, but there aren't any.

    Turns out there are a number of ways to do this. A BEA consultant recommended modifying the "head.jsp" for the portal's skin.
    Alternatively, it dawned on me that all I had to do was put the meta tags in a jsp and use that jsp in the head area of the .portal file. For example:
    <netuix:head>
    <netuix:jspContent contentUri="/resources/jsp/customHead.jsp"/>
    </netuix:head>

  • Custom HTML meta tags in head section

    We want to add custom HTML code to our html-type (HTMLHelp,
    FlashHelp, WebHelp) output.
    We know how to add HTML code to the <body> section, by
    selecting from RoboHelp's main top menu "Insert > HTML".
    We also know how to add HTML code to multiple topics at once,
    by adding the HTML code to the header and/or footer or a template,
    and linking the relevant topics to that template.
    We now want to add HTML code (in particular, custom META
    tags) to the <head> section. However, it appears that the
    content of the template header appears in the <body> section.
    Of course, we could run a search-and-replace-all on our
    existing topics, to replace existing HTML code on the <head>
    section with our custom code. But we would need to remember to do
    this each time we add a new topic. It is not a big deal, but this
    does not seem to be a very efficient way of doing this.
    We figure that there must be some type of collection of
    HTML-templates that RoboHelp uses each time a new topic is created,
    to automatically insert some standard HTML code. But, do we have
    easy access to such HTML-templates? Where are they stored?
    Thanks for you help!

    Have you tried working in the "True Code" editor? This seems
    to be all you need to do.
    John

  • IPhone HTML meta tags

    I have been developing a mobile website for the past year. Up until the last test on my iPhone, which was today, the website would adjust to the iPhone's browser size. I accomplished this using a meta tag in the HTML.
    <meta name="viewport" content="width=device-width,user-scalable=no">
    For an unknown reason (the code has not been altered, I have even tried uploading backups) the meta tag is completely ignored by the iPhone browser.
    *What could possibly be wrong?*
    NOTE: Today was the first test since I updated by iPhone firmware to 3.1.3. I also tested it on another 3.1.3 device with the same problem. I thought it might be a bug in the new firmware.

    Other iPhone compatible websites are working perfectly. I compared source code, I found nothing. Nothing is wrong with my code as it was working before. I tested about 4 different backups. None of them are working. The mystery is that there is a problem with my website, but no problem with the source code.
    Here is the source code for one page:
    Check this link because I wasn't able to post the source code, the link is an image.
    http://i476.photobucket.com/albums/rr123/EverRun-Noah/mycode.jpg
    Message was edited by: noahssite

  • [HTML] How do meta-tags like "generator"/"author" affect anything?

    Hello guys!
    HTML meta-tags like
    <meta name="generator" content="">
    <meta name="site-created" content="">
    <meta name="expires" content="">
    <meta name="author" content="">
    <meta name="copyright" content="">
    <meta name="reply-to" content="">
    <meta name="owner" content="">
    <meta name="address" content="">
    <meta name="publisher-email" content="">
    <meta name="publisher-url" content="">
    Why would anyone need them on the page? Do they affect anything?

    Ever tried Wikipedia, or Google: "html meta tags"? Please, do your homework first!
    Closing...

  • Changing default META TAG

    Hi,
    is there any solution for changing the default meta tag charset? In my case it's <meta http-equiv="content-type" content="text/html;charset=utf8"> but I need
    <meta http-equiv="content-type" content="text/html;charset=windows-1250">. I can't simply add this meta tag to HTML header, because APEX automatically insert it's own meta tag for character set.
    thanx for your advices
    Robert

    Another issue, which i've solved on my own.
    It's not the question of character set in html meta tag. The solution for this issue was easy. You have to import data with NLS_LANG system variable set to correct language. In my case it was EE8MSWIN1250. After such import, all data are displayed correctly within IE.
    ;o)

  • Writing HTML tags in Abstract Portal Component?

    Hi,
    I am trying to write some HTML tags in an Abstract Portal Component and I am facing problem to write  "/"
    Pls. let me know if there is any escape character or any other way of printing a "/" in a tag like as follows....
    response.write("</td>")
    <b>New Addition:</b>
      SORRY ... WE CAN Write </td> without any problem ..
      Due to some error on the top of the program this is wrongly shown...
    Thanks 
    Mrutyunjay
    Thanks & Regards
    Mrutyunjay

    Hi Nari,
    Follow the below steps:
    1. Store your properties files (test.properties, test_en.properties, test_xx.properties where xx is the locale ) in the folder PORTAL-INF ->Private ->classes
    2. In portalapp.xml for component-config, add this
    <property name="ResourceBundleName" value="test"/>
    3. In your abstract portal component you can use the below code to fetch the value for the key "SERVER_NAME".
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
             ResourceBundle resourceBundle = request.getResourceBundle();
             if(resourceBundle!=null)
                  response.write(resourceBundle.getString("SERVER_NAME"));
             else
                  response.write("Error");
    Let me know if you still face any issue.
    Thanks
    Prashant

  • Parse out the contents of meta tag using HTML.Tag

    I need help with using the HTML.Tag class. I don't even know where to start...
    I want to make a method that allows me to pass in a very long string and the NAME of the meta tag.. and will return the contents of the meta tag.. any help will be super..
    sorry i do not have much of a code base to start with.. I am just guessing on how to get this to work..
    private String getMetatag(String content,String Metaname)
    String Metacontents;
    Object HTML.Tag.META;
    Object HTML.Attribute.NAME.Metaname;
         Object HTML.Attribute.CONTENT;
    return Metacontents;
    }

    One of the way to get started is to check out how to overide (extend) the class
    HTMLEditorKit.ParserCallback.. Lets say the class is called class A
    Overide the methods for
    HandleSImpleTags( HTML.Tag t, AttributeSet attribute, int pos) { }
    roughly, the implemenation in that method is like this:
    HandleSImpleTags( HTML.Tag t, AttributeSet attribute, int pos) {
    if(t.equals(HTML.Tag.META) {
    /// your procedure, what to do when encounter META tag
    // String str = (String) attribute.getAttribute(HTML.Attribute.NAME);
    // System.out.println(str);
    You would still need to find some detail examples on how to use class A .
    Roughly it is,
    parser.parse(inputstream, an_instance of_class_A, true); // method in a outer class like a main class
    parser is a instatiation of from the method getParser. This method need to be overidden as well.

  • Abstract Portal component - KM Html

    Hi,
    We are developing an external facing portal wherein the Home page has 6 components. In that 5 components are static components which refer to the HTML file in the KM repository. For that I have made KM document iview and given the path of the HTML file.
    But as it is an internet page and as its loading time should be less, we planned to make each component as an abstract portal component which refers the HTML file in the KM and displays the same.
    Can somebody tell me as to go about it?
    Thanks & Regards,
    Ganesh N

    solved

  • How to add my html title tag and html meta name and meta keywords

    how to add my html title tag and html meta name and meta keywords in iweb 09

    Like you will see on Roddy's page iWeb SEO Tool will do the job very easily:
    Click to view full size
    Click to view full size
    It remembers what tags went to which pages so they are easily reapplied when you have to republish.
    OT

  • To add meta tags, you open your published .html pages with TextEdit or any other text editor and modify as required. You have to do redo it each time you republish. Ihow do I do this? I need step by step instructions

    To add meta tags, you open your published .html pages with TextEdit or any other text editor and modify as required. You have to do redo it each time you republish. I need step by step instructions on how to accomplish this  please .

    Rage Sitemap Automator and iWeb SEO Tool are two different applications.
    Use SEO Tool to add the title tag and meta description. These need to be added to the html file for every page of your website. SEO Tool stores all these so that when you republish you only need to add tags to any new pages and click the re-apply button to refresh the existing ones.
    Once you have added. refreshe the tags with iWeb SEO Tool and uploaded the files with your FTP application, then open the site in Sitemap Automator and create and upload a new sitemap.
    Once you have set up accounts with Google, Yahoo and Bing, verified your site with each and submitted a sitemap, on subsequent publishing Sitemap Automator will resubmit the sitemap with one button click. It will also notify Ask.com whch doesn't require an account since you can add your domain name to this URL to ping them...
    http://submissions.ask.com/ping?sitemap=http%3A//www.domain.com/sitemap.xml

  • Best practice for implementing META tags for content items?

    Hello,
    The portal site I'm responsible for managing our content (www.sers.state.pa.us) runs on the following WebCenter products:
    WebCenter Interaction 10.3.0.1
    WebCenter Publisher 6.5
    WebCenter Studio 2.2 MP1
    Content Service 10gR3
    The agency I work for is one of many for the commonwealth of PA, which use this product suite, and I'm encountering some confusion on how to apply META tags to the content items for our site, so we can have effective search results. According to the [W3C site's explanation on META tag standards|http://www.w3schools.com/tags/tag_meta.asp], the tags for description, keywords, etc, should be within the head region of the HTML document. However, with how the WebCenter suite's configuration is set up, the head section of the HTML is closed off by the end of the template code for a common header portlet. I was advised to add fields to our presentation and data entry templates for content, to add these meta fields, however, since they are then placed within the body section of the HTML as a result, these tags fail to have any positive impact on the search results. Instead, many of our content items, when searched for, the description in the search results only shows text that is displayed in the header and left navigation of our template, which come early in the body section of the HTML.
    Please advise as to possible method(s) that would be best to implement usage of META tags so we can get our pages containing content to come up in search results with this relevant data.
    Thanks in advance,
    Brian

    if i remember right the index server will capture meta tags even if they are not in the <head> section. it is not well formed html but I think i remember that we created meta tags down in the body section and the index server still picked them up. you might try this and see if it still works. i believe it worked in 10gR3. Let me know your results.

  • How can I include a portal component look and feel in a java servlet

    Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • Refreshing a Abstract Portal Component in Specific Intervals

    Hi All,
    I have developed an Abstract Portal Component which reads Data from an XML File which is stored in KM.
    Requirement :
    I need to REFRESH this iView for every 5 Minutes-Automatically (Just like Websites showing Live Cricket Scores), to read the Updated Data from that XML File. The XML File will be updated every 5 mins.
    If anybody has Idea on this, Please Guide me..
    Thanks in Advance.
    Regards||
    Ashok Kumar M.

    Here are the instructions for Client-Pull method using meta tag
      1. Use META in the HEAD section of your document.
       2. Write HTTP-EQUIV and CONTENT in META to accomplish client-pull.
    Examples
    To reload the document itself:
    HEAD
    META HTTP-EQUIV=REFRESH CONTENT=5
    HEAD
    CONTENT=5 means wait for 5 seconds to reload the page.
    To load visitors to another page:
    CONTENT=5 means wait for 5 seconds to reload the page.
    To load visitors to another page:
    HEAD
    META HTTP-EQUIV=REFRESH CONTENT="5;URL=http://mbiz.co.th/tips_tricks/"
    HEAD
    URL=...... This is the URL of the page you want to load a visitor to.
    using java script window location you can refresh the page
    like window location equals your location
    and call the method which contains window location in body onload
    Edited by: Supraja Koganti on Nov 17, 2008 10:08 AM

  • Can't get a web page to validate with meta tags with w3c??

    I have created a website for my school projects, and every week I have to add something to it for the course, and every monday I have to submit my code in a zipped folder to the professor, after running it through the w3c validation page, and passing, This current week, I was instructed to swork on SEO for my site, and add meta tags to the site to fish for traffic, and then I have to validate it through w3c and submit. Well, I did not complete this because w3c would not validate my page until I removed every single meta tag from the code, and I cannot for the life of me understand the error that is holding me back. So, in an effort to see if I could get some help here, I have included my code, and will try to explain what is happening and the code as well as the error from the validator service. Please have a look, help me, because I am totally lost here....
    Thanks in advance!!
    zlloyd1
    This is my code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>zlloyd on the web</title><meta name="" content="Zachariah Lloyd, basketball, computers" /><meta fttp-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="stylez.css" />
    </head>
    <body><div id="container"><h1>ZLLOYD ON THE WEB</h1> <div id="navbar"><a href="about.html">About me</a> <a href="OceanView.html">Ocean View</a> <a href="swimming.html">Swimming</a> <a href="gaming.html">Gaming</a> <a href="BBall.html">Basketball</a></div><div><a href="gaming.html"><img src="images/Gaming-Desktop-Configuration.jpg" width="107" height="239" alt="console" /></a><a href="BBall.html"><img src="images/300px-Basketball_pictogram.svg.png" width="82" height="76" alt="BallinGuy" /></a><a href="swimming.html"><img src="images/swimming.jpg" width="100" height="237" alt="Strokin" /></a></div></div>
    <a href="contactsupport.html">Support </a>
    </body>
    </html>
    and this is what w3c says when I try to validate the page:
    Line 5, Column 131: there is no attribute "fttp-equiv"
    …mputers, swimming" /><meta fttp-equiv="Content-Type" content="text/html; chars…

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    What in the world does this mean, because I am seriously lost on this, and the only way I could get around this was to completely remove the entire line, "<meta name="" content="Zachariah Lloyd, basketball, computers" /><meta fttp-equiv="Content-Type" content="text/html; charset=UTF-8" />", which removed all of my meta tags completely, in order to validate it?? I cannot see what is setting this thing off like that, I have never gottena validation error before, and I now know that they are written as meaningless gibberish that does not even remotely explain what is wrong, at least not to me....
    Please help!!!!

    Line 4 and line 5 are trying to do the same thing. Take out the
    <meta fttp-equiv="Content-Type" content="text/html; charset=UTF-8" />
    line entirely and you will be good.

Maybe you are looking for