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.