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.

Archive /

Our old forums are still available as a read-only archive.

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

Sub domains as links in HTML editor


Go to End


1476 Views

Avatar
Mat Weir

Community Member, 33 Posts

27 August 2007 at 4:11pm

Hi there,

I'm developing a site that uses sub-domains for particular pages.

I've used the "Use this page as the 'home page' for the following domains:" field to enter URIs such as subdomain.website.com.

I'd like it so that when the user creates a link to one of these pages, the editor inserts the URI from this field.

I think if it's at all possible, the change would need to be in sapphire/forms/TreeDropdownField.php, but I'm not sure.

Has anyone had experience doing this? Or can someone point me in that right direction?

Cheers