From 6df589b14a06f801772876addd1394f0a4436f60 Mon Sep 17 00:00:00 2001
From: rdrew <rdrew@upei.ca>
Date: Mon, 17 Mar 2025 12:20:50 -0300
Subject: [PATCH] [nb] Edit: Olivero Sub-theme commands.md

---
 Olivero Sub-theme commands.md | 41 ++++++++++++++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

diff --git a/Olivero Sub-theme commands.md b/Olivero Sub-theme commands.md
index 4633a5c..21b12e5 100644
--- a/Olivero Sub-theme commands.md	
+++ b/Olivero Sub-theme commands.md	
@@ -1 +1,40 @@
-Olivero Sub-theme commands
+#Olivero Sub-theme commands
+
+##Clone the old theme 
+
+Clone the theme and remove the .git file
+`rm -rf .git`
+
+Swap old themename with new:
+`rename 's/livesimagined/livesvoices/g' **/*.* -v`
+
+Replace theme names within the files:
+`perl -pi -w -e 's/livesimagined/livesvoices/g;' **/*.*`
+
+##Clone the block placement
+
+do a fresh export of the configs with drush 
+`drush config:export`
+
+copy all of the `block.block.*.yml` files to a temp dir outside of the sync dir and 
+remove the configs for the ones that are not the islandora related
+
+remove the uuid at the top of each of these files: 
+`sed -i '1d'` * (this removes the first line of each file which is the uuid)
+
+change the theme defined in each: 
+`perl -pi -w -e 's/olivero/vre2024/g;' **/*.*`
+
+confirm block region for placement and swap if required:
+`perl -pi -w -e 's/sidebar/sidebar_second/g;' **/*.*`
+
+the block ID's need to be unique in these new configs so prepend the old ID's with the themename:
+`perl -pi -w -e 's/^id: /id: vre2024_/g;' **/*.*` (there are a number of id's in each file but the one we are looking for is the only one that starts a line with no tabs or indents, this command targets those)
+
+copy these files back into the sync folder and run:
+`drush config:import`
+
+*You should now see the blocks in the block layout for the new theme but don't make it default yet.
+
+*Manually configure the Display contexts so the viewers are placed in the new theme
+