Ruby Forum Radiant CMS > Admin Tree Extension

Posted by Keith Bingman (kbingman)
on 07.05.2008 15:37
(Received via mailing list)
Has anyone gotten the Admin Tree Structure extension to work with
0.6.6? I have it installed, but when a page is set to archive, I get
nothing. No errors, just nothing.

thanks!

Keith Bingman
keith@keithbingman.com
Posted by Daniel Sheppard (Guest)
on 12.05.2008 02:04
(Received via mailing list)
Are you loading admin_tree after the archive extension (and also after 
shards)?

Are you sure that there's no errors either in your js console in your 
browser or in your server logs?
Posted by Arik Jones (imakethings)
on 12.05.2008 21:35
Where can I find this extension? Cause I can't find it anywhere! I'd 
like to try it out.
Posted by Keith Bingman (kbingman)
on 13.05.2008 14:13
(Received via mailing list)
Well, I wasn't loading the archive extension first, but once I do
that, I get a no method error:

Showing admin/page/_node.html.erb where line #10 raised:

undefined method `url' for
#<ArchivePageTreeStructure::ArchiveYearTreePage:0x25f0e04>
Extracted source (around line #10):

7:             <%= icon %>
8:             <%= node_title %>
9:           <% else -%>
10:             <%= expander %><a href="<%= page_edit_url(:id => page)
%>" title="<%= page.url %>"><%= icon %> <%= node_title %></a>
11:             <%= page_type %>
12:             <%= spinner %>
13:           <% end -%>
I will dig into it, but so far, I haven't gotten it to work. This is
using the 0.6.6 Gem, not edge.

Keith
Posted by Benny Degezelle (jomz)
on 14.05.2008 00:47
Arik Jones wrote:

> Where can I find this extension? Cause I can't find it anywhere! I'd 
> like to try it out.

The server were it was originally hosted seems to be down. I've dug up a 
version i had lying around and put it on github here;

http://github.com/jomz/radiant-admin-tree-structure/tree/master

Keith Bingman wrote:
> Well, I wasn't loading the archive extension first, but once I do
> that, I get a no method error:
> 
> Showing admin/page/_node.html.erb where line #10 raised:
> 
> undefined method `url' for
> #<ArchivePageTreeStructure::ArchiveYearTreePage:0x25f0e04>
> Extracted source (around line #10):
> 
> 7:             <%= icon %>
> 8:             <%= node_title %>
> 9:           <% else -%>
> 10:             <%= expander %><a href="<%= page_edit_url(:id => page)
> %>" title="<%= page.url %>"><%= icon %> <%= node_title %></a>
> 11:             <%= page_type %>
> 12:             <%= spinner %>
> 13:           <% end -%>
> I will dig into it, but so far, I haven't gotten it to work. This is
> using the 0.6.6 Gem, not edge.
> 
> Keith

I don't use the extension anymore as it was published, but re-used a big 
part of it in another extension. I've also had to add an 'url' and 
'status' method to get it to work under 0.6.6. The updated version on 
github should work, confirmation appreciated.

Regards,

Benny
Posted by Keith Bingman (kbingman)
on 14.05.2008 13:22
(Received via mailing list)
>>
> I don't use the extension anymore as it was published, but re-used a  
> big
> part of it in another extension. I've also had to add an 'url' and
> 'status' method to get it to work under 0.6.6. The updated version on
> github should work, confirmation appreciated.
>
  For some reason the version you have on Github does not load for me.
But when I add the url and status methods to the version I have, then
it works fine. Mysterious. Did you change anything else?

Keith
Posted by Benny Degezelle (jomz)
on 14.05.2008 14:35
Keith Bingman wrote:
>>>
>> I don't use the extension anymore as it was published, but re-used a  
>> big
>> part of it in another extension. I've also had to add an 'url' and
>> 'status' method to get it to work under 0.6.6. The updated version on
>> github should work, confirmation appreciated.
>>
>   For some reason the version you have on Github does not load for me.
> But when I add the url and status methods to the version I have, then
> it works fine. Mysterious. Did you change anything else?
> 
> Keith

Could be.., as said i got the extension out of an old project. I tried 
and also failed to get it working, for some reason the _node view is not 
picked up. Changing the extension to .html.erb did not change this.

If you will, put up your (fixed) version of the extension somewhere, 
i'll remove it from my github account.

Benny
Posted by Keith Bingman (kbingman)
on 14.05.2008 14:43
(Received via mailing list)
I will go ahead and put it on Github when I get a chance. It seems to
be working, though if you have previously opened the archive pages
without the extention, it is very important to clear the cookies
first. This made me loose an hour or two...

Keith
Posted by Keith Bingman (kbingman)
on 14.05.2008 16:03
(Received via mailing list)
This is now on Github at 
http://github.com/kbingman/admin_tree_structure/tree/master
It would be great if someone could chekc it out and see if it works
for them. I have it working under the 0.6.6 Gem.

Keith
Posted by Sean Cribbs (seancribbs)
on 14.05.2008 16:20
(Received via mailing list)
Keith,

Seems to work great for me.  You might add to the README that until
0.6.7, the "shards" extension is necessary.

Sean
Posted by Arik Jones (imakethings)
on 14.05.2008 17:19
Can't seem to figure how to get it to work. Can anyone shed some light 
on this?

Sean Cribbs wrote:
> Keith,
> 
> Seems to work great for me.  You might add to the README that until
> 0.6.7, the "shards" extension is necessary.
> 
> Sean
Posted by Arik Jones (imakethings)
on 14.05.2008 17:23
Nevermind, got it. Thanks.
Posted by Arik Jones (imakethings)
on 14.05.2008 17:32
Okay, I got it to work and it works beautifully. But it doesn't stay. 
When I got to edit a page (with or without saving the page) and then 
return to page admin tree, the extension breaks and puts me back to the 
normal blob of posts without year and date drill downs.
Posted by Keith Bingman (kbingman)
on 14.05.2008 22:58
(Received via mailing list)
I think, but I haven't really explored this, that an expired cookie is
messing things up. When I clear out my cookies and log in again it
works. Give it a try and let me know.
Posted by Anton Aylward (Guest)
on 14.05.2008 23:50
(Received via mailing list)
Keith Bingman said the following on 14/05/08 10:02 AM:
> This is now on Github at http://github.com/kbingman/admin_tree_structure/tree/master
> It would be great if someone could chekc it out and see if it works  
> for them. I have it working under the 0.6.6 Gem.

I'm really unhappy with GIT.
The manual pages are sparse and it keeps throwing "Can't Chdir" errors
for no apparent reason and won't give me a debug trace.

What's the business justification for moving to GIT?


--
"Preconceived notions are the locks on the door to wisdom".
  -- Merry Browne
Posted by Arik Jones (imakethings)
on 15.05.2008 00:48
I delete the cookies, log back in and it works. But after it working I 
try and edit a page and then return back to page admin tree list only to 
find that the extension bottomed out again.

Keith Bingman wrote:
> I think, but I haven't really explored this, that an expired cookie is
> messing things up. When I clear out my cookies and log in again it
> works. Give it a try and let me know.
Posted by Sean Cribbs (seancribbs)
on 15.05.2008 00:57
(Received via mailing list)
Anton,

git is a bit hard to install.  It's possible something is broken in your
installation.  Our reasoning for moving to git is to promote
participation.  Branching, merging and patching are MUCH easier than
Subversion.  As soon as we come up with a solution for our Trac
installation, Radiant will be moving fully over to git.

Sean
Posted by Arik Jones (imakethings)
on 15.05.2008 06:03
There has gotta be something out there that does trac to lighthouse 
conversion or something.

Sean Cribbs wrote:
> Anton,
> 
> git is a bit hard to install.  It's possible something is broken in your
> installation.  Our reasoning for moving to git is to promote
> participation.  Branching, merging and patching are MUCH easier than
> Subversion.  As soon as we come up with a solution for our Trac
> installation, Radiant will be moving fully over to git.
> 
> Sean
Posted by Sean Cribbs (seancribbs)
on 15.05.2008 06:10
(Received via mailing list)
There is, that's not the issue.  If we can avoid doing a complete
conversion, we'd much prefer that.

Sean
Posted by Keith Bingman (kbingman)
on 15.05.2008 07:51
(Received via mailing list)
Yeah, I got the same thing yesterday. I think the javascript needs to
be updated. This is not my extension, but now that I have it on git, I
will zake a look into it.
Posted by Keith Bingman (kbingman)
on 17.05.2008 11:48
(Received via mailing list)
Can someone try using this extension with 0.6.7? I am not having any
of the cookie problems I was having before, but I am suspicious that
it still may break.

Thanks!
Keith
Posted by Anton Aylward (Guest)
on 17.05.2008 17:50
(Received via mailing list)
This is slightly different from Brian's problem of a few weeks ago and
pulling the update from github doesn't seem to have resolved it.
I get


[anton@BigBoy Radiant]$ rake db:export TEMPLATE=./site-export.yml
(in /home/anton/Ruby/Radiant)
rake aborted!
Could not find table 'config'

(See full trace by running task with --trace)


Actually I've often got that "can't find table config" with extensions
on 066 and don't know enough about all the interactions to understand
why or why not.


--
Lead and inspire people. Don't try to manage and manipulate people.
Inventories can be managed but people must be led. ~ Ross Perot
Posted by David Piehler (davidpiehler)
on 09.06.2008 22:13
Keith Bingman wrote:
> This is now on Github at 
> http://github.com/kbingman/admin_tree_structure/tree/master
> It would be great if someone could chekc it out and see if it works
> for them. I have it working under the 0.6.6 Gem.

If anyone is still using the old drag-and-drop page Reorder extension, 
be aware that this AdminTreeStructure extension cannot be run alongside 
of it.
Posted by Keith Bingman (kbingman)
on 17.06.2008 20:28
(Received via mailing list)
> -- 
Actually, this is pretty easy to fix, but needs to be done in the
reorder extension. If anyone is interested, I can post the modified
one I have on github.