Browse files

Add explanations for each image

  • Loading branch information...
parndt authored and bricesanchez committed Nov 7, 2017
1 parent f52a297 commit 90a44fc0ed08f541d285e0973670f4c21850c593
@@ -56,7 +56,7 @@ The extensions Refinery comes with are:
## Creating a new Refinery project
![Never gonna give you up](
If you follow this guide, you'll create a Refinery site called `rickrockstar` that will have a custom design. Then you'll be ready to go further in the following guide and add events extension to allow Rick to tell his fans when his next gig is.
@@ -137,7 +137,7 @@ $ rails server
This will fire up an instance of the built-in Rails web server by default (called WEBrick). To see your application in action, open a browser window and navigate to <http://localhost:3000/refinery>. You should be greeted with a screen prompting you to create your first Refinery user.
![Set up your first user](
__TIP__: To stop the web server, hit `Ctrl+C` in the terminal window where it's running.
@@ -151,7 +151,7 @@ Fill out the sign up form to create your first user. This will be the super user
Once you've created your first user you'll see Refinery's admin.
![Old Dashboard image](
### Setting Your Site Name
@@ -173,13 +173,13 @@ Now you're setup, click around the various tabs in the backend and become famili
### Switching to your front-end
![Website Frontend](
You're currently in the back-end Refinery site editor. To see the front-end site, click "Switch to your website".
As you can see, Refinery is already displaying a basic menu and layout ready for you to customise.
![Default Basic Layout](
### Customising the Design
@@ -234,7 +234,7 @@ As you can see we're going to render a view with some HTML5 tags and along with
When you edit the About page you'll see something like this:
![Editing the about page](
You'll notice two tabs on the page: "Body" and "Side Body". These are `PageParts`, or in other words, a single piece of content attached to this page that you can render in your view. There is a "Body" tab with some content on this screen. To render that same content in your view, put:
@@ -286,7 +286,7 @@ __TIP__: You can add CSS for specific pages by using their slug with `-page`. Th
Now when you view your front-end at <http://localhost:3000/about> you'll notice your site has a grey background, with a horizontal menu and two white content areas.
![Default design - small image](
### What we just did
@@ -131,7 +131,7 @@ __TIP__: Models in Refinery extensions expect a string field that acts as the ti
Now go to the backend of your Refinery site ([http://localhost:3000/refinery](http://localhost:3000/refinery)) and
you'll notice a new tab called "Events". Click on "Add new event" and you'll see something like this:
![Adding an event](
You'll see the entire form has been generated for you based off the field types you specified when generating the events section. The blurb has a visual editor, the date field is a date picker and the photo allows you to pick or upload a new photo from a built-in Refinery dialog.
@@ -141,9 +141,9 @@ Now click on "Switch to your website", and navigate to <http://localhost:3000/ev
You'll notice not only has Refinery generated the backend "Events" tab but also a new menu item called "Events" and two new front-end views,`index.html.erb` and `show.html.erb`, located in `vendor/extensions/events/app/views/refinery/events/` for you to customise.
![Events frontend with undesired ordering](
As you can see, Refinery makes it insanely easy to quickly add new extensions to manage various areas of a site.
As you can see, Refinery makes it really easy to quickly add new extensions to manage various areas of a site.
But I've noticed one problem. The "2011 Music Awards" is showing up in the middle when it makes more sense to order the events with the latest event at the top. To fix this we need to understand what's happening under the hood of a Refinery extension. Let's dive in.
@@ -218,7 +218,7 @@ end
Now when you look at <http://localhost:3000/events> you'll notice they're now being sorted by the event date.
![Finished events frontend](
## What's Next?

0 comments on commit 90a44fc

Please sign in to comment.