Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Finding links across whole site


Go to End


2 Posts   782 Views

Avatar
HannahC

Community Member, 1 Post

22 September 2016 at 12:25pm

Hi, I'm new to Silverstripe.
I was wondering if it was possible to find all mentions of a URL within a website. Or is it just a matter of using the site search or manually going through each page?

Avatar
ZarockNZ

Community Member, 17 Posts

18 October 2016 at 12:01pm

Depending on the complexity of the site, you might be able to find most of the mentions of the URL in the SiteTree table in the database. The Content column contains the page content, so if the site is pretty basic where the content of each page is just stored there, a simple query on this might do the trick...

SELECT * FROM SiteTree WHERE Content LIKE '%theurl.com%';