README.md in decidim-cdtb-0.2.1 vs README.md in decidim-cdtb-0.3.0
- old
+ new
@@ -49,10 +49,25 @@
- `bin/rake cdtb:anonymize:proposals` anonymizes proposals
- `bin/rake cdtb:anonymize:user_groups` anonymizes user groups
- `bin/rake cdtb:anonymize:system_admins` anonymizes system admins
- `bin/rake cdtb:anonymize:paper_trail` anonymizes paper trails
+### Fix YouTube embeds for Decidim v0.28
+
+Fixes YouTube embeds to Decidim v0.28 format in different places, which at the moment are:
+
+- Decidim::Meetings::Meeting
+- Decidim::Debates::Debate
+- Decidim::Pages::Page
+- Decidim::Assembly
+- Decidim::ParticipatoryProcess
+
+```
+bin/rake cdtb:embeds:fix_youtube
+```
+
+
### Migrate ActiveStorage service from S3 to local
To migrate from S3 to local storage, the identified steps will be:
1. Download the assets to a temporary directory:
@@ -131,9 +146,78 @@
To execute the task run:
```
bundle exec rake cdtb:users:remove[spam_users.csv, reporter_user@example.org]
+```
+
+### Participatory Spaces / Add content blocks
+
+You can add content blocks to a participatory spaces with the content block name (manifest_name).
+This rake task affects spaces in all organizations.
+
+Content block manifest names list:
+
+```
+basic_only_text
+image_text_cta
+metadata
+hero
+participatory_processes
+html_2
+main_data
+title
+cta
+highlighted_proposals
+how_to_participate
+html_1
+related_documents
+stats
+html
+slider
+footer_sub_hero
+global_menu
+sub_hero
+highlighted_content_banner
+highlighted_processes
+highlighted_assemblies
+highlighted_regulations
+upcoming_meetings
+extra_data
+highlighted_meetings
+highlighted_results
+metrics
+related_assemblies
+announcement
+social_networks_metadata
+related_processes
+highlighted_posts
+last_activity
+```
+
+Spaces supported:
+
+- Decidim::ParticipatoryProcess
+- Decidim::Assembly
+
+To execute the task run:
+
+```
+bundle exec rake cdtb:participatory_spaces:add_content_blocks[manifest_name]
+```
+
+You can add multiple manifest names with this format:
+
+```
+bundle exec rake cdtb:participatory_spaces:add_content_blocks[['manifest_name_one manifest_name_two']]
+```
+
+Some examples
+```
+bundle exec rake cdtb:participatory_spaces:add_content_blocks[extra_data]
+
+bundle exec rake cdtb:participatory_spaces:add_content_blocks[['extra_data related_documents']]
+
```
### Upgrades:
#### Upgrade modules