Guest User

Untitled

a guest
Mar 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. @@ -41,10 +41,20 @@ class ContentController extends Controller {
  2. $this->dataRecord = $dataRecord;
  3. $this->failover = $this->dataRecord;
  4. parent::__construct();
  5. }
  6.  
  7. + /**
  8. + * Return the link to this controller, but force the expanded link to be returned so that form methods and
  9. + * similar will function properly.
  10. + *
  11. + * @return string
  12. + */
  13. + public function Link($action = null) {
  14. + return $this->data()->Link(($action ? $action : true));
  15. + }
  16. +
  17. //----------------------------------------------------------------------------------//
  18. // These flexible data methods remove the need for custom code to do simple stuff
  19.  
  20. /**
  21. * Return the children of a given page. The parent reference can either be a page link or an ID.
Add Comment
Please, Sign In to add comment