From 2b8f26cb3e2c16482d3bc13480ad141f193f5654 Mon Sep 17 00:00:00 2001 From: WebVPF <61043464+WebVPF@users.noreply.github.com> Date: Wed, 16 Feb 2022 18:05:14 +0200 Subject: [PATCH 1/3] Fix plugin structure --- plugin-registration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin-registration.md b/plugin-registration.md index c2a38400..ed612439 100644 --- a/plugin-registration.md +++ b/plugin-registration.md @@ -62,6 +62,7 @@ The following is an example of what most plugins would end up looking like when ┗ 📂 myauthor /* Author name */ ┗ 📂 myplugin /* Plugin name */ ┣ 📂 assets /* CSS, JavaScript and image assets for pages and components */ + ┣ 📂 components /* Components */ ┣ 📂 controllers /* Backend controllers */ ┣ 📂 lang /* Localization files */ ┃ ┗ 📂 en /* Specific locale folder */ @@ -92,6 +93,11 @@ The following is an example of what a complex plugin could look like when using ┃ ┗ 📂 scss ┣ 📂 behaviors /* Any custom behaviors provided by the plugin */ ┣ 📂 classes /* Any custom classes provided by the plugin */ + ┣ 📂 components /* Components frontend */ + ┃ ┣ 📂 record /* */ + ┃ ┃ ┗ 📜 default.htm /* */ + ┃ ┣ 📂 partials /* */ + ┃ ┗ 📜 Record.php /* */ ┣ 📂 config /* Configuration files */ ┃ ┗ 📜 config.php ┣ 📂 console /* Any custom CLI commands provided by the plugin */ From c43faf35dcf943e72f4815696c1edadb933bd38d Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 16 Feb 2022 10:21:35 -0600 Subject: [PATCH 2/3] Update plugin-registration.md --- plugin-registration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin-registration.md b/plugin-registration.md index ed612439..80b49c42 100644 --- a/plugin-registration.md +++ b/plugin-registration.md @@ -94,10 +94,10 @@ The following is an example of what a complex plugin could look like when using ┣ 📂 behaviors /* Any custom behaviors provided by the plugin */ ┣ 📂 classes /* Any custom classes provided by the plugin */ ┣ 📂 components /* Components frontend */ - ┃ ┣ 📂 record /* */ - ┃ ┃ ┗ 📜 default.htm /* */ - ┃ ┣ 📂 partials /* */ - ┃ ┗ 📜 Record.php /* */ + ┃ ┣ 📂 record /* Folder for the Record component's partials */ + ┃ ┃ ┗ 📜 default.htm /* The default partial that's rendered by the component */ + ┃ ┣ 📂 partials /* Any partials shared by more than one component in the plugin */ + ┃ ┗ 📜 Record.php /* Record Component that probably handles retrieving and displaying a single record */ ┣ 📂 config /* Configuration files */ ┃ ┗ 📜 config.php ┣ 📂 console /* Any custom CLI commands provided by the plugin */ From 2a4f6951c85325674d0c35cf2b2037674ddf6f11 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 16 Feb 2022 10:22:00 -0600 Subject: [PATCH 3/3] Update plugin-registration.md --- plugin-registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-registration.md b/plugin-registration.md index 80b49c42..700deb61 100644 --- a/plugin-registration.md +++ b/plugin-registration.md @@ -62,7 +62,7 @@ The following is an example of what most plugins would end up looking like when ┗ 📂 myauthor /* Author name */ ┗ 📂 myplugin /* Plugin name */ ┣ 📂 assets /* CSS, JavaScript and image assets for pages and components */ - ┣ 📂 components /* Components */ + ┣ 📂 components /* Frontend components */ ┣ 📂 controllers /* Backend controllers */ ┣ 📂 lang /* Localization files */ ┃ ┗ 📂 en /* Specific locale folder */