Try Tuts+ Premium, Get Cash Back!
Allow your Clients to Update their Websites on the Go

Allow your Clients to Update their Websites on the Go

Tutorial Details
  • Topic: HTML, Pagelime
  • Difficulty: Beginner
  • Estimated Completion Time: 10 minutes

Today, we’re going to learn how to set up a website that can be easily edited via your iPhone and the Pagelime mobile app. If you’re unfamiliar with Pagelime, it’s an incredibly easy-to-use CMS that makes the process of editing a website as easy as possible.


Pagelime Basics

Pagelime is unique in that it allows you to design and code your website in plain HTML first, and add the Pagelime editable CSS tags as the last step in the process. Once your site is finished, you can go through the site and add “class=cms-editable” and a unique ID to any elements in your HTML that you want to be editable. Pagelime takes care of the rest.


An Example Situation

For this article, I’m you…and you are perhaps a web designer that makes websites for local businesses, law firms, restaurants, etc. So I make a lot of well designed 6-7 page brochure sites.

So I was pitching a restaurant for their web business, and I downloaded a lovely template from ThemeForest with the amazingly descriptive title of “Restaurant Website 01″. It just so happened to have everything our client was looking for.

Pagelime intro

I’ve decided to use Pagelime because my client doesn’t make many drastic changes, but when he does (let’s call him Chef Tony) he wants to be able to do them himself. Let’s say that I was competing with a few other developers for the contract, and I sold Tony on being able to update his recipe of the month, his employee of the month, and a daily Paella dish photo from his iPhone. Needless to say Tony was impressed. Tony is rarely impressed; so now we have to deliver on our Paella updating promises!


Digging in!

On our template’s homepage, we can see there are quite a few areas on the page that I’ll need to make editable. Since making things editable with the Pagelime mobile app is no different than with the Pagelime web app, we go about adding the editable classes to the different parts we’re interested in.

Here’s the markup for the welcome message.

<div class="headingrow">
	<h1>Welcome to our website</h1>
	<p>Lorem ipsum dolor sit…</p>
</div>

We’re going to make the p tag editable with Pagelime. Since we’re using the mobile app, we’ll also give it a descriptive title.

	<p id="welcome" class="cms-editable" title="Welcome Text">Lorem ipsum dolor sit…</p>
	

Here’s the next section:

<div class="subheadingrow">
	<h2>Employee of the month - Jenny Smith</h2>
	<img class="leftalign"src="images/home-image-sample1.gif" alt="" />
	<p>Tasty and fullfiling, … </p>
</div>

I want to make the headline, the promo image and the main content itself editable.

	<h2 id="eomtitle" class="cms-editable" title="EOM Headline">Employee of the month - Jenny Smith</h2>
	<img id="eomimg" class="leftalign cms-editable" title="EOM Image" src="images/home-image-sample1.gif" alt="" />
	<p id="eomtext" class="cms-editable" title="EOM Text">Tasty and fullfiling, … </p>
	

The Recipe of the month section mirrors the above format exactly, so we make the same changes to that block of HTML.

Finally we make the image in the upper left corner editable:

<img id="changer" class="cms-editable" title="Changing Image" src="images/changer.png" />

This doesn’t affect the site layout in any way, and only a couple moments to code. Pretty sweet so far! If we open the site in the Pagelime web app, we now see that all of our elements are editable.

Pagelime intro

Now I’ve delivered the first version of the site to Chef Tony, and he can download the Pagelime Mobile App here:

He can log in with his email and password, and he’ll see his site on the dashboard:

Pagelime intro

At this point, he has the ability to edit the site, manage images, view documents, use Google Analytics, and even make new pages and templates. For the purposes of this article, we’re only going to deal with editing the Site and Images.

Clicking on Edit Site brings you to the Select Page screen where Tony can choose the homepage for editing:

Pagelime intro

The next screen provides you with a list of the editable areas we defined earlier.

Pagelime intro

Clicking on “EOM Headline” will allow us to change the employee of the month text. Tony makes it Chef Tony, because he just so happened to cook a mean Paella today. We tap “Done,” switch to “Preview,” and can now see now the ‘employee of the month’ section has now, indeed, been updated to “Chef Tony.”

Pagelime intro

We’re now going to update the Changer Image. To do so, we’re going to use the “Edit” view. We tap the button in the subnav which brings up a preview of the website with green overlays. The overlays show you what’s editable and can be tapped to open that region – similar to the live editing in the Pagelime web app.

Pagelime intro

