You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by dee factorial <de...@gmail.com> on 2007/02/20 01:21:12 UTC

Improved Web Content Portlet

Currently the webcontent portlet does not support css.
I was thinking that one way to implement css would be to create a css
rewriter that downloaded the css files and created html rewrite tag rules
from the css file.
I have browsed through the rewrite source code to try and get a handle on
what its doing.
I found the default-rewriter-rules.xml and rewriter-rules-mapping.xml
and I found the java files under components/rewriter
I also found this article that might help in defining what is needed to be
done.
http://www.phptr.com/articles/article.asp?p=29294&seqNum=12&rl=1

please correct me on my terminology and my implementation strategy.

Dominique

Re: Improved Web Content Portlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Feb 19, 2007, at 11:26 PM, dee factorial wrote:

> when you say write out the css content do you mean a link to a css  
> page or
> do you mean reading the css files and then writing them in the portlet
> header.
>
> I think that there could also be links in the css files so those  
> would need
> to be rewriten as well.
>
Rewrite the links during header phase, and add any CSS content inline  
directly to the head also during header phase




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


Re: Improved Web Content Portlet

Posted by dee factorial <de...@gmail.com>.
when you say write out the css content do you mean a link to a css page or
do you mean reading the css files and then writing them in the portlet
header.

I think that there could also be links in the css files so those would need
to be rewriten as well.

On 2/19/07, David Sean Taylor <da...@bluesunrise.com> wrote:
>
>
> On Feb 19, 2007, at 4:21 PM, dee factorial wrote:
>
> > Currently the webcontent portlet does not support css.
> > I was thinking that one way to implement css would be to create a css
> > rewriter that downloaded the css files and created html rewrite tag
> > rules
> > from the css file.
> > I have browsed through the rewrite source code to try and get a
> > handle on
> > what its doing.
> > I found the default-rewriter-rules.xml and rewriter-rules-mapping.xml
> > and I found the java files under components/rewriter
> > I also found this article that might help in defining what is
> > needed to be
> > done.
> > http://www.phptr.com/articles/article.asp?p=29294&seqNum=12&rl=1
> >
> > please correct me on my terminology and my implementation strategy.
> >
> > Dominique
>
> I think the CSS could be added to the Header phase of the portlet
> Take a look at the AbstractDojoVelocityPortlet.java, and the doHeader
> method
> You would need to change the WebContentPortlet to support the header
> phase, and write out the CSS content at this point
> At least that is the general high level plan i had in mind...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>

Re: Improved Web Content Portlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Feb 19, 2007, at 4:21 PM, dee factorial wrote:

> Currently the webcontent portlet does not support css.
> I was thinking that one way to implement css would be to create a css
> rewriter that downloaded the css files and created html rewrite tag  
> rules
> from the css file.
> I have browsed through the rewrite source code to try and get a  
> handle on
> what its doing.
> I found the default-rewriter-rules.xml and rewriter-rules-mapping.xml
> and I found the java files under components/rewriter
> I also found this article that might help in defining what is  
> needed to be
> done.
> http://www.phptr.com/articles/article.asp?p=29294&seqNum=12&rl=1
>
> please correct me on my terminology and my implementation strategy.
>
> Dominique

I think the CSS could be added to the Header phase of the portlet
Take a look at the AbstractDojoVelocityPortlet.java, and the doHeader  
method
You would need to change the WebContentPortlet to support the header  
phase, and write out the CSS content at this point
At least that is the general high level plan i had in mind...



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