[support] Drupal7 or CodeIgniter

Roger arelem at bigpond.com
Sun Feb 26 06:28:26 UTC 2012


--%<snip
I plan to build website about Rotue 66. And. according to my flow-
chart, it will be a little bit more then basic site. Basic plot: on
home page you will have an image (US map, or 8 Route 66 states map)
with links to select a state.
Once you select a state you will have
	a) list of cities (places) within the state you selected in the order
they appear on the Route 66 (E.g. Kansas: Galena, Riverton, Baxter
Springs. The order is from Chicago, IL to Los Angeles, CA)
	b) Google map with needles pointed to the cities within the state
To see Places, you have to select a city from the list or the map.
Once a city is selected a page should show
	a) list of Places in the city in the order they appear on the R66
(Cicero, IL: Cindy Lyn Motel, Henry;s Drive Inn, Robin Hood Muffler
Shop, Bunyon's Hot Dogs)
	b) Google map with needles in Places.
Clicking on the Place link on the list or clicking on the needle on
the map, you will get to the Place page with more info about the
Place: Name (title), History (body), Thumbnail, Location (geo-
coordinates), Link to Galery/Photo album, Address. City, State. Zip
info, etc.
-- snip>%

This, apart from the google bit, looks reminiscent of the system I'm working on.

States have 1 or more Towns/Cities
Town/Cities have 1 or more Venues
Venue can have only one Town/Location and one State.

I'm exploring taxonomy for this, it has some advantage.
I have no content type but 3 taxonomy vocabularies:
State
Town/Location
Venue

Taxo terms are the states of Australia
Taxo terms for Town/locality are the Towns were events are held, couple of hundred or so.
Taxo terms for Venue are the names of each venue with 2 additional fields, one for Town/Location and one for State.

These are Term References to the above vocabularies with all the new terms already added.
I put an image in the body field but this could also contain a link to the google thingy you were discussing.
So when creating a taxo term for a venue I can select it's locality and state, an image, a link or url.



HINTS:
-- I set up a special menu in a sidebar block so I could select which taxonomy vocab to add terms to without going thru menu structures. I can switch it off when not needed.
-- use cck to insert images or set the filter below the body field to Full HTML, Select Source>  and code the url yourself.
-- make sure your permissions are correct or it won't work.
-- use the search in Views to isolate the taxonomy terms from content.

  I set up a View to show Taxonomy Terms [not content] and in that created a block to display the field output.
I put the block in sidebar 2 and when an item is clicked it shows the info from the other terms and the body info.

In Address View>  Fields I have:
Taxonomy term:Name
Taxonomy term:Street Details
Taxonomy term:Locality/Town
Taxonomy term:State [State should be the very last field in the view]

Click on State>  Rewrite Results>  Rewrite the Output of this field:
 From Replacement Patterns choose [field_taxo_streetdetails] [field_taxo_locality_1] [field_taxo_venu_state] your names may be different.
   I always use field_taxo_name to easily differentiate taxonomy types from other content types.
Apply all displays.
Click on Taxonomy term:Street Details>  Exclude fom Display
Click on Taxonomy term: Locality/town>  Exclude fom Display
   Save
You should now have Venue on one line and full address and state on the second line. Each will have a link to the original Taxonoy Term and you can switch of the links as needed.

Tweak it -experiment- it isn't perfect but it's a start.

Others may comment on how to use rules or what ever to display different google maps per selection, that's out of my realm.

Roger





More information about the support mailing list