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

If I wanted to use a theme, can I use the content as well?

Started by Muut Archive 9 years ago · 24 replies · 947 views
9 years ago

I just got started working with Grav, but I'm a little stuck. I want to use a theme as the background for my website, but when I loaded it on my site it just gave me the same welcome page. How do I actually load the same pages that come default from the theme?

9 years ago

You'd want the skeleton for that, they include content, theme, plugins.

9 years ago

How do I use a skeleton? When I go to the skeletons page they are only available for download, there is no command to run in terminal to install on a server.

9 years ago

Yes, they are set up to be as easy to use as possible. You could download any of them through Curl and unzip it where you wanted, as they are prepackaged to require no installation. Alternatively, find the repository - eg. delivery-skeleton, clone it where you want it, and run Grav's install process. It will include content, theme, plugins, the lot - see .dependencies.

9 years ago

If you downloaded it from the GitHub repo's releases, or from getgrav.org/downloads/skeletons, it would include an entire Grav-directory with a .htaccess-file. From your screenshot, it appears that only the /user-directory has been extracted to root.

9 years ago

I'm pretty interested in using Grav, and really wanted to get started using the system yesterday for my website's homepage :/

9 years ago

I understand, but you need to actually download a package - not the source code - for the skeleton in question. That is, do not download the repository directly or clone it, but download from its releases. The most current version is v1.2.0.zip, which is the one you want to extract to root.

9 years ago

So extract this to my root Grav installer?

9 years ago

How would I do this if I'm extracting into a cloud web server?

9 years ago

I've been trying to do this for two days now and I can't get it configured, and there is literally 0 documentation on the docs in regards to setting up skeletons...

9 years ago

If we go step by step:

  1. Download the archive Delivery Skeleton v1.2.0.
  2. Open it with WinRAR (if that's still around), 7-zip, or whichever software you prefer.
  3. Extract the folder named grav-skeleton-deliver-site to a local folder, say for example your Documents.
  4. Copy all the files in this folder to the folder that will hold your website.
    4a. If you want Grav to be at the root of your site, you would copy all of the contents of this folder to the root of your website. For example /var/www/html/, ~/public_html/, or ~/www/ (depending on your server).
    4b. If you want Grav to be in a subfolder, create a folder for the site - for example ~/public_html/grav - and copy all the files there.
  5. Assuming that your website runs Apache, or one of its many siblings, when you access your site at www.mysite.com - or www.mysite.com/grav in case of 4b - Grav will be installed.

In the Grav ecosystem, a Skeleton is a complete package. That is to say, it will contain everything needed to get a site up and running, without any installation or configuration (except for when the server needs it): Content, theme, plugins. Thus the zip-file contains a single folder, which when extracted can be renamed to whatever you want, and that can be moved wherever you want. Access the folder from a server, and Grav will just work.

9 years ago

Okay, I believe I see what you're saying. I would basically be overwriting the content that's already in existence then?

9 years ago

There could easily be a conflict between what you have already installed and the Skeleton, the easiest way forward is to remove the already existing folder with what you installed previously, and upload a fresh Skeleton. It has everything you need, and requires no installation.

9 years ago

Idk man, this just isn't working. I deleted everything, then unzipped the folder and pushed it into my webroot. NOTHING is happening now...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago