-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue using plugin #4
Comments
You don't need to add timeline.html.twig to your own templates, unless you want to change it, as the plugin makes them available for your installation of Grav. You'll instead want to do the following:
For a full example, that you can download and edit or just browse through, take a look at the Timeline Skeleton - especially the Pages therein. The Skeleton also shows that you can nest Timelines within Timelines, as long as there are Events at the lowest level. |
Thanks for the reply OleVik! :) Sorry, still kind of confused with it's usage. I have created the folders with the markdown files in them. But when I'm at the admin dashboard, the timeline pages that I've created linked themselves to a random twig file, eg: blog.html.twig as its page template. I'm currently using grav-skeleton-timer as my skeleton. So wanted to add the plugin in as one of my pages. Would appreciate it if you can explain how to do that. :) |
I ran through this:
3a. Add a subtitle and some content.
4a. Add some content.
In essence, make sure you choose the right Page Template when creating Timelines and Events in Admin. In the filesystem they will be |
Thanks for the reply again! I followed your steps, updating all the things needed. But when it comes to creating a page, I can't set my page template as timeline without copy pasting the timeline.html.twig file into my templates folder first... :/ So I copied the file along with the ones in partials and macro into my templates folder, and I get this: So I select timeline as my page template, but the page does not contain the functions like from your pictures: So to add the content, I clicked on expert mode and added my content there: But when I load my webpage, this comes up: As you can see, the title and the subtitle pops up, but the paragraph text doesn't. :/ Then I created my timeline_event.md page and placed my timeline.md as it's parent page. But it does not show up either, like the paragraph text. I think I missed out an important step. Would appreciate if you could walk me through this. :) And thanks again for helping me out with this! |
What version of Grav Core and Admin do you have installed? |
The latest one which is Grav Core v1.6.10. and Admin Plugin v1.9.6 |
What theme are you using? The blueprints or templates are not registering, which is likely due to some conflict with another plugin or theme. In a clean installation of Core v1.6.10, Admin v1.9.6, and Timeline v1.3.1, it works as expected. |
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. :(
The text was updated successfully, but these errors were encountered: