Forums / Developer / Curious new template operator tool_bar

Curious new template operator tool_bar

Author Message

Volker Lenz

Saturday 31 July 2004 10:06:08 am

I feel that this new template operator violates the ez design model, because it makes heavy use of static html in the operator's functional code instead of using .tpl-files to control toolbar-rendering. Why has this design-approach been chosen? Do you plan to maintain it in future ez-releases?

Bård Farstad

Friday 06 August 2004 6:46:33 am

Volker, we totally agree. This was a slip from our side. This needs to be fixed.

--bård

Documentation: http://ez.no/doc

Bruce Morrison

Friday 06 August 2004 5:27:56 pm

Hi Bård

> Volker, we totally agree. This was a slip from our side. This needs to be fixed.

Just confirming that this functionality will stay in ezPublish but be brought into line with the general ez design model?

Thanks
Bruce http://www.designit.com.au/

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bård Farstad

Tuesday 10 August 2004 1:32:19 am

Yes, this functionality will not be removed. But it will need to be cleaned up, add templates for it.

--bård

Documentation: http://ez.no/doc

Alex Jones

Friday 27 August 2004 11:00:05 am

What is the timeline for the change? I posted a detailed thread about this, before I was aware of this one: http://ez.no/community/forum/suggestions/toolbar_overhaul_needed

Thanks!

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

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

Paul Forsyth

Friday 27 August 2004 11:58:04 am

I added these bugs sometime ago, which are relevant:

http://ez.no/community/bug_reports/toolbar_template_uses_hardcoded_png_image_format
http://ez.no/community/bug_reports/improve_saving_of_toolbar_preferences

paul

kracker (the)

Sunday 29 August 2004 9:20:59 pm

Hello,

Here is a thread regarding this very issue and some positive
suggestions to users resolving the issue (temporarily) now:

http://ez.no/community/forum/setup_design/which_template

Regards,
kracker

eminem : rock bottom

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Alex Jones

Friday 03 September 2004 12:16:30 pm

A basic time line for these fixes would be much appreciated!

Thanks,

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

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

Frederik Holljen

Monday 06 September 2004 1:15:00 am

We will fix this for 3.5.

Alex Jones

Tuesday 07 September 2004 6:29:57 am

Thank you Frederik! It is great to know that this will be addressed. :D

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

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

Wenyue Yu

Monday 13 September 2004 5:37:52 am

Hi,

We have reimplemented toolbar operator and removed all html code. Fixes is available in svn 8010. We added three variables which can be used in every tool.tpl: first( true, false), last(true, false), placement ( first, last, ""). Here is the line view example of login.tpl.

{section show=$first}
<ul>
{/section}
<li class="toolbar-item {$placement}">
{section show=eq($current_user.is_logged_in)}
<a href={"/user/login"|ezurl}>{"Login"|i18n("design/standard/toolbar")}</a>&nbsp;
{section-else}
<a href={"/user/logout"|ezurl}>{"Logout"|i18n("design/standard/toolbar")}({$current_user.contentobject.name})</a>&nbsp;
{/section}
</li>
{section show=$last}
</ul>
{/section}

Alex Jones

Wednesday 15 September 2004 6:33:07 am

That is great Wenyue, thanks!

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

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

eZ debug

Timing: Jan 18 2025 04:17:36
Script start
Timing: Jan 18 2025 04:17:36
Module start 'content'
Timing: Jan 18 2025 04:17:37
Module end 'content'
Timing: Jan 18 2025 04:17:37
Script end

Main resources:

Total runtime1.3259 sec
Peak memory usage4,096.0000 KB
Database Queries233

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.8125180.8281
Module start 'content' 0.00791.1758 768.6406886.0781
Module end 'content' 1.18360.1422 1,654.7188353.3359
Script end 1.3258  2,008.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3192210.0002
Check MTime0.00150.1138210.0001
Mysql Total
Database connection0.00130.100710.0013
Mysqli_queries1.207591.06682330.0052
Looping result0.00290.22152310.0000
Template Total1.287297.120.6436
Template load0.00210.160320.0011
Template processing1.285196.920020.6425
Template load and register function0.00010.008410.0001
states
state_id_array0.00110.080310.0011
state_identifier_array0.00170.127420.0008
Override
Cache load0.00190.1422550.0000
Sytem overhead
Fetch class attribute can translate value0.00150.110790.0002
Fetch class attribute name0.00210.1567180.0001
XML
Image XML parsing0.00390.294790.0004
class_abstraction
Instantiating content class attribute0.00000.0031220.0000
General
dbfile0.00360.2715600.0001
String conversion0.00000.000430.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
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 45
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs