RSS Feed/News xf:avatar backtick interpolation

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,700
Points
823

Reputation:

I am currently working with a system that involves an object called $staff_member. The staff member object has various attributes, one of which is 'username'. The system utilizes the <xf:avatar> function to generate avatars for the staff member.

The system builds an html structure out of strings that represents html code, as later I intend to use innerHTML to display it on the webpage.

This is the line I try to store as a string:
<xf:avatar user="{$staff_member}" size="s" />...

Read more

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