modifying header logo and page content

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

modifying header logo and page content

Chris Fellows-3
Hello,

This must have been mentioned before, but didn't find
in past user mailing lists or any documentation on the
web.

How can I use a custom logo rather than the
nutch-logo.gif? Found the docs on how to modify i18n
content but that doesn't give access to other parts of
the final html.

Found the xslt sheets, but these all have a comment
that they are generated from some xml files. Where are
these xml files that control the look and feel of the
nutch pages?

THANKS for any help!

Chris
Reply | Threaded
Open this post in threaded view
|

Re: modifying header logo and page content

Chris Fellows-3
Thanks Bill for all the details.

You mentioned that you changed nutch-page.xsl. But
this page has the following line:

<xsl:comment>This page is automatically generated.  Do
not edit!</xsl:comment>

Are we supposed to indeed change html formating
through this page is there another page or src that we
can modify?

Chris

--- Bill Goffe <[hidden email]> wrote:

> Chris -
>   Here's my list of what I changed for
> http://ese.rfe.org. It is kinda
> terse, but it should give you some decent hints even
> so. I may well
> have done some things the hard way, but it seems to
> work.
>   Don't forget you have to run "ant war" and
> redeploy the war file.
>   Still working on getting the favicon right...
>       - Bill
>
> Files changed (all have *.org in the same directory)
>     src/web/pages/en/search.xml  (1st page)
>     src/web/pages/en/help.xml
>     src/web/include/en/header.xml  (title)
>     src/web/include/footer.html
>     src/web/include/style.html
>     src/web/style/nutch-page.xsl (main formatting)
>     src/web/style/nutch-header.xsl
>     src/web/jsp/search.jsp    (results page
> (help.html URL hardcoded))
>     (note: really could stand a more thorough
> change; lots
>     of stuff could be taken out that isn't; weird
> formatting
>     if you look at the html)
>
> -------- (this material is older) -----------------
>
> General Guide:
> http://lucene.apache.org/nutch/i18n.html
>
> Static Page Content
> search page: src/web/pages/en/search.xml (just the
> middle of the page --
>                no table, only gif is
> poweredbynutch_01.gif)
> others: src/web/pages/en/ (3 files -- about.xml,
> help.xml, & search.xml)
>
> Header
> src/web/include/en/header.xml (only thing in that
> directory -- just a mere
>                                listing of the top 4
> items maybe keep about)
>
> Dyamic Pages
> anchors_en.properties
> cached_en.properties
> explain_en.properties
> search_en.properties
> text_en.properties (is this used?)
>   -- no changes there (I THINK)
>
> Footer
> src/web/include/footer.html
>   (in same directory have language specific pages)
>
> Styles
> src/web/style/nutch-header.xsl
> src/web/style/nutch-page.xsl
>
> Style Sheet? (has colors)
> src/web/include/style.html
>
> Colors
>   #FF9900 -- kinda bright orange
>   #F9F7F4 -- the middle color on the page (kinda
> light orange?)
>   #ECE5DC -- light orange background color (diff
> than previous?)
>
> Notes
>   - a change in nutch-page.xsl does indeed show up
>   - since help on the search page isn't working for
> me, change to one
>     at nuch.org?
> CSS
>   nutch/docs/api/stylesheet.css (what is indeed
> needed?)
>
> Mods
>   - keep the main table structure (3 on top of each
> other)
>   - changed src/web/include/footer.html to mention
> Nutch, RFE, & EDIRC
>   - changed src/web/include/style.html -- all F9F7F4
> --> FFFFFF
>   - src/web/style/nutch-header.xsl much simplified
>   - took out gif in src/web/pages/en/search.xml
>   - took out a table in src/web/style/nutch-page.xsl
> (has robots.gif)
>       and also took out td starting w/ <td
> width="20"
>
>
>
> > Hello,
> >
> > This must have been mentioned before, but didn't
> find
> > in past user mailing lists or any documentation on
> the
> > web.
> >
> > How can I use a custom logo rather than the
> > nutch-logo.gif? Found the docs on how to modify
> i18n
> > content but that doesn't give access to other
> parts of
> > the final html.
> >
> > Found the xslt sheets, but these all have a
> comment
> > that they are generated from some xml files. Where
> are
> > these xml files that control the look and feel of
> the
> > nutch pages?
> >
> > THANKS for any help!
> >
> > Chris
>
> --
>        
>
*------------------------------------------------------*

>          | Bill Goffe                
> [hidden email]          |
>          | Department of Economics    voice: (315)
> 312-3444     |
>          | SUNY Oswego                fax:   (315)
> 312-5444     |
>          | 416 Mahar Hall            
> <http://cook.rfe.org>     |          
>          | Oswego, NY  13126                        
>            |
>
*--------*------------------------------------------------------*-----------*
> | "He scared Carl. It's a good thing I didn't have
> blond hair."             |
> |   -- Johnnie Cochran to his colleague Carl Douglas
> near the end of the    |
> |      O.J. Simpson trial. He was talking about O.J.
> Simpson.               |
>
*---------------------------------------------------------------------------*
>
>

Reply | Threaded
Open this post in threaded view
|

Re: modifying header logo and page content

bgoffe
All I can say is that it works for me. I'll admit that I'm not clear on
how these files fit together and I simply experimented to see what would
work. Nothing seemed to break.

I'd be happy to hear about a better method.

    - Bill


Chris said:

> Thanks Bill for all the details.
>
> You mentioned that you changed nutch-page.xsl. But
> this page has the following line:
>
> <xsl:comment>This page is automatically generated.  Do
> not edit!</xsl:comment>
>
> Are we supposed to indeed change html formating
> through this page is there another page or src that we
> can modify?
>
> Chris
>
> --- Bill Goffe <[hidden email]> wrote:
>
> > Chris -
> >   Here's my list of what I changed for
> > http://ese.rfe.org. It is kinda
> > terse, but it should give you some decent hints even
> > so. I may well
> > have done some things the hard way, but it seems to
> > work.
> >   Don't forget you have to run "ant war" and
> > redeploy the war file.
> >   Still working on getting the favicon right...
> >       - Bill
> >
> > Files changed (all have *.org in the same directory)
> >     src/web/pages/en/search.xml  (1st page)
> >     src/web/pages/en/help.xml
> >     src/web/include/en/header.xml  (title)
> >     src/web/include/footer.html
> >     src/web/include/style.html
> >     src/web/style/nutch-page.xsl (main formatting)
> >     src/web/style/nutch-header.xsl
> >     src/web/jsp/search.jsp    (results page
> > (help.html URL hardcoded))
> >     (note: really could stand a more thorough
> > change; lots
> >     of stuff could be taken out that isn't; weird
> > formatting
> >     if you look at the html)
> >
> > -------- (this material is older) -----------------
> >
> > General Guide:
> > http://lucene.apache.org/nutch/i18n.html
> >
> > Static Page Content
> > search page: src/web/pages/en/search.xml (just the
> > middle of the page --
> >                no table, only gif is
> > poweredbynutch_01.gif)
> > others: src/web/pages/en/ (3 files -- about.xml,
> > help.xml, & search.xml)
> >
> > Header
> > src/web/include/en/header.xml (only thing in that
> > directory -- just a mere
> >                                listing of the top 4
> > items maybe keep about)
> >
> > Dyamic Pages
> > anchors_en.properties
> > cached_en.properties
> > explain_en.properties
> > search_en.properties
> > text_en.properties (is this used?)
> >   -- no changes there (I THINK)
> >
> > Footer
> > src/web/include/footer.html
> >   (in same directory have language specific pages)
> >
> > Styles
> > src/web/style/nutch-header.xsl
> > src/web/style/nutch-page.xsl
> >
> > Style Sheet? (has colors)
> > src/web/include/style.html
> >
> > Colors
> >   #FF9900 -- kinda bright orange
> >   #F9F7F4 -- the middle color on the page (kinda
> > light orange?)
> >   #ECE5DC -- light orange background color (diff
> > than previous?)
> >
> > Notes
> >   - a change in nutch-page.xsl does indeed show up
> >   - since help on the search page isn't working for
> > me, change to one
> >     at nuch.org?
> > CSS
> >   nutch/docs/api/stylesheet.css (what is indeed
> > needed?)
> >
> > Mods
> >   - keep the main table structure (3 on top of each
> > other)
> >   - changed src/web/include/footer.html to mention
> > Nutch, RFE, & EDIRC
> >   - changed src/web/include/style.html -- all F9F7F4
> > --> FFFFFF
> >   - src/web/style/nutch-header.xsl much simplified
> >   - took out gif in src/web/pages/en/search.xml
> >   - took out a table in src/web/style/nutch-page.xsl
> > (has robots.gif)
> >       and also took out td starting w/ <td
> > width="20"
> >
> >
> >
> > > Hello,
> > >
> > > This must have been mentioned before, but didn't
> > find
> > > in past user mailing lists or any documentation on
> > the
> > > web.
> > >
> > > How can I use a custom logo rather than the
> > > nutch-logo.gif? Found the docs on how to modify
> > i18n
> > > content but that doesn't give access to other
> > parts of
> > > the final html.
> > >
> > > Found the xslt sheets, but these all have a
> > comment
> > > that they are generated from some xml files. Where
> > are
> > > these xml files that control the look and feel of
> > the
> > > nutch pages?
> > >
> > > THANKS for any help!
> > >
> > > Chris
> >
> > --
> >        
> >
> *------------------------------------------------------*
> >          | Bill Goffe                
> > [hidden email]          |
> >          | Department of Economics    voice: (315)
> > 312-3444     |
> >          | SUNY Oswego                fax:   (315)
> > 312-5444     |
> >          | 416 Mahar Hall            
> > <http://cook.rfe.org>     |          
> >          | Oswego, NY  13126                        
> >            |
> >
> *--------*------------------------------------------------------*-----------*
> > | "He scared Carl. It's a good thing I didn't have
> > blond hair."             |
> > |   -- Johnnie Cochran to his colleague Carl Douglas
> > near the end of the    |
> > |      O.J. Simpson trial. He was talking about O.J.
> > Simpson.               |
> >
> *---------------------------------------------------------------------------*
> >
> >

--
         *------------------------------------------------------*
         | Bill Goffe                 [hidden email]          |
         | Department of Economics    voice: (315) 312-3444     |
         | SUNY Oswego                fax:   (315) 312-5444     |
         | 416 Mahar Hall             <http://cook.rfe.org>     |          
         | Oswego, NY  13126                                    |
*--------*------------------------------------------------------*-----------*
| "Are not gross Bodies and Light convertible into one another?"            |
|   -- "Opticks," Isaac Newton, 1704. Today this is described by E = mc^2,  |
|      which was formulated by Albert Einstein in 1905. It is of course     |
|      most forcefully seen on Earth in nuclear weapons.                    |
*---------------------------------------------------------------------------*