{"id":34750992,"url":"https://github.com/lmonk72/pathauto_enable_action","last_synced_at":"2026-04-19T23:31:32.999Z","repository":{"id":329038633,"uuid":"1078264859","full_name":"lmonk72/pathauto_enable_action","owner":"lmonk72","description":"A simple Drupal 10/11 module which provides an action to enable pathauto on created content. This mini module makes it possible to quickly update nodes without having to manually enable pathauto in each item of content.","archived":false,"fork":false,"pushed_at":"2025-12-17T23:24:59.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T02:57:48.092Z","etag":null,"topics":["drupal","drupal-10-module","drupal-module"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmonk72.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-17T13:11:22.000Z","updated_at":"2025-12-17T23:25:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lmonk72/pathauto_enable_action","commit_stats":null,"previous_names":["lmonk72/pathauto_enable_action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lmonk72/pathauto_enable_action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmonk72%2Fpathauto_enable_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmonk72%2Fpathauto_enable_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmonk72%2Fpathauto_enable_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmonk72%2Fpathauto_enable_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmonk72","download_url":"https://codeload.github.com/lmonk72/pathauto_enable_action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmonk72%2Fpathauto_enable_action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32026602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-10-module","drupal-module"],"created_at":"2025-12-25T05:14:21.063Z","updated_at":"2026-04-19T23:31:32.992Z","avatar_url":"https://github.com/lmonk72.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pathauto Enable Action\n======================\n\nThis simple Drupal 10 module provides an Action plugin that enables the Pathauto \"Generate automatic URL alias\" flag for node entities. It is useful when migrated content retains existing aliases and you want to re-generate aliases for selected nodes.\n\n## Features\n- Provides a bulk action \"Enable automatic URL alias (Pathauto)\" for use in Content bulk operations.\n- Sets the Pathauto `CREATE` state on selected nodes so aliases will be regenerated.\n- Requires the \"Administer nodes\" permission to execute.\n\n## Installation\n1. Place this module in `web/modules/custom/pathauto_enable_action`.\n2. Enable the module:\n   ```bash\n   drush en pathauto_enable_action -y\n   ```\n   Or via UI: Admin \u003e Extend \u003e (search for \"Pathauto enable action\") \u003e Enable.\n\n3. Clear caches:\n   ```bash\n   drush cache:rebuild\n   ```\n\n## Usage\n1. Go to Admin \u003e Content (or any content listing page).\n2. Select one or more nodes using the checkboxes.\n3. Under \"Action\", select \"Enable automatic URL alias (Pathauto)\".\n4. Click \"Apply to selected items\".\n5. The action sets the Pathauto flag; then use Pathauto's Bulk generate feature to regenerate aliases:\n   - Go to Admin \u003e Configuration \u003e Search and metadata \u003e URL aliases \u003e Bulk generate.\n   - Or run `drush pathauto:generate-aliases`.\n\n## How It Works\n- The action plugin sets `$node-\u003epath-\u003epathauto = PathautoState::CREATE` on each selected node.\n- This tells Pathauto to regenerate the alias the next time the node is saved or via bulk operations.\n- The action does **not** immediately regenerate aliases—it only sets the flag. Use Pathauto bulk update afterward.\n\n## Module Structure\n- `pathauto_enable_action.info.yml` — Module metadata.\n- `src/Plugin/Action/PathautoEnableAction.php` — The Action plugin implementation.\n- `config/install/system.action.pathauto_enable_action.yml` — System action configuration entity.\n- `pathauto_enable_action.permissions.yml` — Custom permissions (optional).\n\n## Troubleshooting\n- **Action doesn't appear in the Actions dropdown:**\n  - Ensure the module is enabled: `drush pml --status=enabled | grep pathauto_enable_action`\n  - Clear caches: `drush cache:rebuild`\n  - Confirm you have \"Administer nodes\" permission.\n\n- **Permission denied error:**\n  - The action requires the \"Administer nodes\" permission. Assign this role to your user if needed.\n\n## Testing\nTo run the module tests using DDEV and PHPUnit, run:\n```bash\nddev exec env SIMPLETEST_DB=\"mysql://db:db@db/db\" \\\n   vendor/bin/phpunit -c /var/www/html/web/core/phpunit.xml.dist \\\n   /var/www/html/web/modules/custom/pathauto_enable_action/tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmonk72%2Fpathauto_enable_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmonk72%2Fpathauto_enable_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmonk72%2Fpathauto_enable_action/lists"}