Skip to content

Content

@iDoMeteor edited this page Mar 2, 2016 · 1 revision

Your First Row

I have taken the liberty of telling #OnePageWonder to put one in for you! It provides a quick bit of help, some useful links and a demo contact form.

Since you're probably not trying to make a site about my software, let's go ahead and edit that first.

Section List

You must be logged in, of course. After logging in, the pencil in the navigation changes to a gear. This is your gateway.

Click the gear and then click on the Sections button in the modal header.

Note: Each section has a handy view count in a Bootstrap badge! :D

Editing a Row

While in the Sections sub-menu, simply click on the Home Row button. This will load the home row content into the editing screen.

Simply select all the HTML in the textarea and erase it. You can use the #WonderBar to quickly wire frame in some content, or copy & paste code from some other site or your designer's mock up.

Note that each section has a Bootstrap container class already applied to it. This means that the content inside of a textarea should be encapsulated within column divs (thusly, there is a nice set of column shortcuts in the #WonderBar).

You can just ignore the Bootstrap best practices if you're that kinda girl, but I try to make sure my sites pass BootLint with flying colors. :>

The home row is the only one which does not require a title. You can put one in, but it won't make much difference. At least, not until I change some major things under the hood and free it up to also become draggable.

Creating a Row

  • Click the + button in the administrative modal header.
  • Enter a title (by default, less than 25 characters).
  • Make some content as per the section above.
  • Hit the Save button!

Re-arranging Rows

  • Click the Sections button in the admin modal header.
  • You cannot move the home row.
  • If you have three or more rows, you can grab the drag handle button to the left of the section title button and drag it to a new position.
  • Viola! It just updated on all actively connected clients! Isn't Meteor teh bizzl!?

Trashing Rows

  • Click the Sections button in the admin modal header.
  • You cannot remove the home row.
  • Click the garbage can icon on any other row.
  • Poof! It's gone.

Recovering / Restoring Rows

  • Nothing in #OnePageWonder is ever lost forever, unless you do it manually.
  • Eventually, there will be a point & click revision history with browse & restore features.
  • Until then, you will have to use Mongo shell or Meteor shell. I suggest something like the code example below.

Recover Trashed Section

meteor shell
opwRows.find({slug: 'your-missing-page-slug', removed: true}, {fields: {_id: 1, title: 1}, sort: {stamps.removed: -1}}).fetch()
opwRows.update({_id: '<ID FROM ABOVE>'}, {$set: {removed: false}})

Boom, there it is again!

Recover Last Section Version

meteor shell
opwRows.find({slug: 'your-missing-page-slug', stale: true}, {fields: {_id: 1, title: 1}, sort: {stamps.expired: -1}}).fetch()
opwRows.update({_id: '<ID FROM ABOVE>'}, {$set: {stale: false}})

\o/

Clone this wiki locally