Doctype added to top of portal page

Does anyone know how to get a doctype to output at the top of a portal page (we are on the 7.3 portal)?  I have an external facing site that absolutely needs a doctype specified.
You used to be able to use the deprecated
PortalHtmlResponse.getHtmlDocument()
method to get a reference to the document, and you could add a doctype from that.  However, the PortalHtmlResponse object no longer exists, it seems.
I want to add the doctype
<!DOCTYPE HTML>
at the top of a portal page.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001bfa1a-958e-2e10-c2be-d914f673e21e?overridelayout=true
We were able to add a doctype.  I don't recall all of the details because we moved away from SAP portal.  However, you can get a good start from this document.
Essentially, you create a Java portal component that can inject a doctype into any page the component is on.
com.sapconsulting.portal.utils.html_api.jar is what provides the base functionality to do this.
public class DocType extends AbstractPortalComponent
     public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
          EnhancedPortalResponse epResponse = new EnhancedPortalResponse(request, true, false);
          epResponse.setDocTypeToHtml5();
          epResponse.include(HtmlFactory.createHttpEquivMeta("X-UA-Compatible", "IE=edge"));
If I remember correctly, we packaged this code up with an Xml config file to make the portal component, installed it in the portal, and included it in any page that needed the document type set.
I believe the jar file was just open source community code.

