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?

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 19 2025 01:05:53
Script start
Timing: Jan 19 2025 01:05:53
Module start 'layout'
Timing: Jan 19 2025 01:05:53
Module start 'content'
Timing: Jan 19 2025 01:05:53
Module end 'content'
Timing: Jan 19 2025 01:05:53
Script end

Main resources:

Total runtime0.0137 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.0054 589.0547152.6094
Module start 'layout' 0.00540.0023 741.664139.4141
Module start 'content' 0.00770.0043 781.078197.4297
Module end 'content' 0.01200.0017 878.507838.3047
Script end 0.0137  916.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.3794140.0002
Check MTime0.00117.6948140.0001
Mysql Total
Database connection0.00096.764210.0009
Mysqli_queries0.002114.941830.0007
Looping result0.00000.072910.0000
Template Total0.001410.110.0014
Template load0.00075.302410.0007
Template processing0.00074.748510.0007
Override
Cache load0.00053.677310.0005
General
dbfile0.00085.548980.0001
String conversion0.00000.050340.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