This gives us a preview of the image we’re changing. We now have the option of taking a live picture on the fly, choosing an image from our phone, or choosing an image stored in the Pagelime image manager. For this tutorial, I’ll take a picture of a Paella, and then use the auto-cropper tool, which allows us to proportionally scale and crop our image to match the dimensions of the editable image on the site.

Pagelime intro

We can now check the preview and see how it looks before clicking publish…

Pagelime intro

When we check the actual website…

Pagelime intro

… we see that everything has been updated — all from our phone! No real technical knowledge is needed, and you have an awesome bit of client candy to help upsell your clients and make more money. (We won’t tell Tony he forgot to update his Employee of the Month Photo.)

So there you have it: a website integrated with a CMS with the added benefit of iPhone – on the fly – updating! Go make a glass of Limeade, enjoy the spring air, and the smell of all the extra green you’ll be making.

Tags: tips
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.jennamolby.com Jenna

    WOW this is such a great idea. Thanks for sharing :)

  • http://yysource.com Sando

    Great tutorial and thank you for showing us the Pagelime app looks really promising.

  • Ross

    This is just what I needed! I recently had to design a completely static website (i.e. no php, ruby, ect.) for someone, and the only way that it could be updated was with dreamweaver. This should make it a lot easier for them to update, especially because it works on any web page instead of having to install extra software.

    • http://www.breakthenetwork.com Matt

      I’m not sure this is the ideal cms in all circumstances, most of the time there are better options that care much more powerful. This is mostly ideal as a lightweight mobile cms for clients who will be editing the site on the go.

  • http://symetron.99k.org/ luka

    awesomely ninja.

    what a great idea, probably the best idea i’ve EVER SEEN!!
    slashes my time in half.

  • http://thedevelopertuts.com Bratu Sebastian

    I know about micro cms websites too. There’re very easy to work with and there is the possibility to brand it as your own ( some of them ) for your clients.

    Great article too.

  • Abhijit

    Hi Thomas,

    Thanks for sharing this..

    I will definitely try this and encourage client for this.

    This is going to create buzz soon..

  • http://itcutives.com Jatin

    Nice concept. Awesome article.

    I had a little-sort of concept about Micro CMS, but your article gave me deep insight about the same.

    Thank You.

  • http://www.panasofts.com Website Design Portfolio

    I Love Content Management System cause of following benefits.

    They Allow for multiple users, Ability to easily add/edit web content, Allows for frequent updates, Users do not need to be able to write code ,Allows user to easily learn the basics of html, Web-based CMS can be free or very low cost, Provides a central hub so all users can keep up to date on site changes, Sets the stage for uniform pages, so multiple users don’t stray from the overall design, Some provide attractive templates and imaging.

  • http://mimrankhan.com M.Imran Khan

    Really a nice idea. Thanks for sharing :).

  • Craig Duckett

    Thanks for sharing this idea. Will definitely look into this more.

  • Romain

    Nice tut ! Thanks for sharing.

  • josh

    This reminds me a lot of Couch CMS [http://www.couchcms.com]

  • http://prayerti.me PrayerTi.me

    Interesting idea…too bad it only works on static content!

  • http://www.modernooze.com sam – dorset web design

    I think for static content this is brilliant i will be implementing it soon on projects

  • James

    where do you download the PageLime mobile App ??

  • flo

    James > Apps store

    Any idea of how to code an iPhone App like that ? :D would it be possible to have a subject on that on mobiletuts ?

  • http://webmastercollective.com Webmaster Forum

    I tried using pagelime for a couple of my clients, but they seem to run into problems even with it being this basic.

    I think i figured out it’s when they are copy + pasting text. It seems to mess with the code.

    Will give it another look and see if it has been improved as this was a while ago now.

  • Lionel

    I got some troubles, it doesn’t want to update pictures … :-(

  • flo

    Lionel : it’s because you need to use absolute paths and not relatives. I had the same problem, changed the paths and now t works really fine :)

    What’s inside the code of the iPhone app ? would it be possible to develop something like this ? That would be awesome :)

  • flo

    Lionel : it’s because you need to use absolute paths and not relatives. I had the same problem, changed the paths and now it works really fine :)

    What’s inside the code of the iPhone app ? would it be possible to develop something like this ? That would be awesome :)

  • n900mixalot

    INCREDIBLE!!!! Thanks!

  • Jon

    If this works, I will be indebted to you, at leaste 2 internets.

  • http://xicanographix.com Nathaniel

    WOW great service. The only thing I’m curious about is the app on Apple. Why is it you have to purchase it? Shouldn’t that come with the free trial? Hmmm. That’s a little of a bother!!! I hope they fix this.