sheadawson / silverstripe-shortcodable

Provides a GUI for CMS users to insert Shortcodes into the HTMLEditorField + an API for developers to define Shortcodable DataObjects and Views.
MIT License
48 stars 36 forks source link

Modifications for filtering based on related pageID #60

Closed thepearson closed 7 years ago

thepearson commented 7 years ago

In our getShortcodableRecords() function we needed a reference to the current PageID, which due to the singleton nature of the way that function is called doens't exist. This PR might be useful to others?