A data resolver and output formatter are mandatory even using only a custom exporter that doesn't need them

Created on 18 May 2023, over 1 year ago
Updated 29 December 2023, 12 months ago

I've installed Static Suite in order to export redirects ("Redirect rules exporter", currently only available in the dev version), but I've been forced to install a data resolver and an output formatter, while I think them are not needed. I installed the JSON Serializer Data Resolver and the JSON Output Formatter.

¿Could this requirement be revised?

Thanks!

💬 Support request
Status

Closed: works as designed

Version

1.1

Component

Code

Created by

🇪🇸Spain vidorado Pamplona (Navarra)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vidorado
  • Assigned to albertosilva
  • 🇪🇸Spain albertosilva Basque Country

    Hi @vidorado,

    Static Suite is aimed at decoupling Drupal sites and making them static, and therefore it offers a plethora of features focused on that aim. Exporting redirects is one of those features, but maybe using Static Suite only to get those redirects seems to me somewhat overkilling.

    I would recommend making a custom module or Drush command and copy there the functionality from modules/static_export/modules/static_export_exporter_redirect/src/Plugin/static_export/Exporter/Custom/RedirectExporter.php::calculateDataFromResolver().

    You don't need the rest of features from Static Suite (and its inherit complexity), so I think that is a much better approach.

    Thanks

  • Status changed to Closed: works as designed 12 months ago
  • 🇪🇸Spain albertosilva Basque Country
Production build 0.71.5 2024