Objects in list items

Author Message

Bård Farstad

Wednesday 29 October 2003 7:24:52 am

There has been some discussion lately about having objects in list items.

Currently this is not supported, technically it's really no big problem to have support for this. Currently we support paragraphs and inline tags only.

The question is should we add support for this?
What are the pros and cons for having this?

Example:
<ul>
<li>
<object id="42 />
</li>
</ul>

We've used XHTML 2.0 as inspiration for our XML format:
http://www.w3.org/TR/xhtml2/

Secondly we should consider tables, should they be supported in list items?

My concern is compatibility with other formats (exports etc) and not to bloat the XML format.

What do you think?

--bård

Documentation: http://ez.no/doc

Alex Jones

Wednesday 29 October 2003 8:07:42 am

Well, according to spec tables are allowed within list items so they shouldn'tbe a problem in the way of validation. And while I cannot think of a time when I would want to use a table in a list item, someone else might...

I would like to see the ability to place objects within lists as it opens up some good layout capabilities.

Alex

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

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

Kai Duebbert

Wednesday 29 October 2003 6:30:53 pm

Just posted a reply to this: http://ez.no/developer/ez_publish_3/bug_reports/object_link_doesnt_work_in_li_element

I strongly vote for inclusion. :-)

Kai

Bård Farstad

Thursday 30 October 2003 1:09:15 am

Ok, we should then change the list item handling to support block level tags ( same as table cells ).

To change this is not a big deal, however we just need to make sure we've got backwards compatibility. This requires some coding and alot of testing.

As you probably see we don't have time to squeze this into 3.3, so we should but this on our things of thing todo for 3.4.

Kai: We've used the XHTML2 draft specification as an inspiration. This is not the format we use, but it has some good idèas. It focuses more on content and less on formatting, which is how we like it. One good thing is e.g. the use of <line></line> tag instead of the <br /> tag.

Documentation: http://ez.no/doc

Bård Farstad

Thursday 30 October 2003 1:39:38 am

One good example of where we could use this which would not be related to formatting, but to content.

Let's say you want to have a list of persons. Then you would create a list with embedded person objects in the list items. The embedded persons could e.g. be displayed with name and a link to the person object.

--bård

Documentation: http://ez.no/doc

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 15:02:08
Script start
Timing: Jan 18 2025 15:02:08
Module start 'layout'
Timing: Jan 18 2025 15:02:08
Module start 'content'
Timing: Jan 18 2025 15:02:08
Module end 'content'
Timing: Jan 18 2025 15:02:08
Script end

Main resources:

Total runtime0.0177 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.9063152.6250
Module start 'layout' 0.00650.0038 740.531339.4453
Module start 'content' 0.01030.0052 779.976693.3047
Module end 'content' 0.01560.0021 873.281338.3047
Script end 0.0176  911.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.5180140.0002
Check MTime0.00116.0390140.0001
Mysql Total
Database connection0.00063.341710.0006
Mysqli_queries0.004022.762330.0013
Looping result0.00000.169810.0000
Template Total0.00179.810.0017
Template load0.00095.072510.0009
Template processing0.00084.720710.0008
Override
Cache load0.00063.533110.0006
General
dbfile0.00042.328080.0001
String conversion0.00000.060740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs