Unverified Commit e732cb42 authored by AdamPS's avatar AdamPS Committed by markcarver

Issue #3038786 by AdamPS: Implement Core CR "Field rendering respects configurable field display"

parent 0cf012e8
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Only "getter" methods (method names starting with "get", "has", or "is") Only "getter" methods (method names starting with "get", "has", or "is")
and a few common methods such as "id" and "label" are available. Calling and a few common methods such as "id" and "label" are available. Calling
other methods (such as node.delete) will result in an exception. other methods (such as node.delete) will result in an exception.
* - label: The title of the node. * - label: (optional) The title of the node.
* - content: All node items. Use {{ content }} to print them all, * - content: All node items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use * or print a subset such as {{ content.field_example }}. Use
* {{ content|without('field_example') }} to temporarily suppress the printing * {{ content|without('field_example') }} to temporarily suppress the printing
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
* - author_picture: The node author user entity, rendered using the "compact" * - author_picture: The node author user entity, rendered using the "compact"
* view mode. * view mode.
* - metadata: Metadata for this node. * - metadata: Metadata for this node.
* - date: Themed creation date field. * - date: (optional) Themed creation date field.
* - author_name: Themed author name field. * - author_name: (optional) Themed author name field.
* - url: Direct URL of the current node. * - url: Direct URL of the current node.
* - display_submitted: Whether submission information should be displayed. * - display_submitted: Whether submission information should be displayed.
* - attributes: HTML attributes for the containing element. * - attributes: HTML attributes for the containing element.
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<article{{ attributes.addClass(classes) }}> <article{{ attributes.addClass(classes) }}>
{{ title_prefix }} {{ title_prefix }}
{% if not page %} {% if label and not page %}
<h2{{ title_attributes }}> <h2{{ title_attributes }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a> <a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2> </h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment