View more context

 

Matt Lang

Elsewhere I’ve gotten around this with Versioned::get_by_stage('MyPage', Versioned::LIVE)->byID($id)->Link() But because it’s a many_many relation I don’t easily have the ID of the related model. It’d be nice if there were something available like $myModel->MyRelatedPages()->first()->latestPublishedVersion()->Link()

lerni

I asked myself this a few times and ended up with something like:

  1. $pharsedURL = parse_url(...);
  2. $url = $pharsedURL['scheme'] .'://'. pharsedURL['host'] . $pharsedURL['path'];

natino45

Is there a way to prevent external JavaScript requirements with "&" converted to "&" ?

natino45

I'm trying to add Google maps places using Requirements

Gian

Hello friendly and warm people 🙂

firesphere

Would you please not crosspost, especially not in such a short timeframe?

guttmann

yes - disable SilverStripe\View\SSViewer::source_file_comments