Jump to content

Problems with owner. selector


Recommended Posts

I'm trying to use the owner selector to select on the id of the 'owner' page for a repeater.

For most of the repeaters I have, this seems to work fine. However, there is one instance where it doesn't work and I can't see why not. As a simple test, I used a selector like:

$p = $pages->get("template=repeater_sale_item, sale_item.owner.id=25348");

That works, but 

$p = $pages->get("template=repeater_stage, stage.owner.id=19363");

returns a null page.

Investigating more closely, the generated 'owner selector' for this is 

'templates_id=43|53, include=all, get_total=0, id=19363, stage.count>0'

It is stage.count>0 that is causing the problem - if I remove that from the selector then it finds the owner page correctly. However this owner page DOES have 9 'stage' repeaters and executing 


on the page in the Tracy console yields  the correct result of 9. None of the stages are hidden/unpublished etc. So why does stage.count>0 fail? ?

See the image below to illustrate the issue:


Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...