Create a page that show different content based on user selection

castoro

Power Member
Joined
Jan 24, 2021
Messages
542
Reaction score
125
I want to create a page on my site that does something like that:
  1. Prompt: select your region
    User: selects his region
  2. Prompt: select your city
    User: selects his city
  3. Prompt: custom content created by me for every city (article or Gmaps or anything)
Ideally this should happen in the same page, to avoid 2 loading screens after each choice.
I thought this was quite a simple task and I was sure to fine plugins for that but I did not manage to find any (maybe I dont know how to call this process and so I don know the keywords to find it).

Is this something easy? How would you do it?

I know how to do it manually by creating a page with a list of clickable regions and then creating a page with a list of clickable cities for every region, but that would require 2 loading screens. Is there a way to "embed" this selection inside a single page? (and possibly making it user friendly/cool looking?)
 
Look into Javascript. That probably be your best bet. You can write the code so that the information changes based on user input/at runtime.

For the most part, that's basic javascript really. Unless I am missing some random job detail/deliverable shouldn't take any one you hire more than ~8 hours to write that code. Maybe more, depending.

Consider opening a HaF thread.
 
Look into Javascript. That probably be your best bet. You can write the code so that the information changes based on user input/at runtime.

For the most part, that's basic javascript really. Unless I am missing some random job detail/deliverable shouldn't take any one you hire more than ~8 hours to write that code. Maybe more, depending.

Consider opening a HaF thread.

As @PHPInjected said it is easiest if you can use javascript

I needed something similar and used this one:
Double combo
http://www.javascriptkit.com/script/cut183.shtmlTriple combo
http://javascriptkit.com/script/script2/triplecombo.shtml
Thanks guys. I'm going to be honest, I've never coded so this looks a monster task.
 
This is a great idea on paper.

But in terms of execution, unless you are talking about very short pieces of content with predictable sets of information that just vary in presentation and emphasis from city to city, your idea might be too expensive to implement.

Usually, big sites get around the cost issue by enabling users themselves to generate this type of content.

But then again, you run into quality and standardization issues.

Those are better problems to have than the cost issue.

Still, I commend you for thinking big and focusing on user value because your approach seeks to customize content based on a person's local needs.

You're definitely looking at the problem from the right perspective.

The question is: How to resolve the cost issue?

There are tons of large and small cities in the United States.

Within a city, there are many districts.

This can easily run into the tens of thousands if you want to be thorough.
 
Back
Top