olevik / grav-plugin-timeline Goto Github PK
View Code? Open in Web Editor NEWCreate and manage timelines in an ordered, hierarchical manner.
Home Page: https://olevik.net/staging/grav-skeleton-timeline/
License: MIT License
Create and manage timelines in an ordered, hierarchical manner.
Home Page: https://olevik.net/staging/grav-skeleton-timeline/
License: MIT License
Hello.
I use premium Typhoon theme based on Tailwind. I want to create Upcoming events
page like on the Metallica tour page:
Also Past events
page where events that have already passed are displayed (event date < today).
Questions:
https://www.metallica.com/2023-04-27-amsterdam-netherlands.html
https://www.metallica.com/2023-04-29-amsterdam-netherlands.html
It would be even cooler to copy-paste an existing event, and then change only the date in it.
Upcoming events
on a main page. The best for me is directly in markdown like [events]
shortcode, maybe modular part. What is the best way to do it?Just like truncate option I suggest a default behavior of not loading any images from the event page.
With option to show content images from event page.
for Example:
truncate_img: yes/no
This would be set in the timeline template page.
Note: where not talking about:
media_order: *.png image: *.png
Those work like intended.
Dear OleVik,
how to integrate timeline plugin into my active theme?
Hey there, i've tried following your guide at issue #4 and am using the latest grav v1.6.17 - admin v1.9.11, this plugin was installed through the interface on the latest release 1.3.1.
Grav was started using the router.php
on the latest Debian 10.2 on WSL.
When i add the timeline-event post as described, it throws a 500 error and does not save the page.
An exception has been thrown during the rendering of a template ("Undefined offset: 1").
The exception comes from grav-admin/user/plugins/admin/themes/grav/templates/pages.html.twig
line 305 {% if context.blueprints.fields %}.
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Undefined offset: 1")."
Stacktrace:
#82 Twig\Error\RuntimeError in grav-admin/user/plugins/admin/themes/grav/templates/pages.html.twig:305
#81 Whoops\Exception\ErrorException in grav-admin/user/plugins/timeline/timeline.php:237
#80 Grav\Common\Debugger:deprecatedErrorHandler in grav-admin/user/plugins/timeline/timeline.php:237
#79 Grav\Plugin\TimelinePlugin:getEventTypes in grav-admin/system/src/Grav/Common/Data/Blueprint.php:335
#78 Grav\Common\Data\Blueprint:dynamicData in grav-admin/system/src/Grav/Common/Data/Blueprint.php:119
#77 Grav\Common\Data\Blueprint:init in grav-admin/system/src/Grav/Common/Data/Blueprints.php:104
#76 Grav\Common\Data\Blueprints:loadFile in grav-admin/system/src/Grav/Common/Data/Blueprints.php:42
#75 Grav\Common\Data\Blueprints:get in grav-admin/system/src/Grav/Common/Page/Pages.php:595
#74 Grav\Common\Page\Pages:blueprints in grav-admin/system/src/Grav/Common/Page/Page.php:1103
#73 Grav\Common\Page\Page:blueprints in grav-admin/vendor/twig/twig/src/Template.php:702
#72 Twig\Template:getAttribute in grav-admin/cache/twig/ad/ad4e2c3bccdf700e272d439a3d6f828665f6844d5945c32ebc51b333f37a1c61.php:598
#71 __TwigTemplate_b05d67a47749907f423b0a40baa40a5071b42b457ad7eec8ead709e37b58e79d:block_content in grav-admin/vendor/twig/twig/src/Template.php:216
#70 Twig\Template:displayBlock in grav-admin/cache/twig/a8/a84560553eb72d31b6da0a31475c039c6143ce4b0b71679890463542fe5423c3.php:320
#69 __TwigTemplate_a4c5055d379ba540ca05ba24595c72d756053cf15ee4999f568829f77a7a1307:block_content_wrapper in grav-admin/vendor/twig/twig/src/Template.php:216
#68 Twig\Template:displayBlock in grav-admin/cache/twig/a8/a84560553eb72d31b6da0a31475c039c6143ce4b0b71679890463542fe5423c3.php:264
#67 __TwigTemplate_a4c5055d379ba540ca05ba24595c72d756053cf15ee4999f568829f77a7a1307:block_page in grav-admin/vendor/twig/twig/src/Template.php:216
#66 Twig\Template:displayBlock in grav-admin/cache/twig/a8/a84560553eb72d31b6da0a31475c039c6143ce4b0b71679890463542fe5423c3.php:214
#65 __TwigTemplate_a4c5055d379ba540ca05ba24595c72d756053cf15ee4999f568829f77a7a1307:block_body in grav-admin/vendor/twig/twig/src/Template.php:216
#64 Twig\Template:displayBlock in grav-admin/cache/twig/a8/a84560553eb72d31b6da0a31475c039c6143ce4b0b71679890463542fe5423c3.php:67
#63 __TwigTemplate_a4c5055d379ba540ca05ba24595c72d756053cf15ee4999f568829f77a7a1307:doDisplay in grav-admin/vendor/twig/twig/src/Template.php:455
#62 Twig\Template:displayWithErrorHandling in grav-admin/vendor/twig/twig/src/Template.php:422
#61 Twig\Template:display in grav-admin/cache/twig/7b/7b996569ede0f89171021e63f28cab5ef1058ca9f269191946daacebcd05a9ff.php:34
#60 __TwigTemplate_2b7e7ae36f708f2357d7a349a537ea9e3d867615fe4626da8071b52bb35c1972:doDisplay in grav-admin/vendor/twig/twig/src/Template.php:455
#59 Twig\Template:displayWithErrorHandling in grav-admin/vendor/twig/twig/src/Template.php:422
#58 Twig\Template:display in grav-admin/cache/twig/ad/ad4e2c3bccdf700e272d439a3d6f828665f6844d5945c32ebc51b333f37a1c61.php:99
#57 __TwigTemplate_b05d67a47749907f423b0a40baa40a5071b42b457ad7eec8ead709e37b58e79d:doDisplay in grav-admin/vendor/twig/twig/src/Template.php:455
#56 Twig\Template:displayWithErrorHandling in grav-admin/vendor/twig/twig/src/Template.php:422
#55 Twig\Template:display in grav-admin/vendor/twig/twig/src/Template.php:434
#54 Twig\Template:render in grav-admin/vendor/twig/twig/src/TemplateWrapper.php:47
#53 Twig\TemplateWrapper:render in grav-admin/vendor/twig/twig/src/Environment.php:384
#52 Twig\Environment:render in grav-admin/system/src/Grav/Common/Twig/Twig.php:388
#51 Grav\Common\Twig\Twig:processSite in grav-admin/system/src/Grav/Common/Service/OutputServiceProvider.php:28
#50 Grav\Common\Service\OutputServiceProvider:Grav\Common\Service\{closure} in grav-admin/vendor/pimple/pimple/src/Pimple/Container.php:118
#49 Pimple\Container:offsetGet in grav-admin/system/src/Grav/Common/Processors/RenderProcessor.php:28
#48 Grav\Common\Processors\RenderProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#47 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#46 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/DebuggerAssetsProcessor.php:28
#45 Grav\Common\Processors\DebuggerAssetsProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#44 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#43 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/PagesProcessor.php:69
#42 Grav\Common\Processors\PagesProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#41 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#40 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/TwigProcessor.php:27
#39 Grav\Common\Processors\TwigProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#38 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#37 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/AssetsProcessor.php:28
#36 Grav\Common\Processors\AssetsProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#35 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#34 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/SchedulerProcessor.php:29
#33 Grav\Common\Processors\SchedulerProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#32 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#31 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/BackupsProcessor.php:28
#30 Grav\Common\Processors\BackupsProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#29 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#28 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/TasksProcessor.php:59
#27 Grav\Common\Processors\TasksProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#26 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#25 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/RequestProcessor.php:52
#24 Grav\Common\Processors\RequestProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#23 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#22 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/ThemesProcessor.php:27
#21 Grav\Common\Processors\ThemesProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#20 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#19 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/PluginsProcessor.php:30
#18 Grav\Common\Processors\PluginsProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#17 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#16 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/InitializeProcessor.php:78
#15 Grav\Common\Processors\InitializeProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#14 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#13 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/DebuggerProcessor.php:27
#12 Grav\Common\Processors\DebuggerProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#11 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#10 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/ErrorsProcessor.php:27
#9 Grav\Common\Processors\ErrorsProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#8 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#7 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/LoggerProcessor.php:48
#6 Grav\Common\Processors\LoggerProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#5 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#4 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Processors/ConfigurationProcessor.php:28
#3 Grav\Common\Processors\ConfigurationProcessor:process in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#2 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#1 Grav\Framework\RequestHandler\RequestHandler:handle in grav-admin/system/src/Grav/Common/Grav.php:249
#0 Grav\Common\Grav:process in grav-admin/index.php:53
Plugin is not working right. The asset tags in the twig need to be followed by ' | raw ' or css and java meta tags will be rendered visibly
Hey, I'm new to Grav and I have been having a lot of trouble using plugins.
I read through the readme.md but I still can't understand how you actually apply the plugin into my website. I have added the timeline.html.twig file into my templates file.
I want to make a md file for it and add into my webpage, but I don't know how.
Thanks for the help and sorry for any inconveniences. :(
I have a brand new Grav instance and I am trying to get this Timeline to work.
When I open the timeline page I get the following error.
I'm not sure why this is happening out of the box, and I'm wondering if someone can help. The other pages on the site work fine.
I'm using the Admin plugin, and haven't been manually editing files.
Hi,
first of all, many thanks for this great plugin. And here's my question:
And here's my problem: when using youtube plugin and loading external content, if the timeline has too many events the page just hangs.
Example:
https://larosadecebrian.com/pasajes-de-la-historia-edad-moderna
https://larosadecebrian.com/pasajes-de-la-historia
P.S.: if no major plugin changes are necessary for this case and you can tell me where to start I can try to do something for myself and then PR it. Ty.
Grav debugger gave me this message:
"message" => "Calling "timeline_iteration" on template "macros/timeline.html.twig" from template "macros/timeline.html.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0."
How can fix it?
Hi,
Thank you for this awesome plugin!
I encountered 2 issues (only) on the Event page (timeline_event.html.twig):
Events show correct output on the Timeline page, but not on the standalone Event page.
Have tried many things to fix this, but can't find any way to change output. No errors in the logs.
Using Grav 1.7.39.4, PHP 7.4.33
Hey! I'm new to Grav and this plugin looks awesome but it was wondering if there was a way to create a button that would collapse/expand the collection of events in the timeline.
Thanks for your help!
grav.madland.ca/timeline
I completed this timeline for a class and got a great mark.
Thanks for your work.
cm
Hey there, i've just set up a quick test environment with the latest grav+admin to test this plugin.
I've added your plugin through the built-in plugin-manager thingie, it is enabled and configured.
Grav was started using the built-in router.php
.
However, i couldn't find any timeline-template entry anywhere. :/
Regards
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.