RSS Feed/News How can I access a new relation added to the Post entity?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,756
Points
823

Reputation:

So I've setup a relation on the post entity using the entity_structure event. I can access it fine throughout the code (or by including it in the "with" of the finder). However, there's one part I don't understand. I want to access this relation within the post_macros template modification I made, but there, the relation doesn't exist on $post - how can I make sure the $post var in the template also includes the new relation?

Hope this makes any sense, tried searching the forums/Google...

Read more

Continue reading...
 
Status
Not open for further replies.
Top