I'm using fullcalendar to display a content type called "Calendar Event". This has a date field and a reference field to another node that provides the main content.

Most of the time I want to show the title of the referenced parent node and link through to it. So I've added fields for Title and Path, both using (optional) relationships to the parent node. Then in Format > Settings > Customize Fields have selected these as the Title Field and URL Field.

All this works great, but there are situations where there is no assigned parent node reference and instead I want to show the title and link directly to the calendar event. What's strange is that where the relationship doesn't exist, the title is shown correctly as the Calendar Event node. But the path does not fallback to the Calendar Event node and is shown as mysite.com/node/

Comments

tim.plunkett’s picture

Interesting results. I have a couple theories, hopefully I can debug this more later.

Anonymous’s picture

Thanks Tim. I had a thought that perhaps I could work around it by creating another specific content type with a date field but got the same results. I added the new content type to the views filter, but didn't change anything else and got the title of the new node showing up correctly but the link was empty.

Anonymous’s picture

This seems to be a Views issue because I see the same lack of correct path when showing the View as a table rather than fullcalendar.

Anonymous’s picture

Status: Active » Closed (works as designed)

I've worked around this with a tpl to set the output to node/nid if the parent item is null. So I'm closing this and will file a bug on entity reference module.