Similar Messages

  • Adding Discoverer Worksheet leaves space at the top of the page in Portal

    hi guyz
    I have put an image on the top of the page. When I add a discoverer worksheet on the remaining part, it leaves a small space on the top of the page thus bringing the image a bit down.
    If I remove that worksheet, it behaves normally.
    quick replies appreciated.

    Try editing your region display properties.
    Cheers,
    Mick.

  • Adding Worksheet leaves space at the top of the page in Portal

    hi guyz
    I have put an image on the top of the page. When I add a worksheet on the remaining part, it leaves a small space on the top of the page thus bringing the image a bit down.
    If I remove that worksheet, it behaves normally.
    quick replies appreciated.
    Message was edited by:
    user621354

    Try editing your region display properties.
    Cheers,
    Mick.

  • Easy way adding javascript to portal pages?!?

    Hi,
    I know (because I've tested it) that I can put some java script into portal pages. It's easy to use them as javascript functins, but if I try to use tag to get some data from base... it's doesn't work and generate some errors...
    Please help me!
    Krzysiek
    null

    I know that easier is adding script functions as portal functions/procedures... but HOW can I add characters like " ' " inside htp.p(' '); ??? Is it POSSIBLE or NOT? maybe some other characters are required before (if I dont want to use this inside ' ' as oracle variable, but javascript variable ???
    Krzysiek

  • Adding Gadgets to portal Page

    Hello Experts,
    Does SAP EP has functionality for adding Gadgets  to portal Page.
    Basically i am looking for similar functionality of iGoogle where users can add required gadgets,
    Any informatin would be great help.
    Thanks & Regards,
    Naidu

    Naidu,
    A similar issue is being discussed here, please have a look.
    /thread/1694187 [original link is broken]
    Regards,
    Sandeep Tudumu
    Edited by: Sandeep Tudumu on May 27, 2010 10:20 PM

  • Say subject A is on top of page 1 and subject B is on top of page 2.  As more text is added subject 2 will be pushed to page 3 eventually is there a way to always keep all Subjects on top of the page even it is pushed forward to a new page?

    Say subject A is on top of page 1 and subject B is on top of page 2. 
    As more text is added subject 2 will be pushed to page 3 eventually is there a way to always keep all Subjects always on top of the page even if they are pushed forward to new pages?

    Hi ameryfromny;
    We can place a pagebreak before the Heading or Sub-Heading manually prior to or even after creating a Table of Contents. So that the Heading or Sub-Heading is placed always on top of a page.
    To create a Table of Contents:
    Under Format panel, define paragraph text as Title, Subtitle, Heading, Heading2 ..... and so on for displaying in TOC.
    After completion of document writing, place cursor where a TOC is to be displayed.
                   Insert > Table of Contents > Document
    A table of contents generates automatically.
    Regards,

  • Portal Error Messages Displaying on Portal Page on Top

    I'm getting error messages printed out on top of my portal pages (portal pages do show). For example,
    Error: The listener returned the following Message: 302 FoundHTTP/1.1 200 OK Date: Mon, 18 Aug 2003 23:39:39 GMT Cache-Control: private Server: Oracle9iAS/9.0.2 Oracle HTTP Server Oracle9iAS-Web-Cache/9.0.2.0.0 (N) Content-Type: text/html; charset=UTF-8 Connection: Close
    appears at the top of my pages. What is causing this? Is there a setting in my browser that will help?
    Thanks

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    http://java.sun.com/docs/books/tutorial/javabeans/index.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/
    http://java.sun.com/developer/onlineTraining/index.html
    http://java.sun.com/docs/books/tutorial/index.html
    http://developers.sun.com/events/techdays/codecamps/index.html

  • Adding multiple 100% width slideshows to the top of a page and using triggers to select.  Is it possible???

    Hi!
    I am looking to create a changeable slideshow at the top of a webpage. I want to be able to select different slideshows to view at the top of the page and use triggers/buttons to select the relevant slideshow. This is for a catering site, so I would like that if the user clicks 'canapes' button the slideshow images at the top of the page will show canapes and the caption will show text about them, if they select the 'cocktails' button then a new slideshow will appear showing images of cocktails together with a relevant caption. 
    I thought this might be possible by placing slideshows within a lightbox or composition widget but seem to be banging my head against the wall! Can someone help?
    Is it possible?
    If yes, is there a youtube video to show how its done?
    Any help much appreciated.
    Martin

    Is it possible? Yes... I wouldn't do it because having all those images sitting on the one (first) page will slow the page loading times down and just piss people off but thats your main answeer.
    The compositions widgets allow you to build more complex ideas and is what I'd use to make this sort of thing in Muse...
    p.s. if you just want something fast then have a look at what some people have already made to get ideas;
    1. Templates – MuseLayers
    2. iChef | Culinary Arts Adobe Muse Template | museGrid.com
    3. RESOURCES | Adobe Muse CC

  • How to change one iView to another in portal page by clicking the third one

    Hi all!
    I have created four iViews: two speedometers with web application designer and two iViews with visual composer. I added the speedometers and a visual composer iView #1 to a portal page (default view). The requirement is that by clicking the speedometer #2, the visual composer iView #2 would replace visual composer iView #1 on the portal page. If the user then would select the speedometer #1 again by clicking it, visual composer iView #2 would replace #1 again and so on.
    I have read article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b65a5d-f397-2910-a78a-f5544f21c33b?QuickLink=index&overridelayout=true, but it is more about filtering VC iView values with BI web items. I don't need to filter anything, just to change one iView to another in a portal view by clicking a third one.
    I have thought of placing two VC iView to a same portal page area and defining one of the to be visible and another hidden (by clicking speedometers these properties would change), but I haven't found the way how that could be done in portal. Is there a way to define some OnClick-method to change visibility parameters or url-address of another iView?
    One solution might be¨on the other hand to transfer any value to VC by clicking a speedometer and to change the visibility of the VC iViews according to that value (the speedometer #1 should in that case transfer other value to VC than speedometer #2). I don't know if that is possible with speedometers - you can't reference any characteristics or variables with it.
    If you have an idea, what would be the best way to accomplish this requirement, I would be very glad to hear about it! We are in VC 7.0.
    Points garanteed!
    Regards
    Sari

    Hi,
    In the portal, create a page and place the iView having the three input fields on top. Place the second iView below. Keep differing the second iView for every page. In this way you can make the iView with 3 input fields only in the desired pages. You can use EPCF to invoke / navigate to another iView.
    Regards
    Srinivasan T

  • IViews always grabbing the top of the page

    Hi everyone,
    We are in development of a portal (version 7.0) witch gonna be fully "look and feel" customized. We've created a Desktop, which references our Layout and the main page. In this Page we gonna have 3 basic areas: Header, Content and Footer.
    Problem:
    On this Page the IViews added are always gripping at the top of the browser. The footer is grabbing the top of the page, as the content area is having the same behavior.
    Our layout on the main Page props are defined with one single column, and the IViews are in the correct sequence (header, content, footer), and each IView reference an single .PAR portal object. We've tried already the Double T layout, but didnt work. In our search for properties on the IViews static height size and other options didnt solve this behavior.
    What can be done to have the IViews configured to do not "override" each other?
    Thanks!

    Thanks Raghu for the information. I was able to create my own page layout with the following NW documentation:
    [Creating Custom Layouts - Sap NetWeaver 7.0.|http://help.sap.com/saphelp_nw70/helpdata/EN/42/efbac120711a71e10000000a422035/frameset.htm]
    I am opening another thread relating a new problem problem, cause the IViews assigned to my custom layout are not appearing (page becomes blank).
    Thanks!
    Evandro

  • How to load use an image library in the portal pages

    Hi,
    How to load an image library in the portal ? Do I need to load images in an Apache directory and access them via URLs, or do I need to upload images to a specific portal page, and access these images via specific URL ?
    Thanks for your help,
    Jean-Christophe

    Another easy method is to create a dedicated page in Portal and use it for the storage of images, flash objects.
    Load the images as item type FILE and use the 'direct access' method (HOST:PORT/pls/<DAD>/docs/PAGE/<PG NAME>/<PAGE_NAME>/IMAGE.GIF)to access the file from a URL command.
    This way all your images are protected in the database, easy to add and find (via search or by adding descriptions, categories etc) via role based security and in theory should be quicker to access (via the URL) due to the indexing capabilities of the database.
    Place the images in a location that is not going to cause a page navigation issue such as in its own Page Group or as sibling page to your top level parent page etc.
    Hope this helps.
    John

  • Portal Page fails to change when different link is selected

    I have created popup portal page in the form of a JSPTabContainer. To get the page to launch I am selecting a url that is inside a JSPProvider Channel. The Url is of the form /portal/dt?provider=PopupJSPTabContainer. For some reason setting the property "one_new" for "windowPref" inside the calling JSPProvider Channel has no effect. However by putting target="_blank" in the href tag I am able to pop it up.
    Then when I close that popup window and attempt to go to any other link inside the portal, it continues displaying the content for the page that I just popped up. In effect, once that page has been popped, the portal is stuck and every link makes that page content display inside the original portal browser window. I have to log out and log back in to reset it. Any ideas?

    I am on windows. I checked in the locale directory and there is no amAuthSecureID.properties file there at all although there are many others! I found a copy up in the PolicyAgent\IdentityServer\j2ee_agents\locale directory and copied it there. I will see if that fixes the error. In the meantime Could you clarify what you mean by checking to see if the content is coming from the right provider? I took an existing JSPTabContainer and copied it. I then renamed it to a different directory name. I added it as a channel container in the top level portal desktop using the directory name as the channel name and using JSPTabContainerProvider as the provider. This should be correct right? And thank you for all your help so far!

  • Publishing content from reports server to a portal page

    I have a system with Forms/Reports 6i in a client/server implementation. I have 6i reports server from this on the server tier. I have added 9iAS (minimal install) to get Portal and HTTP server. I have completed the configuration and I can have the portal page submit jobs to the reports server and they are displayed properly.
    But I also wish to run reports from the application. This app submits jobs to the reports server via RWCLI60. I was hoping I could use 'File' as the destype and drop off content into a directory the web server knows about and then have a portal page that will generate links to the files. These could be pdf or html output.
    Can anyone tell me if this is possible and provide a short list of steps to configure it? Thanks.

    there is an example of this on dev2dev, see sample code, "redirect" example
    (dev2dev.bea.com)
    "Lancy Mendonca" <[email protected]> wrote:
    >
    All
    In a webflow how is it possible to redirect to a portal page from a input
    processor.
    The situation I have is as follows. I have a homepage that has a login
    portlet.
    The user enters the username and password and after performing the validation
    and authentication I need to redirect to another portal page that is
    available
    only to logged users.
    Any help will be creatly appreciated

  • Portal Applications in Portal Page

    In the newest version of Portal (Oracle9ias Portal Release 2) I'm having the following problem:
    I have a Portal form that I created in Portal. I want to add that Portal form as a portlet in a Portal Page. I can add the Portal Form successfully into the page if I add the form as a 'Item Displayed Directly In Page Area'. However, if I chose the display as a 'Link That Displays Item In New Browser Window ' or 'Link That Displays Item In Full Browser Window', no link appears. In past versions if I selected this option a link would appear in the page that took me to the Portal Form. In this new version, the portlet is added but the link is invisible??? Is this a bug or is there something I'm missing???

    Hi,
    This is a bug. It has already been filed.
    Thanks,
    Sharmila

  • When I click on a link it moves to the top of the page

    I am new to this forum and fairly new to dreamweaver so I hope this isn't a silly question. I am designing a large number of web pages which will only be viewed on the C:\ drive and not posted on a server.
    I have inserted hyperlinks on the index page linking to other pages in the same folder. I am using a css sheet to define each of the links.
    Now to the problem. When I preview the index page in internet explorer and I click on a link the link works but the actual link itself moves to the top left corner of the index page.
    An example of the html code is:
    <a href="channel.html" title="Channel" id="Channel"
         Channel
         </a>
    The relevant css code is:
    #Channel:link {
         position: absolute
         left:372px;
         top::235px;
         width:100px;
         margin-bottom:0px;
         color:#FFFFFF
         font-weight:normal;
         font-size:12px;
         font-family:Arial, Helvetica, sans-serif;
    #Channel:hover {
         color:0000ee;
         font-weight:normal
         text-decoration:none;
    #Channel:visited {
         color:#551a8b;
         font-weight:normal;
    #Channel:active {
         color:0000ee;
         font-weight:normal;
         text-decoration:none;
    If anyone could explain what I am doing wrong I would be most grateful.

    Your whole presentational approach on that page is flawed.
    <body>
    <div id="BlueBorder"> </div>
    <div id="Div1"><img src="http://www.pjpdecorations.co.uk/images/WhiteBackground.png" width="864" height="647" /></div>
    <div id="Div2"><img src="http://www.pjpdecorations.co.uk/images/NavBar.png" width="828" height="72" /></div>
    <div id="Div8"><img src="http://www.pjpdecorations.co.uk/images/MainTextBox.png" width="430" height="340" /></div>
    <div id="Div4"><img src="http://www.pjpdecorations.co.uk/images/Indeximage1.png" width="150" height="150" /></div>
    <div id="Div5"><img src="http://www.pjpdecorations.co.uk/images/IndexImage2.png" width="150" height="150" /></div>
    <div id="Div6"><img src="http://www.pjpdecorations.co.uk/images/IndexImage3.png" width="150" height="150" /></div>
    <div id="Div10"><img src="http://www.pjpdecorations.co.uk/images/IndexImage4.png" width="340" height="70" /></div>
    <div id="Div11"><img src="http://www.pjpdecorations.co.uk/images/IndexImage5.png" width="230" height="70" /></div>
    <div id="Div9"><img src="http://www.pjpdecorations.co.uk/images/CreatePresBut.png" width="145" height="40" /></div>
    <a href="#" title="Home" id="HomeLink"> Home </a> <a href="#matthew_clark_intro.html" title="Matthew Clark" id="MatthewClark"> Matthew Clark </a> <a href="#" title="Channel" id="Channel"> Channel </a> <a href="#" id="Product"> Product </a> <a href="#" id="AddedValue"> Added Value </a> <a href="#" id="Templates"> Templates </a> <a href="#" id="Reference"> Reference </a>
    You have the body tag, followed by oodles of absolutely positioned elements, followed by naked links with a spurious </p> tag at the end.  Not only are you not allowed to have naked links on the page (they must be contained in something like a <p>, or a <td>, or a <li>, etc.) but since the content above the links is entirely composed of absolutely positioned elements (which are removed from the normal flow), the links are exactly where they should be - at the top of the page.  There is nothing in your layout that would place them anywhere else.

Maybe you are looking for

  • Lost iWeb domain

    Hi, My HD went bad and I lost the domain for my iWeb site. The site is posted to my .Mac (MobileMe) site. Is there any way to bring the files from there back to iWeb? Thanks, Ray

  • Correct startup sequence with external display/keyboard/mouse etc

    Most laptop vendors have docking stations or other devices that enable you to use the laptop with the lid closed in conjunction with an external display/keyboard/mouse etc. Since no such beast exists for the MBP, what is the correct startup sequence

  • Pr to po converssion

    IN a PR there are some 5 items with item category U and release date in future & 5 items with standard item category with release date same as the request date. The standard item category items have been processes while the stock transfer items are n

  • The Dock processor uses 100% CPU

    hi, can someone please help me? my computer for the last 2 dayshas been heating up and the battery wasn't as long as it should, so i checked"activity monitor" and the Process name "Dock" is using100% CPU. i tried quitting the process but it just reap

  • Digital Asset Management (DAM)

    I'm looking at purchasing software that can act as digital asset management, does Aperture have this ability. Basically I need to store digital images off my of hard drive onto DVD/external drives for archiving and then need to be able to find them a