Jump to content

$field in references() limit to template


toni
 Share

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!

Link to comment
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
 Share

  • Recently Browsing   0 members

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