Comments (4)
Great π
from kirby-calendar-plugin.
What does <?php var_dump($page->calendar()->yaml()) ?>
print?
from kirby-calendar-plugin.
It prints
array(0) { }
Is it maybe because I'm using the calendar not on the calendar template?
I'm using it on a different site. So maybe the method can't find a page named "calendar".
from kirby-calendar-plugin.
I think I got it:
I forgot to pass the informations to the snippet and I edited the line to find the correct calendar.
<?php $calendar = calendar($site->find('calendar')->calendar()->yaml()); ?>
<?php
snippet('calendar-table', array(
'calendar' => $calendar,
'fields' => array(
'summary' => l::get('title'),
'description' => l::get('description')
)
));
?>
I think it works now!
from kirby-calendar-plugin.
Related Issues (20)
- Switch to camel case
- Kirby-like event field accessors HOT 1
- Recurring events HOT 4
- Load language files automatically HOT 1
- Use cross platform directory separators HOT 1
- Upper case field names are incompatible with the panel structure field
- Demo? HOT 3
- βToo many keysβ error since Kirby v2.2.2 release HOT 3
- Where to place snippets and files HOT 1
- end date if no time is given HOT 2
- Individual .ics files HOT 3
- Google cal, Outlook HOT 5
- Lass uns zusammenarbeiten HOT 3
- Example for langkit HOT 1
- Hide end date (but show time) if same as start date HOT 2
- Allways Displaying no events HOT 5
- Composer support? HOT 2
- How can I set this up in the panel? HOT 4
- [K4] 4.0 Compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-calendar-plugin.