You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to SSViewer_DataPresenter.php#L350, where processTemplateOverride sees that Link is defined and ignores the fact that it should be scoped to $Page.
The text was updated successfully, but these errors were encountered:
$Page is a special global template variable that can get a page by its slug, and defaults to the current page if no slug is provided (afaik), so using it to provide custom data to a template isn't recommended. If you use any other custom variable to pass in your custom page object, such as MyPage, it will work ok, I believe.
GuySartorelli
changed the title
Data overrides in email template hide chained object properties
Data overrides in template hide chained object properties
Jul 25, 2024
Affected Version
4.6.2
Description
Given the following PHP and template
Email/Foo.ss
The expected output is
However, the actual output comes through as
Stepping through the code I found the part where its calling
XML_val
in the templateThis leads to SSViewer_DataPresenter.php#L350, where
processTemplateOverride
sees thatLink
is defined and ignores the fact that it should be scoped to$Page
.The text was updated successfully, but these errors were encountered: