Commit Graph

16 Commits

Author SHA1 Message Date
Florian Thoma 5e99263c33 add namespace to config, fixes #63 2023-06-22 15:53:53 -07:00
Chris Penny f9304b3441 Move templates into JonoM namespaces 2023-02-27 20:44:46 -08:00
Chris Penny 71a3ce1327 Add support for Silverstripe 5 2023-02-27 20:44:46 -08:00
Callan Stretton aaa76deba0 added null coalescing operator to fix deprecation error 2022-11-22 16:10:08 -08:00
Ed Chipman 507632fd39
Improved flexibility around enabling better navigator and edit link (#56)
* Added ability for extension to be applied to non-SiteTree objects by moving the `isAPage()` check in to the `showBetterNavigator()` method, which can be overidden.
* Added ability for edit link to be enabled via a permission code check, configurable on a per-controller basis.
* Switched to using getField/setField for caching whether better navigator should be displayed or not.
* Adjusted readme around using custom logic to control the display of the navigator.
2022-07-14 13:08:08 -07:00
Howard Grigg 92416eceef
Fix Edit link not defined if no CMS access (#57)
In the situation that a user has draft site access but no CMS access they received a '$editLink not defined error'. This corrects that by defining it as false.
2022-07-06 10:51:07 -07:00
James Cocker f55bcdadd8
Adds ability to override "Edit in CMS" link (#55)
Adds ability to override the "Edit in CMS" link, e.g. to make it jump to editing a DataObject, instead of the page.
2021-09-09 13:54:01 -07:00
3Dgoo 96558495be
New: Position and translucency options (#52) 2020-12-14 14:10:20 -08:00
Andreas Lang 19eb60bd62
Added i18n support (#48) 2020-11-20 15:10:34 -08:00
Jonathon Menz 02e84d7b99 Fix conditional rendering
Ensure scripts and css are only loaded with navigator markup is present, and support HTTPResponse as input. Fixes #46
2020-08-27 11:43:54 -07:00
Bram de Leeuw da6e75c1b1 Fix injection on Form posts
In use with Silvershop, a form post from the AddProductForm would pass the form trough the `afterCallActionHandler` as the `$result`. This causes the `getValue` to error. By checking if the result is an instance of `DBHTMLText` this error can't happen anymore.
2019-09-04 11:01:10 -07:00
Jonathon Menz 01b41ac1a0 Fix logout form return destination 2019-08-23 11:00:52 -07:00
Aaron Carlino a5e3f0d88f NEW: Auto-injection into template (#43)
* `$BetterNavigator` no longer required in template
* Uses locally scoped render for navigator
* Added shouldShowBetterNavigator() method
2019-08-23 10:10:19 -07:00
wernerkrauss db3c7d8e39 Fix potential "undefined index" notice (#41)
CMSLink might not be set on RedirectorPage for example
2018-04-06 15:41:08 -07:00
Jonathon Menz bfa6a310b6 Update login functions for SS4
Fixes #35
2017-11-20 11:30:11 -08:00
Andrew Aitken-Fincham 79a585eda4 Update to be compatible with SS4 (#27)
plus some code tidying
2017-04-24 10:17:09 -07:00