Commit Graph

57 Commits

Author SHA1 Message Date
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
Jonathon Menz
d037dc8ebd Added sponsorship info 2020-05-27 10:02:22 -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
1c61f86f36 Update URL debugging tools
* Only show if in dev mode
* Updated collection to match what is in docs
2019-08-23 11:00:52 -07:00
Jonathon Menz
01b41ac1a0 Fix logout form return destination 2019-08-23 11:00:52 -07:00
Jonathon Menz
4aed34ddb0 Updated ReadMe to in line with v5 changes
* script and CSS are hard-coded now
* updated external debugging tools recommendation
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
Ed Chipman
cd9c2083c8 Conversion to a Vendor Module (#40) 2018-03-20 12:24:06 -07:00
Jason Korth
39d1aed274 Don't upgrade logout link if form doesn't exist (#39)
Fixes #38
2018-03-19 15:15:46 -07:00
Jonathon Menz
bfa6a310b6 Update login functions for SS4
Fixes #35
2017-11-20 11:30:11 -08:00
Jonathon Menz
e23a257b37 Remove source map
Fixes #29
2017-11-20 11:28:52 -08:00
Michal Kleiner
132a98be68 Support async script loading
Use addEventListener to schedule BN initialisation only if document is still loading (#34)
2017-11-20 09:58:24 -08:00
Jonathon Menz
2a9df8695d Fix composer autoload error 2017-04-24 10:33:16 -07:00
Andrew Aitken-Fincham
79a585eda4 Update to be compatible with SS4 (#27)
plus some code tidying
2017-04-24 10:17:09 -07:00
Jonathon Menz
63f16e4054 Correct heading formatting 2017-03-22 16:39:21 -07:00
3Dgoo
4ad75cc564 Fix links when site is in a sub url (#28) 2017-03-22 16:34:49 -07:00
Jonathon Menz
58fe5c8dd6 Function without <base> tag
Closes #23
2016-07-22 15:26:01 -07:00
Jonathon Menz
1a02603fb4 Removed redundant config declaration
Still using ‘BetterNavigator’ namespace for config despite class name change
2016-07-22 14:55:19 -07:00
Mell
da14f4c614 FIX: Now compatible with PHP7
Changed name of extension to be compatible with PHP7, due to conflict with method name
2016-07-22 14:36:16 -07:00
Jono Menz
e0a82db467 Merge pull request #22 from sb-relaxt-at/member-unique-identifier
Added support for a different unique field of Member in developer config
2016-02-10 09:31:37 -08:00
Stephan Bauer
59ca054ba6 Added support for a different unique field of Member to be used in developer config 2016-02-10 00:04:12 +01:00
Jonathon Menz
a050d926de Better permission management
Closes #11
2015-12-17 19:34:13 -08:00
Jonathon Menz
7c78a7e2ed Better support for archived state 2015-12-17 17:25:04 -08:00
Jonathon Menz
068c4cf26c Style tweaks 2015-12-17 17:19:11 -08:00
Jonathon Menz
23c8bc6de9 PSR-2 conversion 2015-12-17 15:58:50 -08:00
Jono Menz
fce6ffa85e Merge pull request #18 from helpfulrobot/add-standard-editorconfig-file
Added standard .editorconfig file
2015-12-17 15:16:34 -08:00
helpfulrobot
1c34af6b3e Added standard .editorconfig file 2015-12-18 07:15:21 +13:00
Jono Menz
4f92851547 Merge pull request #17 from 3Dgoo/feature/escape-ampersands
Escaping ampersands in link hrefs
2015-07-31 09:01:03 -07:00
3Dgoo
a49c3cd34a Escaping ampersands in link hrefs
Making links valid html by escaping ampersands in link hrefs.
2015-07-31 09:34:51 +09:30
Jono Menz
d606d8c841 Merge pull request #15 from anselmdk/ie8-compat
IE8 compatibility
2015-03-03 09:11:07 -08:00
Anselm Christophersen
67ccc1c38f IE8 Compatibility 2015-03-03 09:53:31 +01:00
Jonathon Menz
fdd895ef9d Separated Page and BetterNavigator template data
Fixes #8
2014-11-22 10:28:06 +10:30
Jonathon Menz
2251008ae4 Clockwork shout-out 2014-11-22 09:26:02 +10:30
Jonathon Menz
7ff981c253 Optional include tweaks
Fixes #13
2014-11-22 09:03:25 +10:30
Jonathon Menz
c5cc3aa7c5 Update ReadMe 2014-11-06 16:55:59 +10:30
Jonathon Menz
0fff9341e7 Add an include for extra content 2014-11-06 16:55:40 +10:30
Jono Menz
a32ba4ad8e Merge pull request #12 from 3Dgoo/feature/template-extension
Adding an include template for extra dev tools to be added.
2014-11-06 16:18:58 +10:30
bob (Plastyk)
626127e9d3 Adding an include template to allow for extra dev tools to be added by a user without needing to override the whole BetterNavigator.ss template. 2014-11-05 14:11:35 +10:30
Jono Menz
8329322693 Simplified transform css 2014-10-26 12:09:46 +10:30
Jono Menz
3b53e7b36a Merge pull request #7 from jedateach/patch-1
Check if dataRecord is a SiteTree to prevent errors
2014-10-08 10:37:13 -06:00
Jono Menz
36d843409c Tabs instead of spaces 2014-10-07 09:38:32 -06:00
Jono Menz
5c687b825f Enable scrolling
Ensure all buttons are accessible on short windows
2014-10-07 09:36:56 -06:00
Jeremy Shipman
90ae32dc51 Check if dataRecord is a SiteTree to prevent errors 2014-10-06 15:19:56 +13:00
Jono Menz
8fedcf0c21 Fixed cookie path for menu state
Was saving separate collapsed/open menu state for each directory
2014-10-03 13:01:32 -06:00
Jono Menz
519555838f Merge pull request #5 from jedateach/pr/relative-links
FIX: Make links relative
2014-09-11 14:21:05 -07:00
Jeremy Shipman
f2d84772c2 FIX: Make links relative
Some websites run in subfolders.
2014-09-08 13:55:49 +12:00
jonom
55fed41ccf Merge pull request #4 from jonom/pr/2
Flush clarification
2014-08-25 21:09:49 +09:30
Jono Menz
34d7de80a3 Flush clarification
Removed flush=all as it is undocumented and appears it will be removed
post SS3.1.6 in favour of flushing everything using flush=1. Added
titles to links attempting to explain flush functions.
2014-08-25 21:08:30 +09:30
jonom
b342515772 Merge pull request #3 from jonom/pr/2
Clean up
2014-08-25 20:39:43 +09:30