# File system extension and reorder

**URL:** <https://www.ruby-forum.com/t/file-system-extension-and-reorder/157915>\
**Category:** Radiant CMS\
**Created:** [January 16, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/file-system-extension-and-reorder/157915 "2009-01-16T15:48:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [January 16, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/file-system-extension-and-reorder/157915/1 "2009-01-16T15:48:48Z")

</div>

Has anyone gotten the reoder extension to work with the file\_system  
extension? It seems to be dumping the position column of the pages,  
but on reimport they are no longer there. A quick look (very quick…)  
didn’t reveal anything to me.

Any ideas?

Keith B.

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [January 18, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/file-system-extension-and-reorder/157915/2 "2009-01-18T18:01:03Z")

</div>

On 16 Jan 2009, at 14:47, Keith B. wrote:

> Has anyone gotten the reoder extension to work with the file\_system  
> extension? It seems to be dumping the position column of the pages,  
> but on reimport they are no longer there. A quick look (very  
> quick…) didn’t reveal anything to me.

It works OK for me. I’ve just set up a test, using the latest versions  
of reorder and file\_system. I ran `rake file_system:to_files`, which  
created the sitemap on my filesystem, then ran `rake file_system:to_db` and everything made its way back into the database.  
The position column was intact. I also tried editing the position  
values as captured in yaml files on the file system. Loading the files  
back into the db, the position values were updated to those I had  
edited in the files.

Perhaps you are not running the latest version of the file\_system  
extension? Try updating it. If the problem persists, let us know.

Cheers,  
Drew

p.s. Just for the record: the latest reorder extension has been  
upgraded to work with Radiant 0.7. To make it work with Radiant 0.6.9,  
I had to change the file reorder\_extension.rb as follows:

def activate  
…  
Admin::PagesController.send :include,  
Reorder::PagesControllerExtensions  
Admin::PagesController.send :helper, Reorder::PageHelper  
…  
end

to

def activate  
…  
Admin::PageController.send :include,  
Reorder::PagesControllerExtensions  
Admin::PageController.send :helper, Reorder::PageHelper  
…  
end
