librelist archives

« back to archive

Re: Nesta Gem Questions

Re: Nesta Gem Questions

From:
Hersh Bhasin
Date:
2011-02-28 @ 03:15
I have installed Nesta CMS via the new gem-- however now the templates 
don't appear to be working. For example using on the postal3 them, I get 
this error-- which is being generated from the index.haml on the 
root\content\pages folder:

sinatra.error     
#<NameError: undefined local variable or method `latest_articles' for 
#<Object:0x00000100aa2ef8>>

I have another question:

If I use the default template, everything woks. However it is not apparent
to me how I can add an "About" page or a "Category" page on the right hand
side of the layout.  I tried putting an about.haml page in the root\views 
but it did not get picked up.

Thank you very much for sharing your work with us. It is really wonderful.

--- On Sun, 2/27/11, noreply@librelist.com <noreply@librelist.com> wrote:

From: noreply@librelist.com <noreply@librelist.com>
Subject: Welcome to nesta list.
To: "Hersh Bhasin" <hersh_b@yahoo.com>
Date: Sunday, February 27, 2011, 10:00 PM

Hi,

You are now subscribed to the nesta mailing list, and your
original email has NOT been forwarded to the mailing list.


YOUR FIRST MAIL WAS DROPPED

Sorry about that, but you'll have to resend that email now that
you're subscribed.


UNSUBSCRIBING

Now that you're subscribed to nesta you probably want to
remember a few email addresses you can use to manage your subscription:

* nesta-unsubscribe@librelist.com
  - Send to this address to unsubscribe from the list.

That's all there is to it.  Enjoy, and be nice please.


Thank You,

      librelist.com

Re: [nesta] Re: Nesta Gem Questions

From:
Graham Ashton
Date:
2011-02-28 @ 09:43
On 28 Feb 2011, at 03:15, Hersh Bhasin wrote:

> For example using on the postal3 them, I get this error-- which is being
generated from the index.haml on the root\content\pages folder:
> 
> sinatra.error     
> #<NameError: undefined local variable or method `latest_articles' for 
#<Object:0x00000100aa2ef8>>

Okay, I think I need to look into this. There have been a couple of verbal
reports of errors with themes, but nobody has sent me anything concrete 
before and I've not had a chance to try it. I've got a couple of 
bugs/patches to look into now. I'll try and get to them tonight.

> I have another question:
> 
> If I use the default template, everything woks. However it is not 
apparent to me how I can add an "About" page or a "Category" page on the 
right hand side of the layout.  I tried putting an about.haml page in the 
root\views but it did not get picked up.

You can choose what gets put in the menu, rather than just having 
everything lumped in there in one go.

Here are the docs: http://nestacms.com/docs/creating-content/menus

This demo site uses the default theme with no tweaks:

http://nesta-demo.heroku.com/

It's designed to be a working example that you can poke around in. Here's 
the content folder, just as it is when deployed on Heroku:

https://github.com/gma/nesta-demo-content

> Thank you very much for sharing your work with us. It is really wonderful.

Thanks, I'm glad you like it.