Giter Club home page Giter Club logo

grav-plugin-timeline's People

Contributors

fossabot avatar olevik avatar ryanmpierson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

grav-plugin-timeline's Issues

Upcoming events on main page

Hello.

I use premium Typhoon theme based on Tailwind. I want to create Upcoming events page like on the Metallica tour page:
image

Also Past events page where events that have already passed are displayed (event date < today).

Questions:

  1. How to split events to Upcoming and Past using today date as split point?
  2. I have a lot of events with the same name, but I can't create them by default because the slug is the same. How to generate slug using event date as a part of slug? Example from Metallica (same event name, diff slugs):
  • 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.

  1. I want to put 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?
  2. Typhoon theme uses Tailwind, but timeline uses Bootstrap 4. Do I need to rewrite the styles on Tailwind to use it only?

Date in frontmatter not showing in timeline.

My timeline at grav.madland.ca/timeline has 3 events at the very bottom that are listed as 2019 contrary to the dates in the frontmatter.

image

image

image

I'm not sure where to look to resolve this.

Feature request no images in timeline overview.

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.

Using the timeline-event template throws exception

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 showing meta headers

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

Issue using plugin

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. :(

Timeline error on Creator.php

I have a brand new Grav instance and I am trying to get this Timeline to work.

  • I installed the Timeline plugin.
  • I created a page called Timeline, which uses the Timeline plugin template.
  • I created a Timeline event page using the Timeline Event plugin template and have the parent as the Timeline folder.
aNqemSRvNM

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.

could I split timeline in different pages?

Hi,

first of all, many thanks for this great plugin. And here's my question:

  • Do you think it would be possible to truncate timelines in different pages? E.g.: showing 5 or 10 events per page and then showing a "Go to next page" link, or something similar.

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.

Error installation : need carbon

I have install timeline into my grav cms.

Centos 8 / Nginx / Php 74

I have this error :
HP Fatal error: Uncaught Error: Class 'Carbon\Language' not found in /var/www/html/grav-admin/user/plugins/timeline/timeline.php:135

timeline

Event page content output incorrect

Hi,

Thank you for this awesome plugin!

I encountered 2 issues (only) on the Event page (timeline_event.html.twig):

  • Time is shown in GMT+0 (site is configured for Europe/Amsterdam, GMT+2)
  • {{ page.content }} shows raw html code

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

Website: https://shotsfiredofficial.com/calendar

Collapsible

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!

not a bug, just sharing

grav.madland.ca/timeline

I completed this timeline for a class and got a great mark.
Thanks for your work.
cm

No timeline-templates to select

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. :/
df32wqd

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.