You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should find() return the node context instead of an array, if a singular ID is used instead of a query?
<r:void do='find(17)'>
The "first_name" property is defined for the Contact klass (see <r:link/>), but find does not seem to enter the context correctly.
<r:first_name/>
<br />
It seems find does not return an array for single nodes (not behaving consistently with the new do='first' requirement yet?)
<r:first do='first_name'/>
<r:void do='first.first_name'/>
<r:Contact?>
Firstname: <r:first_name/>
</r:Contact?>
</r:void>
Note that using find makes sense when the ID comes from a visitor's params[] selection, or not?
The text was updated successfully, but these errors were encountered:
The following sqliss workaround for find(), that looks explicitly for 'contacts' seems to work. Looking for 'nodes' does also not make the actual class properties available.
<r:void do='contacts where id = 17 in site'>
Here comes Mr. <r:void do='last_name'/>,
<r:void do='first_name'/>
<r:if test='first_name'>
<r:set stringo='first_name'/>
</r:if>
<r:void do='last_name'/>.
</r:void>
At least with the auto-first context stuff gone, entering "first" should probably be neccessary. (Find() can also be used to get multiple nodes, right?). So entering "first" will also need to be fixed:
<r:void do='find(17)'>
The "first_name" property is also not found with the attempt to explicitly enter first node context, it even returns unknown method first() (Node context):
<r:first do='first_name'/>
<r:void do='first.firstname'/>
</r:void>
Should find() return the node context instead of an array, if a singular ID is used instead of a query?
Note that using find makes sense when the ID comes from a visitor's params[] selection, or not?
The text was updated successfully, but these errors were encountered: