# Issues with the new tree admin extension and with the admin tree expansion

**URL:** <https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515>\
**Category:** Radiant CMS\
**Created:** [October 6, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515 "2007-10-06T17:54:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 6, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/1 "2007-10-06T17:54:30Z")

</div>

Hello.

I just successsfully migrated from a 5.2 installation to a 6.2.

1. I installed the admin\_tree\_structure extension, and I guess (since  
I’ve not found its usage guidelines) by simply declaring a page Archive  
its children should automagically become organized in a tree-like  
fashion. Unfortunately I got the following error:  
[Parked at Loopia](http://pastie.caboo.se/104459) . Any ideas?

2. With the new 6.2 (gem) installation, regardless of the presence of  
the admin\_tree\_structure extension, the admin tree, after I edit a  
page, whenever I save it and the system brings me back to the main admin  
page, the admin tree doesn’t stay expanded but become compressed into  
just one line. This is very inconvienient snce I’ve to click and click  
to expand it again and reach the page I was editing or a sibling of it.  
Is this a known bug of this release?

Many thanks for shedding some light on these issues.

Best regards,

Luigi

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 6, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/2 "2007-10-06T18:44:19Z")

</div>

You need to upgrade your Radiant installation to “edge” or “trunk”:

rake radiant:freeze:edge

The “show\_all?” helper was added in a recent changeset that resolved  
some tree expansion issues.

Sean

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 6, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/3 "2007-10-06T20:06:14Z")

</div>

Sean,

many thanks for your prompt reply.

I froze my radiant installation but I get a sort of “recursive” admin  
tree (see the attached pdf file: [Parked at Loopia](http://pastie.caboo.se/104477) ).

Is there something I’m missing?

Thank you for your patience …

Luigi

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 6, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/4 "2007-10-06T20:11:30Z")

</div>

I am getting the same thing. I haven’t really investigated yet, but  
it is a small test system, frozen to Edge and with the latest  
extension checked out.

Keith B.

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 7, 2007, 11:03am UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/5 "2007-10-07T11:03:34Z")

</div>

On Oct 7, 2007, at 4:16 AM, Daniel S. wrote:

> Are you running any other extensions? If there’s another extension  
> that  
> is overriding the \_node.rhtml page, that will mess up my extension.
> 
> It looks like shards just added \_node.rhtml. Make sure that  
> admin\_tree\_structure is loaded after shards (either by using numeric  
> prefixes or the config.extensions setting in environment.rb)
> 
> Dan.

I am getting this same problem. The “2007” folder just keeps  
appearing, recursively. I just installed a new version of radiant  
with the latest Gem (0.6.3) and no other extensions and a just the  
“Styled Blog” in the database. No luck.

The \_node.rhtml file from the extension is definitely being loaded, I  
made a minor change and it showed up. Not sure exactly what is  
happening here, but I would love to use this extension, so let’s try  
to get this sorted out.

Keith B.

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 7, 2007, 4:17am UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/6 "2007-10-07T04:17:49Z")

</div>

> Sean,
> 
> many thanks for your prompt reply.
> 
> I froze my radiant installation but I get a sort of “recursive” admin  
> tree (see the attached pdf file: [Parked at Loopia](http://pastie.caboo.se/104477) ).
> 
> Is there something I’m missing?

Are you running any other extensions? If there’s another extension that  
is overriding the \_node.rhtml page, that will mess up my extension.

It looks like shards just added \_node.rhtml. Make sure that  
admin\_tree\_structure is loaded after shards (either by using numeric  
prefixes or the config.extensions setting in environment.rb)

Dan.

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 8, 2007, 12:38am UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/7 "2007-10-08T00:38:18Z")

</div>

> The \_node.rhtml file from the extension is definitely being loaded,  
> I made a minor change and it showed up. Not sure exactly what is  
> happening here, but I would love to use this extension, so let’s try  
> to get this sorted out.

I see the problem now - I’d made a change to the javascript that didn’t  
get into my source control. I’ll get it checked in later today.

Dan.

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 8, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/8 "2007-10-08T21:57:11Z")

</div>

Daniel S. wrote:

> Sorry for the delay. Latest source includes the js change.

Thank you Daniel. It now works perfectly! (I’ve also upgraded to 0.6.3  
in the meanwhile).

Luigi

---

<div class="post-metadata">

**Author:** ![luigi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://www.ruby-forum.com/u/luigi)\
**Post date:** [October 8, 2007, 7:51am UTC](https://www.ruby-forum.com/t/issues-with-the-new-tree-admin-extension-and-with-the-admin-tree-expansion/116515/9 "2007-10-08T07:51:56Z")

</div>

> > The \_node.rhtml file from the extension is definitely being loaded,  
> > I made a minor change and it showed up. Not sure exactly what is  
> > happening here, but I would love to use this extension, so  
> > let’s try  
> > to get this sorted out.
> 
> I see the problem now - I’d made a change to the javascript  
> that didn’t  
> get into my source control. I’ll get it checked in later today.

Sorry for the delay. Latest source includes the js change.

[http://soxbox.no-ip.org/radiant/svn/extensions/admin\_tree\_structure/](http://soxbox.no-ip.org/radiant/svn/extensions/admin_tree_structure/)

Dan.
