You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Luke DeWitt <lu...@penguinfire.com> on 2006/07/13 18:59:02 UTC

Velocity Layouts

Good Day Everyone,

I was wondering about something that I am sure is very simple, but I cannot find any information about anywhere.

At this moment, it appears as though the jetspeed-layouts::VelocityXColums are being absolutely positioned about 150 pixels away from the left of the screen. I was where I could set this to not happen (ie/ be on the very left of my screen) without using absolute position in my JSP file. There has got to be a CSS setting somewhere, and if someone could please point it out to me, it would be a great help.

Thanks a ton!

--LD

user list questions

Posted by David Sean Taylor <da...@bluesunrise.com>.
I want to apologize if people have sent me messages on the user list and 
I didn't respond, or if I have neglected a particular JIRA issue.

I have this bad habit of taking on too many projects at once and sort of 
drowned in June.

If I didn't respond to a direct question to me, or a question in my 
particular area of expertise, please resend it.

This week I plan to address some important database issues:

1. normalizing the principal table. A number of users have complained 
about the principal tables not being normalized with the principal name 
in its own  column, as well as the principal type in its own column. 
There are always needs to join to  the user tables, and without 
normalized columns, its  difficult. Please start a thread on the dev 
list to discuss this in further detail

2. finally fixing the preference issues with entities per user/page 
instead of entities per page (in the database). Please start a thread on 
the dev list to discuss this in further detail, or visit the JIRA issue:
http://issues.apache.org/jira/browse/JS2-449

3. I have also seen requests for additional columns on the principal 
tables. Normally I recommend joining for these columns, or putting them 
in the user  attributes. However if someone wants to make a case for why 
we could have a few generic columns on the user table, start a new email 
  discussion on the dev list

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Velocity Layouts

Posted by David Sean Taylor <da...@bluesunrise.com>.
Luke DeWitt wrote:
> Good Day Everyone,
> 
> I was wondering about something that I am sure is very simple, but I
> cannot find any information about anywhere.
> 
> At this moment, it appears as though the
> jetspeed-layouts::VelocityXColums are being absolutely positioned
> about 150 pixels away from the left of the screen. I was where I
> could set this to not happen (ie/ be on the very left of my screen)
> without using absolute position in my JSP file. There has got to be a
> CSS setting somewhere, and if someone could please point it out to
> me, it would be a great help.
> 
> Thanks a ton!
> 
> --LD

I assume you want to get the entire lhs menu as well as the portlets 
moved flush left to the browser window.

First look at decorations/layout/tigris/header.vm:
Try replacing
#includeLinksWithIconNavigation($navigationsStandardMenu $TOP_TO_BOTTOM)
with
<p>hello</p>

You will see the 'hello' text go flush.
So its just a matter of narrowing down which style in the macro is 
padding. Note that velocity does not  reload macros by default, so you 
will have to inline to speed up testing

The macro is found in:

  decorations/layout/tigris/decorator-macros.vm

I  then tried removing  the entire lhs menu from tigris
REMOVE:

#if(!$navigationsStandardMenu.empty)
           <td valign="top" id="leftcol" >
               <table cellpadding="0" cellspacing="4" border="0" 
width="100%">
#includeLinksWithIconNavigation($navigationsStandardMenu $TOP_TO_BOTTOM)
               </table>
           </td>
#end

and then the portlets were still not flush with the lhs

Looking at the portlet decorator in decorations/portlet/decorator.vm:

<div id="${f.id}" class="portlet ${decoration.baseCSSClass}">

remove the style leaving:

<div id="${f.id}" >

and portlets begin to flush left, however the formatting is bad
so you will need to tweak your CSS from there

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org