Last active
December 3, 2022 21:26
-
-
Save rotassator/400af5f8e5a3b2e60c42 to your computer and use it in GitHub Desktop.
SilverStripe: generate url segment from title string
This file contains 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
<?php | |
// generate a url segment | |
$this->Slug = SiteTree::create()->generateURLSegment($this->Title); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!