> Should I simply duplicate the archive extension and then make these 
> modifications in a new extension? Or is there an alternative?

You can include the archive extension and then have your own extension that
either re-opens the existing archive page type or extend archive page to
create a new page type.

class FlatArchivePage < ArchivePage
  def child_url(child)
    clean_url(url + '/' + child.slug)
  end
end

class FlatArchivePageExtension < Radiant:Extension
  def activate
    FlatArchivePage
  end
end

Then, you just need to ensure that your extension is loaded after the
archive extension (either using the power of the alphabet, prefixing 
the extensions dirs with numbers or setting config.extensions in your
environment.rb file).

Dan.

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to