Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preFooter dateModified is not rendering the provided date string value - Power Pages #1126

Open
alfredofosu opened this issue Mar 20, 2024 · 0 comments

Comments

@alfredofosu
Copy link

When refreshing the page, the dateModified field incorrectly displays the current datetime rather than the expected string representing the page's last modified date in Power Pages. The intention is to utilize liquid syntax to assign the page's modification date as a string to dateModified using the following code:

dateModified: "{{ page.modifiedon | date:'yyyy-MM-dd'}}"

Within the HTML source code, this appears to function correctly, as shown here:
image

However, the output rendered on the pages reflects the current datetime, not the last modified date of the page:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant