diff --git a/js/readmore.js b/js/readmore.js index 5c62a58..af87e9e 100644 --- a/js/readmore.js +++ b/js/readmore.js @@ -32,9 +32,9 @@ } initReadMore({ - //selector: '.field--type-text-long p', - selector: '.readmore', - lines: 2, + selector: '.tl-text-content p', + //selector: '.readmore', + lines: 8, }); } diff --git a/templates/field/field--node--field-abstract--islandora-object.html.twig b/templates/field/field--node--field-abstract--islandora-object.html.twig new file mode 100755 index 0000000..07ce721 --- /dev/null +++ b/templates/field/field--node--field-abstract--islandora-object.html.twig @@ -0,0 +1 @@ +{% extends "field--text.html.twig" %} diff --git a/templates/views/views-view-fields--newspaper_directory--page_2.html.twig b/templates/views/views-view-fields--newspaper_directory--page_2.html.twig new file mode 100644 index 0000000..64bd791 --- /dev/null +++ b/templates/views/views-view-fields--newspaper_directory--page_2.html.twig @@ -0,0 +1,54 @@ +{# +/** + * @file + * Default view template to display all the fields in a row. + * + * Available variables: + * - view: The view in use. + * - fields: A list of fields, each one contains: + * - content: The output of the field. + * - raw: The raw data for the field, if it exists. This is NOT output safe. + * - class: The safe class ID to use. + * - handler: The Views field handler controlling this field. + * - inline: Whether or not the field should be inline. + * - wrapper_element: An HTML element for a wrapper. + * - wrapper_attributes: List of attributes for wrapper element. + * - separator: An optional separator that may appear before a field. + * - label: The field's label text. + * - label_element: An HTML element for a label wrapper. + * - label_attributes: List of attributes for label wrapper. + * - label_suffix: Colon after the label. + * - element_type: An HTML element for the field content. + * - element_attributes: List of attributes for HTML element for field content. + * - has_label_colon: A boolean indicating whether to display a colon after + * the label. + * - element_type: An HTML element for the field content. + * - element_attributes: List of attributes for HTML element for field content. + * - row: The raw result from the query, with all data it fetched. + * + * @see template_preprocess_views_view_fields() + * + * @ingroup themeable + */ +#} +{% for field in fields -%} + {{ field.separator }} + {%- if field.wrapper_element -%} + <{{ field.wrapper_element }}{{ field.wrapper_attributes }}> + {%- endif %} + {%- if field.label -%} + {%- if field.label_element -%} + <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }} + {%- else -%} + {{ field.label }}{{ field.label_suffix }} + {%- endif %} + {%- endif %} + {%- if field.element_type -%} + <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }} + {%- else -%} + {{ field.content }} + {%- endif %} + {%- if field.wrapper_element -%} + + {%- endif %} +{%- endfor %} diff --git a/templates/views/views-view-unformatted--newspaper_directory--page_2.html.twig b/templates/views/views-view-unformatted--newspaper_directory--page_2.html.twig new file mode 100644 index 0000000..b67b5f7 --- /dev/null +++ b/templates/views/views-view-unformatted--newspaper_directory--page_2.html.twig @@ -0,0 +1,32 @@ +{# +/** + * @file + * Default theme implementation to display a view of unformatted rows. + * + * Available variables: + * - title: The title of this group of rows. May be empty. + * - rows: A list of the view's row items. + * - attributes: The row's HTML attributes. + * - content: The row's content. + * - view: The view object. + * - default_row_class: A flag indicating whether default classes should be + * used on rows. + * + * @see template_preprocess_views_view_unformatted() + * + * @ingroup themeable + */ +#} +{% if title %} +

{{ title }}

+{% endif %} +{% for row in rows %} + {% + set row_classes = [ + default_row_class ? 'views-row', + ] + %} + + {{- row.content -}} + +{% endfor %}