kalebheitzman / grav-plugin-datetools Goto Github PK
View Code? Open in Web Editor NEWThis plugin provides date tools to twig inside of Grav CMS.
License: MIT License
This plugin provides date tools to twig inside of Grav CMS.
License: MIT License
New GRAV Beta + DateTools = See Attachment
I'm looking to use the new Events plugin for GRAV. I installed the required Datetools but got this error under the latest version of GRAV Beta. I have not made any adjustments at this point, but had to disable the plugin in order to continue developing the rest of the site.
Suggestions?
Brian U.
Lists 1.0.1, otherwise it's not listed as update in the GPM ๐
require_once(): Failed opening required '/home/~~~/public_html/docs2/user/plugins/datetools/classes/../vendor/autoload.php' (include_path='.:/usr/local/php56/pear')
Hello, when i enable this plugin i get this error
Whoops\Exception\ErrorException thrown with message "Call to a member function get() on a non-object"
Stacktrace:0 Whoops\Exception\ErrorException in /home/2011/11timoransky/www/grav/user/plugins/datetools/classes/datetools.php:65
When i disable it, everything works fine. Can you help me?
$this->config = self::$grav['config'];
The hook onTwigSiteVariables is fired after Twig template ( getgrav/grav#1163 ).
It's enough to change the name of the hook to onTwigPageVariables and everything works like a charm:
$this->enable([
// 'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
'onTwigPageVariables' => ['onTwigSiteVariables', 0]
]);
It would be really cool to be able to have a look into the backyard of your demo site (as git repo, or dropbox/owncloud/whatoever file server).
Somehow I do not get your cool plugin running. It does not recognize the events that I added to the frontmatter of the pages of the grav-skeleton-blog-site. Therefore it would be cool to have something to play with that already works, or see how the working stuff is built behind the scenes...
Thanks for considering.
Jan
Issue: exception in datetools.php after upgrade from grav 1.0.10 to grav 1.1.1.
Reason: data member grav config not initialized.
Description: Exception occurs after upgrading to grav 1.1.1, updating plugins and clearing the cache.
Reproducible: 100%.
/Library/WebServer/Documents/ami/user/plugins/datetools/classes/datetools.php
/**
* Construct
*/
public function __construct()
{
// get the config
$this->config = self::$grav['config'];
// date format
$this->dateFormat = $this->config->get('plugins.datetools.dateFormat.default');
// get today
$this->now = $this->now();
// initialize processing vars
$this->initProcessingVars();
// initialize common dates
$this->initCommonDates();
}
Arguments
"Call to a member function get() on a non-object"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.