Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Markus Member
@Markus · Joined 6 years ago · 34 posts · 8 topics · 2 reputation
Badges
Recent posts
-
Using URL parameters in custom plugin via $_GET does not work
· 4 years ago
I'm sorry for any lack of knowledge. 😉
-
Using URL parameters in custom plugin via $_GET does not work
· 4 years ago
You tried to use Grav::instance() under Grav\Plugin namespace. Okay. I habe not crawled the complete learn.getgrav.org - but that colours the white spot where the error-message path came from. Pretty
-
Using URL parameters in custom plugin via $_GET does not work
· 4 years ago
Thanks, Karmalakas for staying tuned. After looking at my comments again, I see that I did not explain from the very first. At the beginning I had no line use Grav\Plugin\Grav; in my code. Then the er
-
Using URL parameters in custom plugin via $_GET does not work
· 4 years ago
A bit of nitpicking: Details are always important. the Twig extension should return a value instead of echo -ing a value. I am just playing around in a quick way. But I will keep that in mind. Wha
-
Using URL parameters in custom plugin via $_GET does not work
· 4 years ago
Thanks for your input! Feeling a bit dumb at the moment, because that simple isset solved the problem with $_GET: if(isset($_GET['myvariable'])) echo htmlspecialchars($_GET['myvariable']); else echo
-
Using URL parameters in custom plugin via $_GET does not work
· 4 years ago
Hi folks, I made up an example plugin, which is embedded via twig in a pages content via {{ example() }} I have the following lines of code: public function exampleFunction() { global $_GET; echo html
-
Order collection by 'custom' or 'manual' in Twig
· 4 years ago
Hi @pamtbaau, thank you for your further investigations. Well, it seems there has to be an additional comment within the learning-section then.... - Ah, wanted to paste a link in here and recognizing,
-
Order collection by 'custom' or 'manual' in Twig
· 4 years ago
Hi @Paamtbau, thanks a lot for your comment! That was exactly what I needed and ordering by manual/order_manual works fine. 😀 the use-case of manual and its added value over custom . I might have th
-
Order collection by 'custom' or 'manual' in Twig
· 4 years ago
Hi @Paamtbau, maybe I am dumb, but the docs are - in my opinion - not sufficient enough to get the point how to use that. It might be as easy as cooking water, but I am missing an example. So, my case
-
Order collection by 'custom' or 'manual' in Twig
· 4 years ago
Thank you @paamtbau. Yes, close... your code works - but I am wondering, that your code is working although there is a comma after the last element subfolder_b ... this often throws an error. Is there