On Tue, 2007-08-21 at 12:18 +0200, allank wrote: > Hi Syed, > Am a little lost now to break up the script '<img style="border: 0px > solid ; width: 750px; > > height: 164px;" src="images/myimage.jpg" alt="My Logo"/>' into the two files. > > Using my example, please show me the lines I should have in the > header.tt and '/conf/templates/default/main.tt' > > Currently my '/conf/templates/default/main.tt' is empty.
1. Copy your image under biomart-perl/htdocs/martview/images/ 2. In your header.tt, add this line <img style="border: 0px solid ; width: 750px; height: 164px;" src="/[% TAG_path %]/mview/images/myimage.jpg" alt="My Logo"/> 3. rerun the perl bin/configure.pl -r conf/YOUR_REGISTRY.xml 4. restart apache Good Luck! cheers syed > > Allan. > > Syed Haider wrote: > > >Hi Allan > > > >On Tue, 2007-08-21 at 11:49 +0200, allank wrote: > > > > > >>Hi, > >>Am looking for a way to have an image displayed in the "YOUR SITE HEADER > >>HERE" section. > >>I have edited "./conf/templates/default/header.ttc" > >> > >> > > > >thats not the right place, you need to modify 'header.tt' instead. what > >ever HTML code you leave in there, it gets displayed. You need to drop > >your images in htdocs/martview/images, and then set the 'src' of HTML to > >the image just as done in > >'/conf/templates/default/main.tt' > > > >hope this helps. > > > > > > > > > >>and replaced the initialization of $output variable with the text below. > >>" $output .= "<br/><img style=\"border: 0px solid ; width: 750px; > >>height: 164px;\" src=\"images/myimage.jpg\" alt=\"My Logo\"/><br/>\n"; > >>" > >>I have tried placing the image in the following locations > >>a)htdocs/myimage.jpg > >>b)htdocs/biomart/mview/images/myimage.jpg > >>c)htdocs/martview/images/myimage.jpg > >> > >>And even set the permissions of the three files to '777'. > >> > >>The header displays but only displays the text alternative in place of > >>displaying the image. > >> > >>Allan. > >> > >> -- ====================================== Syed Haider. EMBL-European Bioinformatics Institute Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK. ======================================
