# Sortable Page view

**URL:** <https://www.ruby-forum.com/t/sortable-page-view/96358>\
**Category:** Radiant CMS\
**Created:** [June 28, 2006, 11:10am UTC](https://www.ruby-forum.com/t/sortable-page-view/96358 "2006-06-28T11:10:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [June 28, 2006, 11:10am UTC](https://www.ruby-forum.com/t/sortable-page-view/96358/1 "2006-06-28T11:10:08Z")

</div>

Hi Guys

Ive been working on the page view changing it from tables to

, ive  
got  
it all working no problem, however the only thing I cant seem to get  
working  
is the rollover highlight and the colapsing/expanding of the page views.

My list code is output like this… I understand the javascript SiteMap,  
but  
im not quite sure what I need to alter in order to get it working?  
Further  
more, the JavaScript doesn’t error out either! Any advice on where to  
look  
for possible problems would be great

Thanks

Tim P.

1. 
Pages

Status

Modify
2. 
  ![toggle children](https://www.ruby-forum.com/images/collapse.png?1151411598)[![page-icon](https://www.ruby-forum.com/images/page.png?1151411598) Home Page](http://127.0.0.1:3001/admin/pages/edit/1) ![](https://www.ruby-forum.com/images/spinner.gif?1151411598)  

Published

[ ![add 
child](https://www.ruby-forum.com/images/add-child.png?1151417075)](http://127.0.0.1:3001/admin/pages/1/child/new) [![remove page](https://www.ruby-forum.com/images/remove.png?1151411598)](http://127.0.0.1:3001/admin/pages/remove/1)

* * *

This e-mail has been scanned for all viruses by Star. The  
service is powered by MessageLabs. For more information on a proactive  
anti-virus service working around the clock, around the globe, visit:  
[http://www.star.net.uk](http://www.star.net.uk)

---

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [June 28, 2006, 11:14am UTC](https://www.ruby-forum.com/t/sortable-page-view/96358/2 "2006-06-28T11:14:44Z")

</div>

Scratch that! ive done it!

It was down to the inheritence from RuledTable();

Cheers

Tim

FYI -

initialize: function(element\_id) {  
var table = $(element\_id);  
var rows = table.getElementsByTagName(‘li’);  
for (var i = 0; i \< rows.length; i++) {  
this.setupRow(rows[i]);  
}  
},
