Last active
August 24, 2020 20:23
-
-
Save virtual/c1d4c589e96c08dd3bd46b07ae2bb345 to your computer and use it in GitHub Desktop.
Suggested Find/Replace for updating templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Can't match on full string, some have site tag, some don't | |
| F: | |
| "/_resources/xsl/interior.xsl" | |
| R: | |
| "/_resources/update20/xsl/interior.xsl" | |
| # Not all pages have all old layout options, delete all options first, then delete the parameter | |
| REGEX: | |
| F: | |
| (<option value="audience" selected="(false|true)">Audience Page</option>|<option value="department" selected="(false|true)">Department Page</option>|<option value="secondary" selected="(false|true)">Landing Page</option>|<option value="quaternary" selected="(false|true)">Quaternary Page</option>|<option value="interior" selected="(false|true)">Interior</option>|<option value="default" selected="(false|true)">Default</option>|<option value="single-news" selected="true">Single News Article</option>) | |
| R: | |
| empty | |
| REGEX | |
| F: | |
| <parameter section="Page Properties:" name="layout" type="select" group="(Everyone|Admin-Ctrl)" prompt="Page Layouts" alt="Please select an interior page layout.">[\s]*</parameter> | |
| R: | |
| empty | |
| F: | |
| <parameter section="Featured Image - Only For Audience or Department Page Types" name="feature" | |
| R: | |
| <parameter section="Featured Image" name="layout-hero" group="Everyone" type="checkbox" prompt="Show Hero" alt="Check to show the featured image hero region."><option value="show" selected="false">Yes</option></parameter><parameter name="feature" | |
| REGEX | |
| F: | |
| ("Choose an image for the feature image. It must be exactly 1260 X 540 pixels."|"Choose an image for the feature image") | |
| R: | |
| "Choose an image for the feature image (2500w x 769h)" | |
| F: | |
| <parameter name="feature-alt" | |
| R: | |
| <parameter name="feature-mobile" type="filechooser" path="/images" group="Everyone" prompt="Mobile Image (optional)" alt="Choose the mobile size for the feature image (768w x 236h)"></parameter><parameter name="feature-alt" | |
| # For timeline pages, add all options | |
| REGEX: | |
| F: | |
| <parameter section="Page Properties:" name="layout" type="select" group="(Everyone|Admin-Ctrl)" prompt="Page Layouts" alt="Please select an interior page layout.">[\s]*<option value="timeline" selected="true">Timeline Page</option>[\s]*</parameter> | |
| R: | |
| <parameter section="Featured Image" name="layout-hero" group="Everyone" type="checkbox" prompt="Show Hero" alt="Check to show the featured image hero region."><option value="show" selected="false">Yes</option></parameter><parameter name="feature" type="filechooser" path="/images" group="Everyone" prompt="Select an Image:" alt="Choose an image for the feature image (2500w x 769h)"></parameter><parameter name="feature-mobile" type="filechooser" path="/images" group="Everyone" prompt="Mobile Image (optional)" alt="Choose the mobile size for the feature image (768w x 236h)"></parameter><parameter name="feature-alt" type="text" group="Everyone" prompt="Enter Alt:" alt="Please enter in the alt text for the feature image"></parameter> | |
| # Delete all greybox options first, then replace the parameter with the new options | |
| REGEX: | |
| F: | |
| (<option value="hidden" selected="(false|true)">Disable</option>|<option value="static" selected="(false|true)">Enable User Input Content</option>|<option value="dynamic" selected="(false|true)">Enable Dynamic Input Content</option>) | |
| R: | |
| empty | |
| REGEX | |
| F: | |
| <parameter section="Grey Box Content" name="gb-enable" type="select" group="Everyone" prompt="(Media Box Content:|Grey Box Content:)" alt="Page Applicable, choose to enable/disable grey box feature content.">[\s]*</parameter> | |
| R: | |
| <parameter section="Layout" name="layout-left-nav" group="Everyone" type="checkbox" prompt="Show Left Navigation" alt="Check to show the left navigation."><option value="show" selected="true">Yes</option></parameter><parameter name="layout-fullwidth" group="Everyone" type="checkbox" prompt="Show Full-Width Content Region" alt="Check to show full-width content editable region."><option value="show" selected="false">Yes</option></parameter> | |
| Remove empty grey-box divs. Manually remove/update any remaining by searching pages for >label="grey-box"< | |
| REGEX | |
| F: | |
| <ouc:div label="grey-box" group="Everyone" button-text="Grey Box Content" break="break">[\s]*<ouc:editor csspath="/_resources/ou/editor/home.css" cssmenu="/_resources/ou/editor/styles.txt" wysiwyg-class="grey-box"/>[\s]*</ouc:div> | |
| R: | |
| empty | |
| REGEX | |
| Match on </document> ignore props.pcfs | |
| F: | |
| </ouc:div>[\s]*</document> | |
| R: | |
| </ouc:div><ouc:div label="fullwidthcontent" group="Everyone" button-text="Full-Width Content" break="break"><ouc:editor csspath="/_resources/update20/ou/editor/wysiwyg.css" cssmenu="/_resources/update20/ou/editor/styles.txt" wysiwyg-class="maincontent"/><p>Content</p></ouc:div></document> | |
| F: | |
| /_resources/ou/editor/home.css | |
| R: | |
| /_resources/update20/ou/editor/wysiwyg.css | |
| F: | |
| /_resources/ou/editor/styles.txt | |
| R: | |
| /_resources/update20/ou/editor/styles.txt | |
| Cleanup: | |
| Search for: | |
| - <ul id="timeline"> | |
| - label="grey-box" | |
| Unsupported updated snippets/components? | |
| - admissions-aid/contact-tiles: Image with Caption - Small COMPONENT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment