All Projects → bnomei → kirby3-bolt

bnomei / kirby3-bolt

Licence: MIT license
Kirby 3 Plugin for a fast Page lookup even in big content trees

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kirby3-bolt

kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (-16.67%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
k3-image-clip
Visually crop images with a handy image editor directly inside the panel
Stars: ✭ 38 (+58.33%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby-minify-html
Enable minify HTML output for Kirby 3
Stars: ✭ 27 (+12.5%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-redirects
Setup HTTP Status Code Redirects from within the Kirby Panel
Stars: ✭ 14 (-41.67%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-doctor
Plugin to check health of your CMS installation
Stars: ✭ 19 (-20.83%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-ray
Helper tool that enables ray on all the extendable methods.
Stars: ✭ 17 (-29.17%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
komments
A Kirby 3 comment plugin
Stars: ✭ 28 (+16.67%)
Mutual labels:  kirby3, kirby3-plugin
kirby3-similar
Find similar collection items based on similarity
Stars: ✭ 16 (-33.33%)
Mutual labels:  kirby3, kirby3-plugin
k3-panel-view-extended
Quick fix for some missing features in the panel
Stars: ✭ 24 (+0%)
Mutual labels:  kirby3, kirby3-plugin
reporter-for-kirby
Gather feedback directly out of the Panel!
Stars: ✭ 27 (+12.5%)
Mutual labels:  kirby3, kirby3-plugin
Moodle Downloader 2
A Moodle downloader that downloads course content fast from Moodle (eg. lecture pdfs)
Stars: ✭ 118 (+391.67%)
Mutual labels:  fast, content
Smart Array To Tree
Convert large amounts of data array to tree fastly
Stars: ✭ 91 (+279.17%)
Mutual labels:  fast, tree
Eix
eix can access Gentoo portage ebuild information and description very quickly (using a local cache). It can also be used to access information on installed packages, local settings, and local and external overlays, and informs about changes in the tree
Stars: ✭ 126 (+425%)
Mutual labels:  fast, tree
avo
Ruby on Rails application building framework
Stars: ✭ 907 (+3679.17%)
Mutual labels:  fast
react-org-tree
😃 a simple organization tree component based on react
Stars: ✭ 72 (+200%)
Mutual labels:  tree
mocha-simple-html-reporter
Simple HTML reporter for Mocha
Stars: ✭ 16 (-33.33%)
Mutual labels:  fast
cheap-ruler-cpp
Fast approximations for common geodesic measurements
Stars: ✭ 32 (+33.33%)
Mutual labels:  fast
vue2-data-tree
A tree that data is lazy loaded. Support dragging node, checking node, editing node's name and selecting node.
Stars: ✭ 41 (+70.83%)
Mutual labels:  tree
comment tree
Render comment tree like facebook comment - reply
Stars: ✭ 37 (+54.17%)
Mutual labels:  tree
gneiss
compositional data analysis toolbox
Stars: ✭ 48 (+100%)
Mutual labels:  tree

Mainly intended to be used with now deprecated AutoID plugin. Use my Boost plugin instead since that inherited lots of Bolts logic.
 

Kirby 3 Bolt

Release Build Status Coverage Status Maintainability Twitter

Kirby 3 Plugin for a fast Page lookup even in big content trees

Commercial Usage


Support open source!

This plugin is free but if you use it in a commercial project please consider to sponsor me or make a donation.
If my work helped you to make some cash it seems fair to me that I might get a little reward as well, right?

Be kind. Share a little. Thanks.

‐ Bruno
 
M O N E Y
Github sponsor Patreon Buy Me a Coffee Paypal dontation Hire me

Installation

  • unzip master.zip as folder site/plugins/kirby3-bolt or
  • git submodule add https://github.com/bnomei/kirby3-bolt.git site/plugins/kirby3-bolt or
  • composer require bnomei/kirby3-bolt

Why is Bolt faster and how much?

Because it does not scan each directory and file but skips as many of them as possible. Once you use the Page-Object in your code Kirby will lazily load uninitalized properties.

How much is gained depends on how many have been skipped. You can in average expect it to be n-times faster by the average folder count in your content tree. Example: 1000 pages in 10 folders 3 levels deep: 10*10*10. If you need a page from the third level Kirby would have to create a page index of 10+10+10=30 pages but Bolt will create only 3.

Usage

// lets assume 1000 pages: 10*10*10
$id = 'this-page-has/ten-siblings/in-every-subfolder';
$page = page($id); // kirby core
$page = bolt($id); // ~10x faster lookup

// can lookup beginning at a certain page as well
$page = $somePage->bolt($idInTree);

// it's even faster when you look up based on a directory name
$page = bolt('1_this-page-has/5_ten-siblings/3_in-every-subfolder');

Works great with

Alternative

Related Plugins

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

Credits

based on idea in

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].