Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Daniel Member
@danielkoptak · Joined 7 years ago · 11 posts · 7 topics · 0 reputation
Badges
Recent posts
-
Empty header/frontmatter (maximum file size exceeded?), move header content to raw_content
· 4 years ago
I have the source data for the faq in the header. FAQ Everything works fine until a certain number of characters are exceeded.
-
Empty header/frontmatter (maximum file size exceeded?), move header content to raw_content
· 4 years ago
I have a file that has a large amount of data in the header. The file size is 1 052 717 bytes, If I try to save the file, the header is deleted and moved to the content. However, just delete a singl
-
How to get processed content from a modular page in a custom plugin
· 4 years ago
Hello, I would like to append modular page content in PHP by: public function onPagesInitialized(Event $e) { if ($this->isAdmin()) { $grav = Grav::instance();
-
How to display a 404 error for a page that is not translated
· 5 years ago
How can I redirect an untranslated page to a 404 error? languages: supported: - en - cs - sk default_lang: null include_default_lang: false include_default_lang_file_extension: tr
-
Call dump() inside onFlexObjectAfterSave
· 5 years ago
How can I call the dump () function inside the onFlexObjectAfterSave () function? public static function getSubscribedEvents() { return [ 'onFlexObjectAfterSave' => ['onFlex
-
How get all pages in plugin for admin
· 5 years ago
all my code looks like this: <?php namespace Grav\Plugin; use Grav\Common\Plugin; use Grav\Common\Page\Collection; use Grav\Common\Uri; use Grav\Common\Grav; class dataJsonPlugin extends Plugin {
-
How get all pages in plugin for admin
· 5 years ago
@pamtbaau: $event['pages']; Ok, my fault, for me works: public function onPagesInitialized($event): void { $this->grav['admin']->enablePages(); $pages = $event['pages
-
How get all pages in plugin for admin
· 5 years ago
Hello, I'm creating my own plugin for working with data and it doesn't work for me to load an overview of all pages: public static function getSubscribedEvents() { return [ 'on
-
Wrong redirect after submitting modular form
· 7 years ago
Hello, live demo: Live demo If I don't fill in anything, I just click the button "Odeslat": everything is fine, you will receive a notification... However, if I click the button "Odeslat" again, with
-
How do I display a page in only one language in a multilingual site?
· 7 years ago
Hello, thank you for the answer but is there a solution for a user who does not have access to the source files?