search tool layout

Author Message

Lydie Soler

Friday 29 July 2005 8:36:35 am

Hi,

I have added the search box using the toolbar. It works fine. My problem is with its layout. I have on one line the label 'search' and on an other line underneath I have the input box and the search button.
I would like to have all the element on one line.
I know there is something to deal with CSS. But I haven't found what to changed (I search I lot although!!!! ;) )
THanks for your help

Luc Chase

Friday 29 July 2005 8:46:17 am

There are many possible solutions to the problem you're having and yes CSS is where to start. Remember that IE has it's share of bugs.
I don't recall the specific attribute which fixes this but here is some of the code I used.... hopefully it's the bit that did the trick. I would advise that you use Mozilla with the 'webdeveloper' addon to help you fix this...
Style Information - http://www.ccdirectory.org.uk/
http://www.ccdirectory.org.uk/design/base/stylesheets/core.css
http://www.ccdirectory.org.uk/design/base/stylesheets/site_lc.css

div#toolbar-top input.searchinput, div#toolbar-bottom input.searchinput (line 220)
{
width: 7em;
background-color: rgb(204, 255, 238);
position: relative;
top: 1px;
padding-right-value: 0px;
padding-right-ltr-source: physical;
padding-right-rtl-source: physical;
height: 1.26em;
}

label (line 208)
{
font-weight: bold;
padding-right-value: 0.5em;
padding-right-ltr-source: physical;
padding-right-rtl-source: physical;
display: block;
white-space: nowrap;
}

http://www.ccdirectory.org.uk/packages/styles/t20/files/default/file/design/base/stylesheets/t20/site-colors.css

div label (line 19)
{
width: auto;
text-align: right;
display: inline;
}

The Web Application Service Provider

Lydie Soler

Monday 01 August 2005 8:06:27 am

Hi,

after hours of search... I finally found it!
it was just a parameter in the pagelayout.tpl where the toolbar is included:
just needed to replace
{tool_bar name=top view=<b>full</b>} by {tool_bar name=top view=<b>line</b>}.....

Tricky
THanks again for your help!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 21 2025 16:00:06
Script start
Timing: Jan 21 2025 16:00:06
Module start 'layout'
Timing: Jan 21 2025 16:00:06
Module start 'content'
Timing: Jan 21 2025 16:00:08
Module end 'content'
Timing: Jan 21 2025 16:00:08
Script end

Main resources:

Total runtime1.8158 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.8906151.1953
Module start 'layout' 0.00670.0037 739.085936.6172
Module start 'content' 0.01041.8046 775.7031529.2813
Module end 'content' 1.81500.0008 1,304.984411.8750
Script end 1.8157  1,316.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2069160.0002
Check MTime0.00150.0829160.0001
Mysql Total
Database connection0.00110.061610.0011
Mysqli_queries1.758396.8364570.0308
Looping result0.00060.0312550.0000
Template Total1.768697.420.8843
Template load0.00220.121920.0011
Template processing1.766397.278320.8832
Template load and register function0.00020.010510.0002
states
state_id_array0.00150.082910.0015
state_identifier_array0.00140.076820.0007
Override
Cache load0.00190.1070490.0000
Sytem overhead
Fetch class attribute can translate value0.00100.053820.0005
Fetch class attribute name0.00120.068430.0004
XML
Image XML parsing0.00020.011420.0001
class_abstraction
Instantiating content class attribute0.00000.000330.0000
General
dbfile0.00070.0374100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs