Hello,
I have one little question.
If I have a sitetree id, is there any internal function which builds with the help of the id the absolute url and returns it?
Thank you for your help.
Bez
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hello,
I have one little question.
If I have a sitetree id, is there any internal function which builds with the help of the id the absolute url and returns it?
Thank you for your help.
Bez
How about...
$doSitetree = DataObject::get_by_id('SiteTree',$iSiteTreeID);
$strLink = $doSitetree->Link();
Hey,
thank you :-)