Skip to Content

Fixed width framework as a possibility?

Hi All,

I'm leveraging the AFP with some detailed visualisation designs, and when it comes to layout of pages, although I can get things laid out okay regardless of the width, it would be better to limit the width of the Portal to some limit (1024) and simply centre the content so that the additional screen space becomes a border, rather than empty space within the content area. i.e. The body background would fill up wider screens around the centered maximum widht portal content.

I've looked through the available theme options, tried modifying the table layout JSP to include a maximum width, and also tried wrapping a table around the tables to limit the width (note - I'm trying to do minimum changes to SAP standard layout PAR file).

Anyone else had this requirement or have an idea if there is a style I need to overwrite to enable this change to width or simply a preferred way of doing this?

Thanks in advance,

Matt

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Mar 17, 2009 at 08:25 AM

    Well finally got an hour to play around with this again.

    In the afpFrameworkLayout.jsp, simply modify the tables statement with a width and alignment tag like so:

    width="600px" align="center"

    Next problem I had was that I still haven't found the theme setting to set the background colour for the whole theme, so I just overwrote the body class background-color with the following in the JSP:

    <style type="text/css">

    .prtlBody

    {

    background-color: #<your bg colour>;

    }

    </style>

    Pretty simple as I thought it would be but has now left me with quite a bit of work to do to tidy the related graphic changes caused by this (mainly with the background colour change actually).

    If anyone knows what theme setting modifies prtlBody - would love to know - will let you know when I find the right solution. This [Forum Post|changing-the-background-colour-of-the-portal-logon; has one solution, but it's kind of dodgy like the above solution and would change BG for all themes (though some simple JSP programming could fix this if you have a way of knowing which theme you are using - for example URL based).

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Matt Harding

      Hi Matt,

      I am looking to do achieve same functionality in 7.3 portal, I have followed below steps, but facing issues with unresolved errors in JSP.

      1) Downloaded the war file com.sap.portal.navigation.afp.layout.war

      2) Imported into 7.3 developer studio using Import->war file option

      I am seeing lot of unresolved errors in afpFrameworkLayout.jsp and not able to build and deploy the war file. I would really appreciate if you help me with the steps you followed to resolve these errors.

      Thanks,

      Seshu.

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.