search and replace href

Eric's Avatar

Eric

07 Jun, 2016 07:31 PM

We have many links within our cms that contain a hard coded year, e.g. 2014-2015, does functionality exist within cascade server to search and replace throughout the entire cms?
For example, an href exists that was created in the wysiwyg editor that links to:
http://unomaha.smartcatalogiq.com/en/2014-2015/Graduate-Catalog/Gra...
We'd like to search for
"http://unomaha.smartcatalogiq.com/en/2014-2015/" and replace it with
"http://unomaha.smartcatalogiq.com/en/2015-2016/" so the href would end up being:
http://unomaha.smartcatalogiq.com/en/2015-2016/Graduate-Catalog/Gra...
Thanks!

  1. 1 Posted by Wing Ming Chan on 15 Jun, 2016 01:39 PM

    Wing Ming Chan's Avatar

    Hi Eric,

    Would you consider web services?

    Wing

  2. 2 Posted by Ryan Griffith on 15 Jun, 2016 03:27 PM

    Ryan Griffith's Avatar

    Hi Eric,

    Search and replace does span across the system and you should be able to search for that specific URL and replace it with the new term.

    You can try testing by entering http://unomaha.smartcatalogiq.com/en/2014-2015 in both the Search and Replacement term fields to see if you get results.

    Please let me know if you have any questions.

    Thanks!

  3. 3 Posted by Eric on 15 Jun, 2016 04:04 PM

    Eric's Avatar

    Thanks Ryan, that looks like that may just work. I'll test this out in one of our non-prod instances over the next couple of days.

    Wing, I would definitely consider using web services as well. Would you be able to give me a starting script to using your library to do this?

  4. 4 Posted by Wing Ming Chan on 15 Jun, 2016 05:05 PM

    Wing Ming Chan's Avatar

    You may want to look at Basic Setup to get started. You may also want to check out the Web Service Courses and Recordings of the hangouts.

    Wing

  5. Tim closed this discussion on 13 Jul, 2016 05:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac