Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Website + blog + webapp workflow

Started by Muut Archive 9 years ago · 3 replies · 464 views
9 years ago

Hi, I have a website with a blog as an introduction to a web application. I want to migrate this to Grav. What would be the best practice to do that? I get the part of static content and the blog with grav, but, where would be the best location for the webapp code? maybe as a plugin? then, where would be located all the media (css, imgs, js) for this application?

9 years ago

You can put plugin-like logic in the theme. The theme class actually supports every event (except onPluginsIntialized), however, it's probably better to create a custom plugin. Check out the devtools plugin for a quick way to create a plugin. Follow the plugin tutorial on the learn docs and you'll be creating custom logic before you know it! Hop on our Slack chat if you need some help.

9 years ago

do you think that beeing a big application would it fit into grav, or may be is better to leave it alone, and integrate it in some other way?

9 years ago

My personal website includes static content and a blog. I'm currently building a pastebin into it, and will then be merging my family recipe site into it as well.

It's certainly doable, and isn't even particularly hard. @rhukster's suggestion of using a custom plugin is how I'm handling the parts of the application that require a little more freedom than a standard grav page would give.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2933 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago