Forums / Setup & design / Nice URL's with <map>

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

eZ debug

Timing: Jan 18 2025 19:06:23
Script start
Timing: Jan 18 2025 19:06:23
Module start 'content'
Timing: Jan 18 2025 19:06:23
Module end 'content'
Timing: Jan 18 2025 19:06:24
Script end

Main resources:

Total runtime0.8571 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1172180.8438
Module start 'content' 0.00620.6490 769.9609596.3438
Module end 'content' 0.65520.2018 1,366.3047337.4297
Script end 0.8570  1,703.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4852210.0002
Check MTime0.00150.1778210.0001
Mysql Total
Database connection0.00080.090010.0008
Mysqli_queries0.753587.90971990.0038
Looping result0.00210.24391970.0000
Template Total0.831897.020.4159
Template load0.00200.239020.0010
Template processing0.829796.806720.4149
Template load and register function0.00010.013910.0001
states
state_id_array0.00030.040010.0003
state_identifier_array0.00200.229420.0010
Override
Cache load0.00170.2034370.0000
Sytem overhead
Fetch class attribute can translate value0.00220.258540.0006
Fetch class attribute name0.00150.171960.0002
XML
Image XML parsing0.00210.239440.0005
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.02803.2639340.0008
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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