www.webdeveloper.com
Results 1 to 6 of 6

Thread: Best ideas to sorting

  1. #1
    Join Date
    Mar 2013
    Posts
    20

    Lightbulb Best ideas to sorting

    I'm creating a personal Fine Art gallery. I wanna show art works at first page But I can't decide how sort them with conditions below:
    There is no name and creation date.
    I don't wanna sort theme by uploading priority.
    Maybe I need to spot some kind of personal priority but I don't have any idea about it and how manipulate it.
    I'm using Yii framework and mysql.
    Any idea?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,536
    Based on the lack of information we have so far, all I could suggest is sorting by the image file's timestamp (or better would be the upload date/time if you store that in the DB?).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Apr 2013
    Posts
    135
    I suppouse you would like give possibility to sort images to user, (anyway if you want sort it via time add, best way is order it by id), so, if there is model like Gallery (of images) maybe you should store tuple of ids of images from the galery (in DB as a text object). After read cast it to tuple, and you have expected order. Hope I help.

  4. #4
    Join Date
    Mar 2013
    Posts
    20
    Thank you NogDog and tejas. I'm working on your ideas.
    I convinced my customer to give me each artwork creation time. I sort them based off it, temporarily.
    His artwork are very diverse but his 20 recent works are the same and have one type. I wanna show visitors most types of his works, otherwise the visitor thinks he just work on one type.
    I don't want to categorize his works because I think it's not a good Idea in a personal fine art website.
    A good idea is to use random sorting but it makes trouble for the visitor next time he/she back and want to find an specific artwork.

  5. #5
    Join Date
    Apr 2013
    Posts
    2
    Hello Friends!!
    Am going to make website of my own but I confused that what facilities or Information I can give from it to people so that my website can be popular. Please help me in what topic I should make it.
    ------------Thank you--------------

  6. #6
    Join Date
    Apr 2013
    Posts
    135
    Hi BikramDas actually you does not explain details about your website topic.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles