Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Can anyone point me to documentation on how I could achieve manual ordering of items(database rows) through an admin interface? I am not talking about how to use "ORDER BY" mysql command but how to work with ordering items in a database that are in no particular order (ex not to be displayed in alphabetical order etc). I know you would possible use unique IDs for rows but how to swap them for those above or below. Some may have seen this in joomla where the user clicks an up or down arrow to move that item.

    Just don't want to re-invent the wheel here :)

    Thanks in advanced
    • CommentAuthorvarland
    • CommentTimeDec 27th 2007
     permalink
    In Rails, they'd tell you to add a position column in your database table specifically to use as a sort field. I know that may not be an option for you, but that's one way to do it.
  2.  permalink
    I do have a rails container on my hosting but I figured for the time being I would stick with php. Thanks tho! Anyone else?
    • CommentAuthorvarland
    • CommentTimeDec 27th 2007
     permalink
    You can do the same thing with PHP... I was just pointing out that that's the Rails paradigm, which can be used with any framework/language.
  3.  permalink
    Ah I see, Thanks again :)
Add your comments
    Username Password
  • Format comments as (Help)