Overwrite password form template: How to access global sets? #4699
-
Hello, Following the documentation, I'm trying to overwrite the password protect template ( I tried pulling content with <!doctype html>
<html lang="{{ site:short_locale }}">
<head>
...
<title>Restricted Space</title>
<link rel="stylesheet" href="{{ mix src='css/app.css' }}">
{{ seotamic }}
</head>
{{ get_content from="/" }}
<body class="{{ slug }}" style="--c-primary:{{ layout:couleur }};--c-secondary:{{ layout:couleur_alt }};--c-tertiary:{{ layout:couleur_de_fond }}">
{{ partial:layout/header }}
<section class="content" id="body">
<main class="page s-pro">
{{ protect:password_form }}
{{ if no_token }}
No token has been provided.
{{ else }}
{{ if error }}
<div class="error">{{ error }}</div>
{{ /if }}
<input type="password" name="password" />
{{ errors:password }}
<div class="inline-error">{{ value }}</div>
{{ /errors:password }}
<button>Submit</button>
{{ /if }}
{{ /protect:password_form }}
</main>
</section>
{{ partial:layout/footer }}
</body>
{{ /get_content }}
Any hint would be super appreciated 🍇
<script src="{{ mix src='js/index.js' }}"></script>
</html> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like the password entry view is very basic and we don't send extra data to it like we do on regular content pages. You can consider this a bug. Feel free to open an issue. |
Beta Was this translation helpful? Give feedback.
Looks like the password entry view is very basic and we don't send extra data to it like we do on regular content pages. You can consider this a bug. Feel free to open an issue.