cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Moreira <jmore...@e-terno.net>
Subject RE: Cocoon Portal
Date Fri, 25 Oct 2002 10:57:01 GMT
does the sunspot components come with the Cocoon tar.gz ?

how can i install them ? thank you



-----Mensagem original-----
De: Bert Van Kets [mailto:bert@vankets.com]
Enviada: sexta-feira, 25 de Outubro de 2002 11:17
Para: cocoon-users@xml.apache.org
Assunto: Re: Cocoon Portal Layout


k, back to the basics then.

I'm using an older version of Cocoon (CVS build of 14/5/2002).  There's not
much changed to the portal since then, except it moved to a sub sitemap.

Here's the pipeline that's called first:
         <map:match pattern="sunspotdemoportal">
                 <map:act type="auth-loggedIn">
                         <map:parameter name="handler"
value="sunspotdemohandler"/>
                         <map:redirect-to uri="sunspotdemo-portal"/>
                 </map:act>
                 <map:generate src="sunspotdemo/resources/free/portal.xml"/>
                 <map:transform src="sunspotdemo/styles/TO-html.xsl"/>
                 <map:transform type="encodeURL"/>
                 <map:serialize/>
         </map:match>

Here you see that first an action is called that checks whether the user is
logged in.  We are going to skip this one for now as that's not what we are
looking for.  After this you see that the portal.xml file is called and
it's transformed with teh TO-html.xsl file.  Opening that file and lookign
for the <pageset tag I find:

<xsl:template match="pageset">
       <frameset border="0" frameborder="0" framespacing="0" noresize="">
         <xsl:if test="@rows">
           <xsl:attribute name="rows"><xsl:value-of
select="@rows"/></xsl:attribute>
         </xsl:if>
         <xsl:if test="@columns">
           <xsl:attribute name="cols"><xsl:value-of
select="@columns"/></xsl:attribute>
         </xsl:if>
         <xsl:apply-templates/>
       </frameset>
   </xsl:template>

And there is your conversion from teh pageset to the frameset tag.

Does this answer your question?

I'm not sure I get your last question, but the layout can be changed as
much as you like.  Just make sure the browser get correct (x)html.

HTH,
Bert

At 18:00 25/10/2002 +0800, you wrote:

