Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Jeffrey Bennett Member
@Jrbdog · Joined 6 years ago · 12 posts · 3 topics · 0 reputation
Badges
Recent posts
-
Extending class from another plugin
· 5 years ago
Ok, so nothing special is actually needed. I created a Base and Child plugin. Ended up not doing anything with autoloader, didn't require any files. I simply extended the Base plugin. It worked. In my
-
Extending class from another plugin
· 5 years ago
Yes, changing the name of the parent class worked. However, it doesn't seem to be actually extending the class. If you change the child class to extend Plugin your echos still echo. I think you have t
-
Extending class from another plugin
· 5 years ago
Autoload does appear to be working. I think the problem is that the autoload() function is inside the child class. It works when I include autoload php for the class declaration.
-
Extending class from another plugin
· 5 years ago
I already tried creating a skeleton parent and child plugin and went through the steps you said. That didn't work either. Could it have something to do with the local server it's running on?
-
Extending class from another plugin
· 5 years ago
I tried doing what you did and got the same error. I eventually got it working with [code] require './user/plugins/lightslider/lightslider.php'; class MyPlugin extends LightsliderPlugin { } [/code]
-
Extending class from another plugin
· 5 years ago
I'm trying to add some functionality to the Lightslider plugin by creating a plugin that extends Lightslider. I'm doing this the same way as you would create a child theme. Everything works except for
-
Multiple domains, 1 server
· 6 years ago
I think this is a question better targeted at your host.
-
Path to page folder in <img> tag?
· 6 years ago
Grav added syntax to resize images in Markdown. You can read how to do it in the documentation.
-
Html different on server vs locally
· 6 years ago
I've been making a site locally using Laragon and just uploaded it to my host. When I did that, the styling of my site's header changed. My heading code: {% set splitTitle = site.title|split("") %} {
-
Adding 'user/templates' path from themes
· 6 years ago
I'm still new to Grav and Twig, but I'm guessing there's a file somewhere that tells Grav where to look for templates. It's probably not a good idea to edit that directly. I can think of two solutions