Jump to content

Search the Community

Showing results for tags 'custom sorting'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello all, I'm working on a project where the content of the website will change location wise. Content is basically the list of local theatres. If someone from New York visits the site, he/she can select city as NY and Broadway theatre will be shown first in the list. Also, since users have their accounts set up already, I want to make sure by default they are shown the content of their city, but they can change city anytime by using the select box fixed on top. I know this would be easier once I figure out how do I sort the content. What I've thought so far is, I can maintain a variable, something like a global variable called as $current_city. By default, it'll be like $current_city = $user->user_city. But when user selects other city, the $current_city variable should take the selected value. Thanks for your time.
×
×
  • Create New...