1 changed files with 40 additions and 1 deletions
@ -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 |
||||||
|
|
||||||
|
Loading…
Reference in new issue