>Hi Bert
>
>Sorry to have confused you...
>
>I'm looking for the part that generates the exact <frameset> tags
>which in the end would be serialized as xhtmls.
>
>Question: There no limitations (except of course for being a valid htmls)
on
>however
>we set these frames / pagesets right?
>
>Thanks.
>
>
>========================================
>----- Original Message -----
>From: "Bert Van Kets" <bert@vankets.com>
>To: <cocoon-users@xml.apache.org>
>Sent: Friday, October 25, 2002 5:45 PM
>Subject: Re: Cocoon Portal Layout
>
>
>Hi Richard,
>As said before, it's in the resources/free/portal.xml file.
>Here's the content of mine:
>
><page>
>    <pageset columns="*" rows="100,*">
>      <part title="Header" scrolling="no">
>        <url>adminfree-header</url>
>      </part>
>      <pageset columns="*" rows="*,15">
>        <part title="Content">
>          <url>adminfree-content</url>
>        </part>
>        <part name="bottom" scrolling="no">
>          <url>adminfree-bottom</url>
>        </part>
>      </pageset>
>    </pageset>
></page>
>
>
>There's a similar file in the auth directory.
>
>Is this not what you are looking for??
>
>BTW using the windows search on the content of the files can save a lot of
>time when trying to get your grips on the portal.
>
>Bert
>
>At 15:56 25/10/2002 +0800, you wrote:
> >Thanks Bert I have already read all the urls you've given me.
> >I have successfully implemented the Authentication, now I'm trying to
> >do the portal and authorization ( Roles ).
> >And its sure is that Im gonna read the portal documentations some more.
> >
> >Although I still would want to know were those frameset codes are?
> >Its not on the xml, not on the xsl... Are they being generated by Cocoon?
> >
> >===========================================================
> >----- Original Message -----
> >From: "Bert Van Kets" <bert@vankets.com>
> >To: <cocoon-users@xml.apache.org>
> >Sent: Friday, October 25, 2002 3:34 PM
> >Subject: Re: Cocoon Portal Layout
> >
> >
> >I have kept the sizing and position of the frames, so I have not tried
this
> >before.
> >Technically speaking it should not make a difference how your frames are
> >set up, as long as they are there.  Although I don't see why you would
not
> >be able to
> >get rid of the admin-header frame though.
> >
> >Your question has more to do with HTML than with Cocoon or the portal-fw.
> >;-)  The portal is not that difficult, once you get the hang of it.  Make
> >sure you have read all the WebApps docs at
> >http://xml.apache.org/cocoon/developing/webapps/index.html.  If you have
> >read them, read them again!
> >If you have done this, read the following articles:
> >http://ziegeler.bei.t-online.de/c2auth.html
> >http://www.xml.com/pub/a/2002/07/24/xmlportal.html
>
>http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.htm
>l
> >
> >Watch out for the xmlns uris they are different in Cocoon 2.0.3 and
Cocoon
> >2.1.  Verify the config.xconf and sitemap.xmap files you are using!  The
> >principle remains the same, only the components have moved.
> >
> >HTH,
> >Bert
> >
> >At 15:11 25/10/2002 +0800, you wrote:
> > >Hi Bert,
> > >
> > >Can I change the orientation of the frames sets? It doesn't seem like
it?
> > >
> > >----- Original Message -----
> > >From: "Bert Van Kets" <bert@vankets.com>
> > >To: <cocoon-users@xml.apache.org>
> > >Sent: Friday, October 25, 2002 2:52 PM
> > >Subject: Re: Cocoon Portal Layout
> > >
> > >
> > >Sorry Antonio but it's in the resources/free/portal.xml and
> > >resources/auth/portal.xml files.
> > >
> > >Bert
> > >
> > >At 00:20 25/10/2002 -0600, you wrote:
> > > >I think inside the xsl file for the portal.
> > > >
> > > >Antonio Gallardo
> > > >
> > > >El Viernes, 25 de Octubre de 2002 00:09, Richard Reyes escribió:
> > > > > Thanks Antonio,
> > > > >
> > > > > would you happent to know where the frameset codes declared?
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Antonio Gallardo Rivera"
<agallardo@agsoftware.dnsalias.com>
> > > > > To: <cocoon-users@xml.apache.org>
> > > > > Sent: Friday, October 25, 2002 2:04 PM
> > > > > Subject: Re: Cocoon Portal Layout
> > > > >
> > > > >
> > > > > I think you can do that.
> > > > >
> > > > > Antonio Gallardo
> > > > >
> > > > > El Jueves, 24 de Octubre de 2002 23:51, Richard Reyes escribió:
> > > > > > Hi Guys,
> > > > > >
> > > > > > I'm using Cocoon 2.1 -dev, and working on implementing the
Cocoon
> > >Portal
> > > > > > on our application.
> > > > > >
> > > > > > Can I change the total layout of the portal? Can I remove all
the
> > >frames
> > > > > > anf create layout perhaps include menus just below the header
> >banner?
> > > > > >
> > > > > > I asked this because I have noticed that there are no frameset
> > > > >
> > > > > declarations
> > > > >
> > > > > > on any of the stylesheets used in the portal samples.
> > > > > >
> > > > > > Thanks in advance
> > > > > > Richard
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > Please check that your question  has not already been answered in
>the
> > > > > FAQ before posting.
><http://xml.apache.org/cocoon/faq/index.html>
> > > > >
> > > > > To unsubscribe, e-mail:
><cocoon-users-unsubscribe@xml.apache.org>
> > > > > For additional commands, e-mail:
><cocoon-users-help@xml.apache.org>
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > Please check that your question  has not already been answered in
>the
> > > > > FAQ before posting.
><http://xml.apache.org/cocoon/faq/index.html>
> > > > >
> > > > > To unsubscribe, e-mail:
><cocoon-users-unsubscribe@xml.apache.org>
> > > > > For additional commands, e-mail:
><cocoon-users-help@xml.apache.org>
> > > >
> > > >---------------------------------------------------------------------
> > > >Please check that your question  has not already been answered in the
> > > >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > > >
> > > >To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > > >For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> > >
> > >
> > >---------------------------------------------------------------------
> > >Please check that your question  has not already been answered in the
> > >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > >To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > >For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> > >
> > >---------------------------------------------------------------------
> > >Please check that your question  has not already been answered in the
> > >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> > >
> > >To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> > >For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >
> >
> >---------------------------------------------------------------------
> >Please check that your question  has not already been answered in the
> >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> >To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> >For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> >
> >---------------------------------------------------------------------
> >Please check that your question  has not already been answered in the
> >FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> >To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> >For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message