passing variables from a class to fetch

passing variables from a class to fetch

Monday 22 August 2005 4:55:49 am - 5 replies

Modified on Monday 22 August 2005 5:01:56 am by Matthew Almand

Author Message

Bård Farstad

Wednesday 24 August 2005 12:54:59 am

Hi Matthew,

did you check that the offset and limit values are correct. This can be done by adding a line after the let:

{$var_offset}

This should print the value. To get the integer value you need to ask the the $node.object.data_map.offset.content. So by changing the code as shown below should work:

{let $var_limit=$node.object.data_map.limit.content
     $var_offset=$node.object.data_map.offset.content}

Documentation: http://ez.no/doc

Matthew Almand

Wednesday 24 August 2005 1:01:43 am

cool!

Thanks Bård I will try this now!

:)

Matthew Almand

Wednesday 24 August 2005 1:35:16 am

That was the trick! Thanks Bård!

just a question to increase my eZ knowledge!

what is the output difference between having the .content and not having it on the end?

Kristof Coomans

Wednesday 24 August 2005 6:18:25 am

Without the .content, you'll get the object attribute itself (an instance of eZContentObjectAttribute).

With the .content, you'll get the object attribute's content. What this exactly is, depends on the used datatype.

For a text line for example, you'll get a variable with the text that was filled in. For an integer, you'll get a variable with the integer that was filled in. For a binary file, you'll get an instance of eZBinaryFile. Etc.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Matthew Almand

Thursday 25 August 2005 12:04:24 am

That clears it up thanks Kristof I understand it now.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.