From db7c08ad23009d5ce748ba2e9eea0d152a5454a8 Mon Sep 17 00:00:00 2001 From: rdrew Date: Tue, 17 Dec 2024 10:37:31 -0400 Subject: [PATCH] scholar page templates --- .../block/block--advanced-search.html.twig | 40 +++++++++++++++++++ templates/layout/page--user.html.twig | 34 +++++++--------- .../taxonomy-term--scholars.html.twig | 4 +- 3 files changed, 57 insertions(+), 21 deletions(-) create mode 100755 templates/block/block--advanced-search.html.twig diff --git a/templates/block/block--advanced-search.html.twig b/templates/block/block--advanced-search.html.twig new file mode 100755 index 0000000..404d7b7 --- /dev/null +++ b/templates/block/block--advanced-search.html.twig @@ -0,0 +1,40 @@ +{# +/** + * @file + * Theme override to display a block. + * + * Available variables: + * - plugin_id: The ID of the block implementation. + * - label: The configured label of the block if visible. + * - configuration: A list of the block's configuration values. + * - label: The configured label for the block. + * - label_display: The display settings for the label. + * - provider: The module or other provider that provided this block plugin. + * - Block plugin specific settings will also be stored here. + * - content: The content of this block. + * - attributes: array of HTML attributes populated by modules, intended to + * be added to the main container tag of this template. + * - id: A valid HTML ID and guaranteed unique. + * - title_attributes: Same as attributes, except applied to the main title + * tag that appears in the template. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. + * + * @see template_preprocess_block() + */ +#} + + {{ title_prefix }} + {% if label %} + {{ label }} + {% endif %} + {{ title_suffix }} +
+ {% block content %} + {{ content }} + {% endblock %} +ADVANCED SEARCH +
+ diff --git a/templates/layout/page--user.html.twig b/templates/layout/page--user.html.twig index ae38208..e9c7363 100755 --- a/templates/layout/page--user.html.twig +++ b/templates/layout/page--user.html.twig @@ -23,37 +23,33 @@

Manage Your Scholar Profile

-
+ +
Need to put the existing profile here, I need access to a variable (ID?) that I can use to grab the correct profile page for insertion {{ drupal_entity('taxonomy_term', scholar_tid) }} - - - - -
-
+
+

Your Publications:

{{ drupal_view('my_publications', 'block_1') }}
-
+
+

Request Changes to Your Profile:

+ {{ drupal_entity('webform', 'edit_scholar_profile') }} +
+

Add Scholarly Works To Your Profile:

{{ drupal_entity('webform', 'add_scholarly_works') }}
-
+

Deposit Full Text:

{{ drupal_entity('webform', 'deposit_full_text') }}
-
-

Request Changes to Your Profile:

- - {{ drupal_entity('webform', 'edit_scholar_profile') }} -
{{ page.content }}
diff --git a/templates/main_layouts/taxonomy-term--scholars.html.twig b/templates/main_layouts/taxonomy-term--scholars.html.twig index f88b9a2..8942e41 100755 --- a/templates/main_layouts/taxonomy-term--scholars.html.twig +++ b/templates/main_layouts/taxonomy-term--scholars.html.twig @@ -23,12 +23,12 @@ * @see template_preprocess_taxonomy_term() */ #} -{# my dubugger #} +{# my dubugger
Rob's var dump {{ dump(content) }}
-{# /my dubugger #} + /my dubugger #} {% set fancy_fields = [ content.name,