Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

OEL-1017: [oe_whitelabel] Style the news content type

Merged Francesco SARDARA requested to merge OEL-1017 into 1.x

Created by: GilNovacomm

Create oe_whitelabel_news submodule. Create date format. Configure full and teaser displays for the News content type. Update required dependencies. Create rendering tests.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit e54ff09f
  • 9 "php": ">=7.3",
    9 "php": ">=7.4",
    10 10 "cweagans/composer-patches": "^1.7",
    11 11 "drupal/core": "^8.9 || ^9.1",
    12 12 "openeuropa/oe_bootstrap_theme": "0.1.202202072010"
    13 13 },
    14 14 "require-dev": {
    15 15 "composer/installers": "^1.11",
    16 "drupal/core-composer-scaffold": "^8.9 || ^9.1",
    17 "drupal/config_devel": "~1.2",
    18 16 "drupal/better_exposed_filters": "^5.0",
    17 "drupal/config_devel": "~1.2",
    18 "drupal/core-composer-scaffold": "^8.9 || ^9.1",
    19 "drupal/ctools": "^3.7",
    19 20 "drupal/drupal-extension": "~4.1",
    21 "drupal/file_link": "^2.0.4",
    • Created by: escuriola

      why is needed?

      • file_link, pathauto, email_validator?
    • Created by: GilNovacomm

      This issue is due to when installing the lowest versions: Downgrading drupal/core (9.2.12 => 9.2.0): Loading from cache these modules do not have the core_version_requirement key on their info file. An explanation to each is on the _readme key on composer.json "_readme": [ "Explicit minimum version requirement of drupal/ctools module due to D9.2 compatability.", "Explicit requirement for drupal/file_link due to https://www.drupal.org/project/file_link/issues/3147517. It can be removed when oe_media requires version 2.0.4 or above.", "Explicit requirement for drupal/pathauto due to D9.2 compatability according to https://www.drupal.org/node/2979476.", "Explicit requirement for egulias/email-validator due to https://www.drupal.org/project/drupal/issues/3061074#comment-14300579. It can be removed when Drupal core 9.2 support is droppped." ],

  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit ac52df4f
  • 1 name: OpenEuropa Whitelabel News
    2 type: module
    3 description: Adds additional functionality to the News module
    4 package: OpenEuropa Whitelabel Theme
    5 core_version_requirement: ^8.9 || ^9.2
    6 dependencies:
    7 - oe_starter_content:oe_starter_content_news
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit ac52df4f
  • 5 * OE Whitelabel theme News.
    6 */
    7
    8 declare(strict_types = 1);
    9
    10 use Drupal\Core\Cache\CacheableMetadata;
    11 use Drupal\media\MediaInterface;
    12 use Drupal\media\Plugin\media\Source\Image;
    13 use Drupal\media_avportal\Plugin\media\Source\MediaAvPortalPhotoSource;
    14 use Drupal\oe_bootstrap_theme\ValueObject\ImageValueObject;
    15
    16 /**
    17 * Implements template_preprocess_node() for the News node type.
    18 */
    19 function oe_whitelabel_news_preprocess_node__oe_news(&$variables) {
    20
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading