Jump to content

Pages - Template syntax


ZackL

Recommended Posts

Posted

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!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...