RSS Feed/News Replace variable on templates before rendering

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
26,016
Points
823

Reputation:

Hello all!

1. Let's say we have the template variable $post.User.username.

On $post I have a getEditedUsername() getter.

Is that possible via php / class extension (without modification of the template) etc. when on the templates called the $post.User.username, in reality to give as result the $post.getEditedUsername()? I mean to look backward, bypass the .User.

2. Another question: is that possible via a class extension and a method...

Read more

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