Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ZackL Posted July 17, 2016 Posted July 17, 2016 Hi, I was wondering whether Template Syntax is valid on an IP.Content page? I have a simple test page I'm using to try things out on, but it's not exactly cooperating. {{if member}} <p>Hello, {member.get_name()}</p> {{else}} <p>Hello world. Gtfo and login</p> {{endif}} All I get back is: Quote Hello, {member.get_name()} Note: I've tried "{member.name}" before using "get_name()" (what I found in "system\Member\Member.php" which I don't even know which methods are valid in template syntax.) Misc. additional questions: Where do I look to find applicable values for member? Is it just database fields (from core_members table)? Or maybe does it map to the PHP (public) members? Praise: I do love this template syntax if it works for pages as it simplifies it from IP.Content's original usage of referencing $this->memberData Thanks in advance!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.