Jump to content
toni

$field in references() limit to template

Recommended Posts

Hi,

I have persons using template person. I have events linking to persons using a template event.
By now on a person detail page I'm looking for events like:

$page->references()

and in my loop I'm checking if the item has template "event" 

{if $item->template == "event"}

smarty 😉

Is it possible to do this in one step? ~ ->references('template=event') I must admit I do not really got the idea of $field.

 

Thanks!

Share this post


Link to post
Share on other sites

hi @adrian. mhhh yep this is what I did so there must be something else wrong 😕

Share this post


Link to post
Share on other sites

Dear @adrian sorry for noise. With some rubber duck debugging ... it was a typo. Shame on me ;(

  • Like 1

Share this post


Link to post
Share on other sites

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...