cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed width framework as a possibility?

MattHarding
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

MattHarding
Active Contributor
0 Kudos

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|; 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).

MattHarding
Active Contributor
0 Kudos

Just want to make sure the contents of this stays current...Last fix almosts works, but looks like more investigation is required, as AFP has dynamic resizing javascript, so when I get time, I'll see if there is a safe way of getting this to work without fooling AFP in a way that makes it unstable. i.e. Going from a smaller browser size to a larger size when you have 3rd level navigation causes buttons to misbehave.

Anyway - good pet project as I believe fixed Portal AFP would look really good.

Cheers,

Matt

Former Member
0 Kudos

Hi there

Where did you find the PAR file com.sap.portal.navigation.afp.layout.AFPFrameworkLayout which contains the JSP file you are refering to?

Thanks

Ankit

Former Member
0 Kudos

Hi Ankit,

you can find .par files in this location if you are using NW04s

<Drive>:\usr\sap\<SID>\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\deployment\pcd

*Note that the location depends whether you are using NW04 or NW 7.2/7.3(no par file concept and .war files are used with different location)

seshu_yaramala
Explorer
0 Kudos

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.