You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Juan Jose Pablos <ch...@che-che.com> on 2003/05/14 18:01:02 UTC

Just a thought about site.xml

I really like the idea of using site.xml for a representation of the 
elements on a website. So merging skinconf to something like this:


<site>
   <header>
     <host-logo/>
     <group-logo/>
     <project-logo/>
     <trail/>
   </header>
   <tabs>
   <menu>
      <about label="About">
         <index label="Index" href="index.html"/>
      </about>
      <community label="Community" href="community/">
         <index label="About" href="index.html"/>
      </community>
   </menu>
   <content/>
     <footer>
       <copyright/>
       <credits/>
     </footer>
</site>

I know that this is too far away, but it is just a thought isn't?

Cheers

Cheche


Re: Just a thought about site.xml

Posted by "Nathaniel G. Auvil" <na...@yahoo.com>.
--- Juan Jose Pablos <ch...@che-che.com> wrote:
> Nathaniel,
> 
> 
> >  <tab label="Sample" dir="samples/">
> >   <menu>
> >    <about label="About">
> >     <index label="Index" href="index.html"/>
> >    </about>
> >   </menu>
> >    <tabs>
> >     <tab label="All" dir="all/">
> >      <allCharts label="All Charts" href="allCharts/">
> >     </tab>
> >     ...
> >    </tabs>
> >  </tab> 
> 
> In your example, you want to have a tab that select pages that are 
> inside samples/all ?

that is the menu on that tab. I want a directory per tab.  There should be no links to material in
that tab from anywhere except that tab (this is in my scenario that i do not want menu links from
one tab hitting content in another tab).

The only way to create the content in a tab is to create a menu link from the main tabs menu, into
a page on that tab.  The tab is a link already so why duplicate it?


> you can do that already, if you check on 
> http://xml.apache.org/forrest/community/howto/index.html, so  the tab 
> select all the links inside community/howto/
> 
> but you want that under the principal tab?, a kind of sub-tab:
> 
>   [   Tab1   | { Tab2 } |   Tab3   ]
>   -------------        -------------
>   [ {Tab2.1} |  Tab2.2  |  Tab2.3 ]
>               ----------------------


yes, and you could take that to n-levels. so Tab2.2 could have Tab2.2.1, Tab2.2.2, etc... under it
and those could have tabs under them, etc...


>      Menu2.1.1
>      .......
>      Menu2.1.15
> 
> 
> Is that what do you have in mind?
> 
> 
> Cheers
> 
> Juan
> 
> 
> 


=====
http://nathaniel-auvil.blog-city.com/

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Re: Just a thought about site.xml

Posted by Juan Jose Pablos <ch...@che-che.com>.
Nathaniel,


>  <tab label="Sample" dir="samples/">
>   <menu>
>    <about label="About">
>     <index label="Index" href="index.html"/>
>    </about>
>   </menu>
>    <tabs>
>     <tab label="All" dir="all/">
>      <allCharts label="All Charts" href="allCharts/">
>     </tab>
>     ...
>    </tabs>
>  </tab> 

In your example, you want to have a tab that select pages that are 
inside samples/all ?

you can do that already, if you check on 
http://xml.apache.org/forrest/community/howto/index.html, so  the tab 
select all the links inside community/howto/

but you want that under the principal tab?, a kind of sub-tab:

  [   Tab1   | { Tab2 } |   Tab3   ]
  -------------        -------------
  [ {Tab2.1} |  Tab2.2  |  Tab2.3 ]
              ----------------------

     Menu2.1.1
     .......
     Menu2.1.15


Is that what do you have in mind?


Cheers

Juan




Re: Just a thought about site.xml

Posted by "Nathaniel G. Auvil" <na...@yahoo.com>.
expanding along those lines:

...
<tabs>
 <tab label="Home" dir="">
  <menu>
   <about label="About">
    <index label="Index" href="index.html"/>
   </about>
   <community label="Community" href="community/">
    <index label="About" href="index.html"/>
   </community>
  </menu>
 </tab>
 <tab label="Sample" dir="samples/">
  <menu>
   <about label="About">
    <index label="Index" href="index.html"/>
   </about>
  </menu>
   <tabs>
    <tab label="All" dir="all/">
     <allCharts label="All Charts" href="allCharts/">
    </tab>
    ...
   </tabs>
 </tab> 


Where you can nest tabs inside tabs



--- Juan Jose Pablos <ch...@che-che.com> wrote:
> I really like the idea of using site.xml for a representation of the 
> elements on a website. So merging skinconf to something like this:
> 
> 
> <site>
>    <header>
>      <host-logo/>
>      <group-logo/>
>      <project-logo/>
>      <trail/>
>    </header>
>    <tabs>
>    <menu>
>       <about label="About">
>          <index label="Index" href="index.html"/>
>       </about>
>       <community label="Community" href="community/">
>          <index label="About" href="index.html"/>
>       </community>
>    </menu>
>    <content/>
>      <footer>
>        <copyright/>
>        <credits/>
>      </footer>
> </site>
> 
> I know that this is too far away, but it is just a thought isn't?
> 
> Cheers
> 
> Cheche



=====
http://nathaniel-auvil.blog-city.com/

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com