Jump to content

hezmann

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by hezmann

  1. I've installed ProcessBatcher and can get pages to edit but the Actions button at the bottom doesn't do anything and I'm seeing this error in the console... ProcessBatcher.js:54 Uncaught TypeError: $(...).fancybox is not a function Any ideas? Thanks, Heather
  2. The Geocode is returning some results in local script - ie, Japanese is like - 和歌山県. Is there a way to have it return English? I know if I search the same place in Google Maps it returns the English equivalent. I tried adding language=en to the URL in MapMarker.Php but that didn't work. Thanks, Heather
  3. Hi, I'm sure this is simple but I just can't seem to get my head around it. I have a template walk_segments which has two page reference fields start_town and end_town. Both of those fields reference walk_towns which has a Maps Marker field called marker. I would like to get a map in the Walk Segments which has markers for both the start_town and end_town. I can't figure out what to put in the selector to get that. $items = $pages->find("template=walk_towns, marker!='', $page->start_town, sort=title"); $map = $modules->get('MarkupGoogleMap'); echo $map->render($items, 'marker'); Any help would be most appreciated! Heather
  4. Sorry about that - hit enter and it submitted then couldn't edit. What I meant to say was... Will try to remember to do that. Need to clean the code up some first. Thanks @Olsa and @Robin S. I was able to get what I needed with... $walk_segments = $pages->find('template=walk_segments, start_town.marker.continent.title="Europe"'); foreach($walks_segments a as $thewalk){ echo $thewalk->parent->parent->title; } I just need to catch duplicates now but that should be easy enough!
  5. Will try to remember to do that. Need to clean the code up some first. Thanks @Olsa
  6. I actually added some extra fields (state, region, country, continent) to the module so the geocode grabs those for me from Google (well, technically I'm looking up the continent from a table with all countries/continents because Google doesn't provide that) so it would be refered to as (assuming the Maps Marker field is named marker) marker.continent. I'll give the suggestions a go - Thanks!
  7. Hi All, Just recently started with ProcessWire and coming along ok but am struggling with figuring out how to get pages based on values of fields in children of children. What I have is a structure like this... Walks Walk Variations Walk Segments Walk Segments has two page reference fields (to Walk Towns) Start Town and End Town. Walk Towns has a Maps Marker field which I've added the field Continent to. What I'm trying to get is a list of all walks that are in a particular continent. Any help would be most appreciated! Heather
  8. Here's a little schema pic... I will definitely want to have maps. The Walk Segments will have KML files which will need to be displayed on maps. Walk Towns will need to be as well, using the latitude and longitude values. I'll need to filter the walks by things like Country, Distance, Difficulty, #of days (total segments), Total elevation gain etc. This site - https://www.inntravel.co.uk/holidays/walking-holidays - sells walking holidays. Their faceted search is similar to what I want, but I would like to have a map which shows the applicable walks when filtered. That site also doesn't have maps for the walks. (Thanks for that @dragan - it's definitely a good idea for me to have a better look at sites that are doing similar). Heading over to check out the docs pwired suggested now. Thanks! Heather
  9. Hi! I've just started on ProcessWire, coming from Wordpress. I've done several sites in WP but this new one is just to data driven for Wordpress to handle without so many plugins and custom code it just seemed like there must be a better option so here I am. I used to do a lot of stuff in Access (many years ago) and have some experience with PHP/MySQL. I've had a look at a few tutorials and created the planets website etc. I have a specific structure that I'm looking to create so thought I would ask for some expert advice before making every mistake in the book. I do a lot of long distance (inn to inn) walking and am always looking for new ones which involves searching many different sites. I've yet to find a good repository for this type of thing so thought I would build my own. The basic structure is (more info added later but trying to get basic idea of best practices): Walks -> Walk Variations <->Walk Segments <-> Walk Towns (go into Walk Segments as Start and End Towns). Walks <->Links Walk Towns <-> Accomodation, Walk Towns <-> Dining Should I be using ProFields? How should I structure this as far as fields/templates? Thanks in advance for your help. Heather
×
×
  • Create New...