Nice URL's with <map>

Author Message

Bjørn Kaarstein

Monday 25 August 2003 4:14:52 am

I'd very much like to generate nice URL's for a site using this for the menu:

<map name="Map">
<area shape="rect" coords="20,145,146,182" href={'/content/view/full/46'|ezurl}>
<area shape="rect" coords="149,145,279,182" href={'/content/view/full/47'|ezurl}>
<area shape="rect" coords="282,145,413,182" href={'/content/view/full/48'|ezurl}>
<area shape="rect" coords="415,145,546,182" href={'/content/view/full/49'|ezurl}>
</map>

<map name="Map2">
<area shape="rect" coords="17,34,147,76" href={'/content/view/full/46'|ezurl}>
<area shape="rect" coords="149,34,279,74" href={'/content/view/full/47'|ezurl}>
<area shape="rect" coords="281,34,414,75" href={'/content/view/full/48'|ezurl}>
<area shape="rect" coords="416,34,547,75" href={'/content/view/full/49'|ezurl}>
</map>

This works fine, but the URL's sort of sucks. (It's the same menu twice, on different locations) I'm really not quite sure how to solve this with a loop and $:item.url_alias.

Also, while I'm nagging you... <table height ="100%"> doesn't really seem to work from the apache linux server. It works on IIS...
I believe there's a workaround for this problem, but I haven't found the solution yet..

Any suggestions would be very welcome.

Regards Bjørn

Jan Borsodi

Tuesday 26 August 2003 6:41:01 am

The big question is how you get the list, is it a predetermined list or children of a specific node?

As for the table height problem, this shouldn't be controlled by the web server but by the browser. If IIS makes it work it either means IIS does some (black) magic or that IE detects that it's from IIS and enables the table height feature. Who knows?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Alex Jones

Tuesday 26 August 2003 7:15:34 am

Bjørn, the table height issue has nothing to do with the Web server - it is purely a client-side issue as the server doesn't care what your HTML looks like. The W3C didn't assign a height attribute to table tags, and has since deprecated the attribute 'height' for cells as well as they expect us to use CSS for such styling issues. Some browsers do support the height attribute, but not all of them. If need be, you might try assigning the height to the TD tags, but there are better ways.

If you post what you are trying to do with the table height some of us might be able to help you solve it with valid CSS.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Bjørn Kaarstein

Tuesday 26 August 2003 3:17:52 pm

Hi, and thanks for replying.

Jan: The 4 links I wan't to generate nice URL's for are all children of node 2. It seems like I'm missing something very obvious here, but still...

Seems like there's some magic going on, because the very same HTML copied into pagelayout.tpl (from index.html running on IIS) is not acting the same way - And yes, it's tested in the very same browser(IE6.0). Really weird.

Alex: What I wan't to achieve with height=100% is the following.
The site is in a table, and when the main content isn't big enough to fill the screen height, the menu (situated both at top and bottom) looks a bit crappy...

Regards Bjørn

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 18 2025 22:33:00
Script start
Timing: Jan 18 2025 22:33:00
Module start 'layout'
Timing: Jan 18 2025 22:33:00
Module start 'content'
Timing: Jan 18 2025 22:33:01
Module end 'content'
Timing: Jan 18 2025 22:33:01
Script end

Main resources:

Total runtime1.2102 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.9141152.6250
Module start 'layout' 0.00720.0031 740.539139.4297
Module start 'content' 0.01041.1983 779.9688591.2656
Module end 'content' 1.20870.0015 1,371.234412.1875
Script end 1.2102  1,383.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2792160.0002
Check MTime0.00140.1139160.0001
Mysql Total
Database connection0.00130.106410.0013
Mysqli_queries1.148194.8706620.0185
Looping result0.00070.0544600.0000
Template Total1.169396.620.5846
Template load0.00240.200020.0012
Template processing1.166896.416320.5834
Template load and register function0.00030.022110.0003
states
state_id_array0.00170.143310.0017
state_identifier_array0.00090.074420.0005
Override
Cache load0.00190.1609370.0001
Sytem overhead
Fetch class attribute can translate value0.00080.064330.0003
Fetch class attribute name0.00130.106760.0002
XML
Image XML parsing0.00130.103930.0004
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00090.0760230.0000
String conversion0.00000.000440.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs