[GeoNetwork-users] Personalization of new geonetwork

Hi
Is there any chance to change an oryginal design of geonetwork site from pic
nr1 to something like on pic nr2 ? I mean, is there a chance to position
search panel for a whole page on width and the search results under that. I
tried changing file main-page.xsl in a script section:

var viewport = new Ext.Panel({
          region: 'center',
          layout:'border',
          border:false,
          autoScroll:true,
          items:[
            // North: header
            {
              region:'north',
              contentEl :'header',
              border:false
            },
            
            // Center: Content
            {
              region:'center',
              layout:'border',
              border:false,
              layoutConfig:{
                animate:true
              },
              items:[
                {region:'center',
                 border:false,
                layout: 'border',
                items:
                  [{region:'west',
                  xtype: 'panel',
                  layout: 'fit',
                  border:false,
                  width: 370,
                  minSize: 350,
                  maxSize: 450,
                  autoScroll: true,
                  collapsible: true,
                  collapseMode: "mini",
                  split: 'true',
                  useSplitTips:true,
                  collapsibleSplitTip: 'Drag to rezise the search panel. Double click
to show/hide it',
                  bodyStyle: 'padding:15px',
                  contentEl: 'search_pnl'
                  }
                  ,
                  {region:'center',
                    id: 'main-viewport',
                    border:false,
                    layout: 'border',
                    items: [ /*
                      {region:'north',
                      id: 'north-map-panel',
                      title: '<xsl:value-of select="/root/gui/strings/mapViewer"/>',
                      border:false,
                      collapsible: true,
                      collapsed: true,
                      split: true,
                      height: 450,
                      minSize: 300,
                      //maxSize: 500,
                      layout: 'fit',
                      listeners: {
                          collapse: collapseMap,
                          expand: expandMap
                         },
                      items: [mapViewport]
                      },
                      */
                      {region:'center',
                      contentEl :'content',
                      border:false,
                      autoScroll: true
                      }
                    ]
                    
                  } ]
              }]
            }]});

with every posible combination off regions : east, west, south, north,
center;
but I cannot get it worked in layout I would like to have.

http://osgeo-org.1803224.n2.nabble.com/file/n7069814/geo1.png
http://osgeo-org.1803224.n2.nabble.com/file/n7069814/geo2.png

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Personalization-of-new-geonetwork-tp7069814p7069814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

Of course it's possible.
I would say that changing region:'west', to region:'north', would do it.
If not, you may have to look at ExtJS doc (the javascript library used for
the layout), to get a good undestanding of how it works (you have different
layout possibilities that may better fit your needs).
If you need to change the html elements inside of a block, it's done in the
xsl files. For simple search, in searchform_simple.xsl
Cheers,

Jean

2011/12/7 lukaszlagosz <lukaszlagosz@anonymised.com>

Hi
Is there any chance to change an oryginal design of geonetwork site from
pic
nr1 to something like on pic nr2 ? I mean, is there a chance to position
search panel for a whole page on width and the search results under that. I
tried changing file main-page.xsl in a script section:

var viewport = new Ext.Panel({
                                       region: 'center',
                                       layout:'border',
                                       border:false,
                                       autoScroll:true,
                                       items:[
                                               // North: header
                                               {
                                                       region:'north',
                                                       contentEl :'header',
                                                       border:false
                                               },

                                               // Center: Content
                                               {
                                                       region:'center',
                                                       layout:'border',
                                                       border:false,
                                                       layoutConfig:{
                                                               animate:true
                                                       },
                                                       items:[

{region:'center',

border:false,
                                                               layout:
'border',
                                                               items:

[{region:'west',

xtype: 'panel',

layout: 'fit',

border:false,

width: 370,

minSize: 350,

maxSize: 450,

autoScroll: true,

collapsible: true,

collapseMode: "mini",

split: 'true',

useSplitTips:true,

collapsibleSplitTip: 'Drag to rezise the search panel. Double click
to show/hide it',

bodyStyle: 'padding:15px',

contentEl: 'search_pnl'
                                                                       }
                                                                       ,

{region:'center',

     id: 'main-viewport',

     border:false,

     layout: 'border',

     items: [ /*

             {region:'north',

             id: 'north-map-panel',

             title: '<xsl:value-of select="/root/gui/strings/mapViewer"/>',

             border:false,

             collapsible: true,

             collapsed: true,

             split: true,

             height: 450,

             minSize: 300,

             //maxSize: 500,

             layout: 'fit',

             listeners: {

                       collapse: collapseMap,

                       expand: expandMap

                },

             items: [mapViewport]

             },

             */

             {region:'center',

             contentEl :'content',

             border:false,

             autoScroll: true

             }

     ]

                                                                       } ]
                                                       }]
                                               }]});

with every posible combination off regions : east, west, south, north,
center;
but I cannot get it worked in layout I would like to have.

http://osgeo-org.1803224.n2.nabble.com/file/n7069814/geo1.png
http://osgeo-org.1803224.n2.nabble.com/file/n7069814/geo2.png

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Personalization-of-new-geonetwork-tp7069814p7069814.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point
of
discussion for anyone considering optimizing the pricing and packaging
model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
N'imprimez ce message qu'en cas de nécessité. Soyons éco-responsables !

Donnez une nouvelle dimension à vos données

I G E

Jean POMMIER
*Directeur Associé*

TIC - Webmapping 3D

Port : +33 6 09 23 21 36
Skype : igejean

Information Géographique et Environnement
12 rue Arnaud Vidal
31000 Toulouse
France

Tel : +33 5 61 86 81 49
Fax : +33 5 61 86 09 23
Mail : contact@anonymised.com
Site web : www.ige.fr <http://wwww.ige.fr/&gt;

*L'actualité d'IGE sur RSS : *http://www.ige.fr/actualites/rss.php

*Localisez IGE dans WorldWind : *
worldwind://goto/world=Earth&lat=43.55519&lon=1.38256&alt=190&dir=26.7&tilt=60.3
- Afficher le texte des messages précédents -