google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Textarea or editor not appearing for content when adding or editing new page #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trunk installation with all dependencies
2. Try to add a new page

What is the expected output? What do you see instead?

> An editor (or textarea) for the 'content' should appear.

What version of the product are you using? On what operating system?

> Trunk, occurs on both OS X and Ubuntu Intrepid installs.

Please provide any additional information below.

> I assume there's somewhere I must define which editor shows up where, but
I can't seem to find it anywhere in the docs. I've attached a screenshot.

Thanks!

Original issue reported on code.google.com by nickserg...@gmail.com on 19 Mar 2009 at 5:50

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like 'pages/templates/admin/pages' needs to be somewhere?

Original comment by nickserg...@gmail.com on 19 Mar 2009 at 5:54

GoogleCodeExporter commented 9 years ago
Nevermind - got it - had to copy /example/templates/pages to templates dir - was
following installation which directed only to use trunk c/o.

Original comment by nickserg...@gmail.com on 19 Mar 2009 at 8:37

GoogleCodeExporter commented 9 years ago
I'm having similar symptoms, but the re-jiggering of templates does not seem to 
be
helping me.  I'll look more at the other patches, but this could use some
clarification/workaround in the docs - or if someone could just point me in the 
right
direction, I'd be grateful.  I want to do this the Right Way.  Thanks,

-j

Original comment by haight6...@gmail.com on 27 Mar 2009 at 6:17

GoogleCodeExporter commented 9 years ago
Just to add some details about the problem - in the HTML source of the "change a
page" page, I see this:

<fieldset class="module aligned ">
  <h2>Content</h2>

</fieldset>

Which tells me 'fieldset' is empty at line 6 of fieldset.html.

I'm not sure how that would get populated though.  I'll keep hacking at it..

Original comment by haight6...@gmail.com on 27 Mar 2009 at 6:29

GoogleCodeExporter commented 9 years ago
Looks like this has something to do with the way Django handles template tags. 
I 
made it work by changing

from pages.templatetags.pages_tags import PlaceholderNode

in pages/utils.py on line 42 to

from django.templatetags.pages_tags import PlaceholderNode

I'm not sure if it's the right thing to do, but it works. Sorry for not making 
it a 
patch.

Original comment by sad.n...@gmail.com on 1 Apr 2009 at 12:44

GoogleCodeExporter commented 9 years ago
Yep, oki, I have just changed this code to be more bullet proof. I really don't 
get
how to do a proper isinstance in python.

The solution that I have found it that:

if str(node.__class__).find("PlaceholderNode") >=0:

It feels not right but it should work.

Original comment by batiste....@gmail.com on 2 Apr 2009 at 9:01

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 14 Apr 2009 at 4:12