Forums / Suggestions / Objects in list items

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

eZ debug

Timing: Jan 18 2025 10:38:33
Script start
Timing: Jan 18 2025 10:38:33
Module start 'content'
Timing: Jan 18 2025 10:38:33
Module end 'content'
Timing: Jan 18 2025 10:38:34
Script end

Main resources:

Total runtime0.5612 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.7031180.8438
Module start 'content' 0.00490.4393 768.5469604.9297
Module end 'content' 0.44430.1168 1,373.4766339.1875
Script end 0.5611  1,712.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6843210.0002
Check MTime0.00150.2585210.0001
Mysql Total
Database connection0.00070.132910.0007
Mysqli_queries0.490787.43212020.0024
Looping result0.00210.36552000.0000
Template Total0.539996.220.2700
Template load0.00210.376320.0011
Template processing0.537895.833420.2689
Template load and register function0.00010.013410.0001
states
state_id_array0.00080.137610.0008
state_identifier_array0.00070.116720.0003
Override
Cache load0.00180.3281400.0000
Sytem overhead
Fetch class attribute can translate value0.00120.211940.0003
Fetch class attribute name0.00120.206470.0002
XML
Image XML parsing0.00110.204640.0003
class_abstraction
Instantiating content class attribute0.00000.003090.0000
General
dbfile0.00150.2743340.0000
String conversion0.00000.000930.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs