Why TYPO3 9.5.x Fluid Viewhelper f:security only works in Default.html but not in List.html?
In TYPO3 9.5.x this code works in the Layout/Default.html template of my extbase extension. But same code does not work in any other template, in example a List.html template. I dont get any output of the viewhelper when I use it there. In TYPO3 8.x, it works in every template, not only in the Default.html. Is there a good reason for that? How can i use f:security inside partials and templates that are not Layout/Default.html?
<f:security.ifHasRole role="2">
<f:then>
<p>CHECK RIGHTS role=2</p>
</f:then>
<f:else>
<p>CHECK RIGHTS role=not2</p>
</f:else>
</f:security.ifHasRole>
Same with this code, so it has nothing to do with the f:else:
<f:security.ifAuthenticated>
<p>I AM LOGGED IN, but it does not show up :( </p>
</f:security.ifAuthenticated>
Layout/Default.html:
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:security.ifHasRole role="2">
<p>ROLE is 2 in Default.html, this gets rendered as expected</p>
</f:security.ifHasRole>
<div class="container">
<f:debug title="Debug" maxDepth="12">{_all}</f:debug>
<f:render section="content" />
</div><!-- /container -->
</html>
Templates/Statistic/List.html
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects.
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
List.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="content">
<h3>Anruf-Statistiken</h3>
<f:flashMessages />
<div style="float:right; clear:both;"><f:link.action action="export" controller="Statistic" pluginName="Run"><button type="button" class="btn btn-xs btn-default">Tabelle für Excel speichern (CSV-Export)</button></f:link.action></div>
<table style="padding: 1em; margin-top:2em; width:100%;" class="tx_srv2" >
<tr>
<th style="padding: 1em;">ID</th>
<th style="padding: 1em;">Timestamp</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.agent" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.status" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.campaigntitle" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.duration" /> (sec.)</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.comment" /></th>
</tr>
<f:widget.paginate objects="{statistics}" configuration="{itemsPerPage: 10, insertBelow:1}" as="paginatedStatistics">
<f:for each="{paginatedStatistics}" as="statistic">
<tr>
<td style="padding: 1em;">{statistic.uid}</td>
<td style="padding: 1em;"><f:format.date format="Y-m-d H:i:s">{statistic.crdate}</f:format.date></td>
<td style="padding: 1em;">{statistic.agent.username}</td>
<td style="padding: 1em;">{statistic.status}</td>
<td style="padding: 1em;">{statistic.campaigntitle}</td>
<td style="padding: 1em;">{statistic.duration}</td>
<td style="padding: 1em;">{statistic.comment}</td>
</tr>
</f:for>
</f:widget.paginate>
</table>
<f:security.ifAuthenticated>
<f:then>
This part should be shown if there is a frontend user logged in, but it never shows up.
</f:then>
<f:else>
This part should be shown if the current user is not logged in., but it also doesnt show up.
</f:else>
</f:security.ifAuthenticated>
</f:section>
</html>
In frontend, no content from the f:security part in List.html gets rendered, but the f:security part from Default.html gets rendered. And the usual output from the List.html, which is the listing of objects, is rendered as expected.
security templates fluid view-helpers typo3-9.x
add a comment |
In TYPO3 9.5.x this code works in the Layout/Default.html template of my extbase extension. But same code does not work in any other template, in example a List.html template. I dont get any output of the viewhelper when I use it there. In TYPO3 8.x, it works in every template, not only in the Default.html. Is there a good reason for that? How can i use f:security inside partials and templates that are not Layout/Default.html?
<f:security.ifHasRole role="2">
<f:then>
<p>CHECK RIGHTS role=2</p>
</f:then>
<f:else>
<p>CHECK RIGHTS role=not2</p>
</f:else>
</f:security.ifHasRole>
Same with this code, so it has nothing to do with the f:else:
<f:security.ifAuthenticated>
<p>I AM LOGGED IN, but it does not show up :( </p>
</f:security.ifAuthenticated>
Layout/Default.html:
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:security.ifHasRole role="2">
<p>ROLE is 2 in Default.html, this gets rendered as expected</p>
</f:security.ifHasRole>
<div class="container">
<f:debug title="Debug" maxDepth="12">{_all}</f:debug>
<f:render section="content" />
</div><!-- /container -->
</html>
Templates/Statistic/List.html
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects.
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
List.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="content">
<h3>Anruf-Statistiken</h3>
<f:flashMessages />
<div style="float:right; clear:both;"><f:link.action action="export" controller="Statistic" pluginName="Run"><button type="button" class="btn btn-xs btn-default">Tabelle für Excel speichern (CSV-Export)</button></f:link.action></div>
<table style="padding: 1em; margin-top:2em; width:100%;" class="tx_srv2" >
<tr>
<th style="padding: 1em;">ID</th>
<th style="padding: 1em;">Timestamp</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.agent" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.status" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.campaigntitle" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.duration" /> (sec.)</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.comment" /></th>
</tr>
<f:widget.paginate objects="{statistics}" configuration="{itemsPerPage: 10, insertBelow:1}" as="paginatedStatistics">
<f:for each="{paginatedStatistics}" as="statistic">
<tr>
<td style="padding: 1em;">{statistic.uid}</td>
<td style="padding: 1em;"><f:format.date format="Y-m-d H:i:s">{statistic.crdate}</f:format.date></td>
<td style="padding: 1em;">{statistic.agent.username}</td>
<td style="padding: 1em;">{statistic.status}</td>
<td style="padding: 1em;">{statistic.campaigntitle}</td>
<td style="padding: 1em;">{statistic.duration}</td>
<td style="padding: 1em;">{statistic.comment}</td>
</tr>
</f:for>
</f:widget.paginate>
</table>
<f:security.ifAuthenticated>
<f:then>
This part should be shown if there is a frontend user logged in, but it never shows up.
</f:then>
<f:else>
This part should be shown if the current user is not logged in., but it also doesnt show up.
</f:else>
</f:security.ifAuthenticated>
</f:section>
</html>
In frontend, no content from the f:security part in List.html gets rendered, but the f:security part from Default.html gets rendered. And the usual output from the List.html, which is the listing of objects, is rendered as expected.
security templates fluid view-helpers typo3-9.x
add a comment |
In TYPO3 9.5.x this code works in the Layout/Default.html template of my extbase extension. But same code does not work in any other template, in example a List.html template. I dont get any output of the viewhelper when I use it there. In TYPO3 8.x, it works in every template, not only in the Default.html. Is there a good reason for that? How can i use f:security inside partials and templates that are not Layout/Default.html?
<f:security.ifHasRole role="2">
<f:then>
<p>CHECK RIGHTS role=2</p>
</f:then>
<f:else>
<p>CHECK RIGHTS role=not2</p>
</f:else>
</f:security.ifHasRole>
Same with this code, so it has nothing to do with the f:else:
<f:security.ifAuthenticated>
<p>I AM LOGGED IN, but it does not show up :( </p>
</f:security.ifAuthenticated>
Layout/Default.html:
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:security.ifHasRole role="2">
<p>ROLE is 2 in Default.html, this gets rendered as expected</p>
</f:security.ifHasRole>
<div class="container">
<f:debug title="Debug" maxDepth="12">{_all}</f:debug>
<f:render section="content" />
</div><!-- /container -->
</html>
Templates/Statistic/List.html
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects.
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
List.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="content">
<h3>Anruf-Statistiken</h3>
<f:flashMessages />
<div style="float:right; clear:both;"><f:link.action action="export" controller="Statistic" pluginName="Run"><button type="button" class="btn btn-xs btn-default">Tabelle für Excel speichern (CSV-Export)</button></f:link.action></div>
<table style="padding: 1em; margin-top:2em; width:100%;" class="tx_srv2" >
<tr>
<th style="padding: 1em;">ID</th>
<th style="padding: 1em;">Timestamp</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.agent" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.status" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.campaigntitle" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.duration" /> (sec.)</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.comment" /></th>
</tr>
<f:widget.paginate objects="{statistics}" configuration="{itemsPerPage: 10, insertBelow:1}" as="paginatedStatistics">
<f:for each="{paginatedStatistics}" as="statistic">
<tr>
<td style="padding: 1em;">{statistic.uid}</td>
<td style="padding: 1em;"><f:format.date format="Y-m-d H:i:s">{statistic.crdate}</f:format.date></td>
<td style="padding: 1em;">{statistic.agent.username}</td>
<td style="padding: 1em;">{statistic.status}</td>
<td style="padding: 1em;">{statistic.campaigntitle}</td>
<td style="padding: 1em;">{statistic.duration}</td>
<td style="padding: 1em;">{statistic.comment}</td>
</tr>
</f:for>
</f:widget.paginate>
</table>
<f:security.ifAuthenticated>
<f:then>
This part should be shown if there is a frontend user logged in, but it never shows up.
</f:then>
<f:else>
This part should be shown if the current user is not logged in., but it also doesnt show up.
</f:else>
</f:security.ifAuthenticated>
</f:section>
</html>
In frontend, no content from the f:security part in List.html gets rendered, but the f:security part from Default.html gets rendered. And the usual output from the List.html, which is the listing of objects, is rendered as expected.
security templates fluid view-helpers typo3-9.x
In TYPO3 9.5.x this code works in the Layout/Default.html template of my extbase extension. But same code does not work in any other template, in example a List.html template. I dont get any output of the viewhelper when I use it there. In TYPO3 8.x, it works in every template, not only in the Default.html. Is there a good reason for that? How can i use f:security inside partials and templates that are not Layout/Default.html?
<f:security.ifHasRole role="2">
<f:then>
<p>CHECK RIGHTS role=2</p>
</f:then>
<f:else>
<p>CHECK RIGHTS role=not2</p>
</f:else>
</f:security.ifHasRole>
Same with this code, so it has nothing to do with the f:else:
<f:security.ifAuthenticated>
<p>I AM LOGGED IN, but it does not show up :( </p>
</f:security.ifAuthenticated>
Layout/Default.html:
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:security.ifHasRole role="2">
<p>ROLE is 2 in Default.html, this gets rendered as expected</p>
</f:security.ifHasRole>
<div class="container">
<f:debug title="Debug" maxDepth="12">{_all}</f:debug>
<f:render section="content" />
</div><!-- /container -->
</html>
Templates/Statistic/List.html
<html xmlns:f="https://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects.
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
List.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="content">
<h3>Anruf-Statistiken</h3>
<f:flashMessages />
<div style="float:right; clear:both;"><f:link.action action="export" controller="Statistic" pluginName="Run"><button type="button" class="btn btn-xs btn-default">Tabelle für Excel speichern (CSV-Export)</button></f:link.action></div>
<table style="padding: 1em; margin-top:2em; width:100%;" class="tx_srv2" >
<tr>
<th style="padding: 1em;">ID</th>
<th style="padding: 1em;">Timestamp</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.agent" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.status" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.campaigntitle" /></th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.duration" /> (sec.)</th>
<th style="padding: 1em;"><f:translate key="tx_srv2_domain_model_statistic.comment" /></th>
</tr>
<f:widget.paginate objects="{statistics}" configuration="{itemsPerPage: 10, insertBelow:1}" as="paginatedStatistics">
<f:for each="{paginatedStatistics}" as="statistic">
<tr>
<td style="padding: 1em;">{statistic.uid}</td>
<td style="padding: 1em;"><f:format.date format="Y-m-d H:i:s">{statistic.crdate}</f:format.date></td>
<td style="padding: 1em;">{statistic.agent.username}</td>
<td style="padding: 1em;">{statistic.status}</td>
<td style="padding: 1em;">{statistic.campaigntitle}</td>
<td style="padding: 1em;">{statistic.duration}</td>
<td style="padding: 1em;">{statistic.comment}</td>
</tr>
</f:for>
</f:widget.paginate>
</table>
<f:security.ifAuthenticated>
<f:then>
This part should be shown if there is a frontend user logged in, but it never shows up.
</f:then>
<f:else>
This part should be shown if the current user is not logged in., but it also doesnt show up.
</f:else>
</f:security.ifAuthenticated>
</f:section>
</html>
In frontend, no content from the f:security part in List.html gets rendered, but the f:security part from Default.html gets rendered. And the usual output from the List.html, which is the listing of objects, is rendered as expected.
security templates fluid view-helpers typo3-9.x
security templates fluid view-helpers typo3-9.x
edited Nov 21 '18 at 21:51
DeppDeeh
asked Nov 21 '18 at 9:55
DeppDeehDeppDeeh
106
106
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
in TYPO3 9.5.x it seems like that the ViewHelper only returns a boolean and does not render the "then" or "else" tags. This works for me:
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
add a comment |
Usage looks perfectly fine.
f:security
ViewHelpers only work in the frontend. If you are in backend scope you need to use f:be.security
equivalents.
If that does not solve the problem, could you please provide the template code where the malfunctioning ViewHelper is used at?
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53409411%2fwhy-typo3-9-5-x-fluid-viewhelper-fsecurity-only-works-in-default-html-but-not-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
in TYPO3 9.5.x it seems like that the ViewHelper only returns a boolean and does not render the "then" or "else" tags. This works for me:
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
add a comment |
in TYPO3 9.5.x it seems like that the ViewHelper only returns a boolean and does not render the "then" or "else" tags. This works for me:
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
add a comment |
in TYPO3 9.5.x it seems like that the ViewHelper only returns a boolean and does not render the "then" or "else" tags. This works for me:
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
in TYPO3 9.5.x it seems like that the ViewHelper only returns a boolean and does not render the "then" or "else" tags. This works for me:
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
<f:if condition="{f:security.ifHasRole( role: '9')}">
<f:then>
yes
</f:then>
<f:else>
no
</f:else>
</f:if>
answered Jan 18 at 7:59
RangerRanger
111
111
add a comment |
add a comment |
Usage looks perfectly fine.
f:security
ViewHelpers only work in the frontend. If you are in backend scope you need to use f:be.security
equivalents.
If that does not solve the problem, could you please provide the template code where the malfunctioning ViewHelper is used at?
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
add a comment |
Usage looks perfectly fine.
f:security
ViewHelpers only work in the frontend. If you are in backend scope you need to use f:be.security
equivalents.
If that does not solve the problem, could you please provide the template code where the malfunctioning ViewHelper is used at?
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
add a comment |
Usage looks perfectly fine.
f:security
ViewHelpers only work in the frontend. If you are in backend scope you need to use f:be.security
equivalents.
If that does not solve the problem, could you please provide the template code where the malfunctioning ViewHelper is used at?
Usage looks perfectly fine.
f:security
ViewHelpers only work in the frontend. If you are in backend scope you need to use f:be.security
equivalents.
If that does not solve the problem, could you please provide the template code where the malfunctioning ViewHelper is used at?
answered Nov 21 '18 at 13:17
AzichAzich
414
414
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
add a comment |
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
I Upated my question with the templates that are used.
– DeppDeeh
Nov 21 '18 at 21:44
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
Yes, I use the ViewHelpers only in the frontend.
– DeppDeeh
Nov 22 '18 at 10:19
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53409411%2fwhy-typo3-9-5-x-fluid-viewhelper-fsecurity-only-works-in-default-html-but-not-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown