Forums / Developer / Parameters for Embed

Parameters for Embed

Author Message

Klaus-Peter Heidrich

Tuesday 27 February 2007 9:03:56 am

Hi,

how do set a limit for embedded subfolders?

Example:
When I look at the 3.9 Demo with ezwebin Interface, I can see three press releases to the left. Is there an easy way to set the number from the admin interface?

The template is vertically_listed_sub_items.tpl

The number of items seems to be hardcoded in the template. But it also includes a way to set the limit from outside?

        {if is_set( $object_parameters.limit )}
                {set $limit = $object_parameters.limit}
        {/if}

How do I set this parameter?

The embed-tag does not like additional parameters like limit. But this would have been the most logical way for me to do it.

Thanks,

Peter

André R.

Tuesday 27 February 2007 11:21:18 am

If I remember correctly this is for future use, right now the best is to override that template and change the setting.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Betsy Gamrat

Tuesday 27 February 2007 7:43:47 pm

Another approach would be to add your own setting into site.ini.append.php, like so:

<b>site.ini.append.php</b>

[TemplateSettings]
ObjectLimit=3

<b>template code</b>

{def $value=ezini( 'SiteSettings', 'ObjectLimit' )}
Value is: {$value}<br />

Good luck

Łukasz Serwatka

Tuesday 27 February 2007 10:42:18 pm

Actually this works like:

<embed href="eznode://89" limit='10' offset='5' />

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Betsy Gamrat

Wednesday 28 February 2007 6:55:39 am

Thank you

:)

Klaus-Peter Heidrich

Wednesday 28 February 2007 7:24:48 am

Thank you all for your advice!

Lukasz, that was just the notation I expected, but Version 3.9 gave me an error about not allowed custom-attributes.

I tried it in the Online-Demo and it worked!
And the Property-Editor offers to add custom-Attributes. Nice!

But which version ist this?

Klaus-Peter Heidrich

Wednesday 28 February 2007 7:32:09 am

Ok, found the version-nr:

The current online demo says that it is 3.8.6

Now I am confused. 3.8.6 has more features than 3.9?

eZ debug

Timing: Jan 19 2025 00:21:14
Script start
Timing: Jan 19 2025 00:21:14
Module start 'content'
Timing: Jan 19 2025 00:21:14
Module end 'content'
Timing: Jan 19 2025 00:21:15
Script end

Main resources:

Total runtime0.7226 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.6094180.8438
Module start 'content' 0.00600.5979 768.4531676.0234
Module end 'content' 0.60390.1186 1,444.4766341.0703
Script end 0.7226  1,785.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5434210.0002
Check MTime0.00150.2017210.0001
Mysql Total
Database connection0.00100.137310.0010
Mysqli_queries0.646189.40442100.0031
Looping result0.00180.25422080.0000
Template Total0.698396.620.3492
Template load0.00200.279520.0010
Template processing0.696396.356720.3482
Template load and register function0.00010.018810.0001
states
state_id_array0.00070.097010.0007
state_identifier_array0.00080.106420.0004
Override
Cache load0.00180.2456430.0000
Sytem overhead
Fetch class attribute can translate value0.00130.185050.0003
Fetch class attribute name0.00100.1350100.0001
XML
Image XML parsing0.00180.251450.0004
class_abstraction
Instantiating content class attribute0.00000.0023110.0000
General
dbfile0.00370.5151420.0001
String conversion0.00000.000530.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/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: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs