Jump to content

BFD Calendar

Members
  • Posts

    420
  • Joined

  • Last visited

Everything posted by BFD Calendar

  1. Simpler solution was this: <ul> <?php $features = $pages->find("bfd_events_people_id%=$page->id, sort=bfd_year"); foreach($features as $feature) echo "<li><a href='{$feature->url}'>{$feature->title}</a></li>"; ?> </ul>
  2. Since another new clean install everything works fine. Also switched to a different FTP appliation....
  3. I solved it like this http://processwire.com/talk/topic/4615-categorisation-vs-relation/#entry46406
  4. I solved it like this: <?php $namepage = $pages->get("template=bfd_people, id=$page->bfd_events_people_id"); $occupation = ucfirst($namepage->bfd_people_occupation->title); if($namepage->bfd_people_original) { $originally = ", originally " . $namepage->bfd_people_original; }; if($namepage->bfd_people_alias) { $alias = " aka " . $namepage->bfd_people_alias; }; echo "<b><a href='{$namepage->url}'>{$occupation} {$namepage->bfd_people_name_first} {$namepage->bfd_people_name_middle} {$namepage->bfd_people_name_last}{$originally}{$alias} </a></b>"; ?>
  5. In the meantime I changed my approach.... I have a category/template 'events' that calls fields from a category/template 'people' and one 'places'. $namepage = $pages->get("template=bfd_people, id=$page->bfd_events_people_id"); $occupation = ucfirst($namepage->bfd_people_occupation->title); if($namepage->bfd_people_original) { $originally = ", originally " . $namepage->bfd_people_original; }; if($namepage->bfd_people_alias) { $alias = " aka " . $namepage->bfd_people_alias; }; echo "<b><a href='{$namepage->url}'>{$occupation} {$namepage->bfd_people_name_first} {$namepage->bfd_people_name_middle} {$namepage->bfd_people_name_last}{$originally}{$alias} </a></b>"; Before I was using "$namepage = $pages->get("template=bfd_people, title=$page->bfd_events_people_title");". To facilitate input I wanted "bfd_events_people_title" to be a select field (field as page and inputfield as AsmSelect). For some reason the titles showed up in the selectlist, I could select one but it disappeared upon save. Using 'id' as reference proves better because 'title' can change in the course of time. So to rephrase my question, could the AsmSelect field use the child pages (that have multiple fields) of the 'people' category as select items? And one step further, could I have an AsmSelect list that shows the 'title' fields as select items but yet input their 'id' in the 'bfd_events_people_id' field?
  6. I would like to have a navigation list of related pages (events) on a certain page. find("template=bfd_events, bfd_events_people_id%=$page->id") Where do I put the find option? In $rootPage = $pages->get("/events/"); or in options -> 'selector' => '',?
  7. <?php $map = $modules->get('MarkupGoogleMap'); echo $map->render($page, 'MapMarker', array('height' => '350px')); ?> results in Error: Call to a member function render() on a non-object while the MapMarker field is called 'MapMarker' to keep things simple.... Why?
  8. Getting back to my places problem above. I have a 'places' template with 'name', 'street', 'district', 'city', 'state', 'country' and Mapmarker fields. Cities, states and countries are select fields. How can I get these fields into an 'event' page by referencing them to either the title field or a unique ID field? Something like having the title or ID from the 'places' page as a select list and pull the other fields from that page into the 'event' template, including the Mapmarker map.
  9. Apart from a default value it would also be nice to have a field that generates a unique ID with numbers counting like 'name0001', 'name0002', etc.
  10. Does the PageListSelect (or AsmSelect) also work with pages that have multiple fields? When I use PageListSelect I can see the children pages from the parent page but when I select one it's gone when I save the page. When using AsmSelect the select menu is tiny and shows no items at all. The page field has the title field set as label field and single page as dereference. It works fine when I have a list of children pages that only have a title field.
  11. Actually I want to use different fields from the 'people' template in a text field on the 'events' template. The 'people' template has beside 'firstname', 'lastname' also 'profession', 'alias',.... fields that are sometimes used and sometimes not. They will be used when 'event' text is 'Explorer David Livingstone meets explorer John Stanley' but not when '(victim of Albert DeSalvo) Mary Sullivan is strangled by (Serial Killer) Albert DeSalvo aka The Boston Strangler'. Perhaps using a combination of the Page reference field and the Hanna Code module might do the trick? 'Event' in these examples should get field info from three different pages, two from the 'names' template (A meets B) and one from the 'places' template. To make it even more complex, it would be ideal if 'profession' is called from a template 'professions'. It wouldn't be necessary to have duplicate fields for every explorer or serial killer in the 'people' pages, and easier to produce a list of all explorers or even all events involving explorers. Ahum, just trying to get the most out of PW....
  12. With renewed optimism I installed again from grabpw.php. Everything keeps working. I switched to a different FTP application and had no troubles so far. Moving files up and down I ended up with a corrupt site folder so I'll have to start from scratch again. Perhaps that's a good thing, forced to think over categorisation before I start entering data.
  13. Since upgrading to ProcessWire 2.3 I had numerous problems accessing my site. Upon advice here I replaced my 'wire' folder with a new one. It worked until I tried to access the admin pages. Today I decided to do a complete clean install from the 'grabpw.php' file. Everything went smooth, all green flags, until I tried to access the site and/or the admin pages. Always getting stuck with this error: I have 'RewriteBase /bfd_processwire/' in my .htaccess as I want to work on the site but keeping it off the homepage until it works.... Where to look and how to solve the problem?
  14. Out again
  15. ProcessBatcher is in site/modules. I removed all Modules files from the site/assets/cache. Went to the admin modules page and ProcessBatcher was in the list so I happily clicked 'install. Then this happened: The logged error says: And now the complete website, admin and public are unavailable.... I just replaced the wire folder with a new one because of a previous error....
  16. Replaced the wire folder with a new one and the problem was solved. Thanks.
  17. Upgraded to PW 2.3 two days ago. Perhaps something went wrong in the ftp-transfer. I'll re-up the wire folder tomorrow and let you know.
  18. What is going wrong? I can't edit any page with this fieldtype anymore.
  19. ProcessBatcher is in my 'site/modules' folder but doesn't show up, not in 'modules' nor 'setup'. Logged in as Superuser PW 2.3. Checked for new modules, logged out & in again, all to no avail...
  20. Hm, a person is generally connected to several places. Few people die in the same place as where they were born. 'Places' should definitely be linked to 'events'. Regarding to the listing, there can also be several places in one city. The good thing with MapMarker is that you can really pinpoint to exact locations. So I have fields for country and city, but also state, district, street and name, where name could be the name of a hotel, hospital, school or whatever. I'm also an avid visitor of 'places of interest' myself so I want the location of events to be as precise as possible. On rare occasions the exact same location appears twice in history 'by chance'. Mama Cass of the band The Mamas & The Papas died of a heart attack in 1974, in the same apartment where Keith Moon of The Who overdosed in 1978. When importing from the database I still have to check and update coordinates anyway. Since a lot of my information dates from pre-Google Maps era it's quite fun to update certain places with 'new' technologies.
  21. In my Filemaker setup I have only two databases, one for events and one for people. When I check a record for someone in the people database I can see all related events in a 'portal'. That makes it very easy to check if some event was added or not. Most input fields are popup menus or lists that also make it convenient to see if something was added or not. Until now every event and person has a unique 'Filemaker' ID that I can import into the ProcessWire pages. That can keep everything together for a start. From here on I just have to find out a new automatically adding ID or a search for the last entries and I'm done. For the website I would add a 'places' category because I often end up with clicking "New York", "New York", "USA" for a lot of events. And yes, I do enjoy finding new events to add once in a while. Now I'm the only one enjoying searches and weird coincidences in my Filemaker database, but I'd like to share that joy to others as well.
  22. Thank you for your insights all. I'll let them sink in and start a little sample site to see where it goes. Regarding searches, I'd be happy if I could have pre-defined search criteria like the Skyscrapers site for a start, before attempting to serve the most complex demands. I'd definitely want a separate category for places because they do look great on a Google Map. They could very well function as a 'places to visit' when you're on holiday. Compared to the 1980s it's now also much easier to find out what happened 'exactly' where. So basically there would be three main categories to start with: events, people, places? Places would be the easiest because there's always only one place in one city in one state in one country. People a bit more complex because they can have more than one 'profession'. And events being the most complex, not just to categorise but also to retrieve linked information from people (with more than one possible) as well as places.
  23. The background is a 1980s photocopy enlargement of a computer data file on film. I never knew what information was held there.... Readability could be a bit of a problem indeed. The old Calendars were just typed with a typewriter from written information in a notebook, pre-computer age. Later on I switched to a Commodore 64 computer with cassettes to store data, then I moved to a FoxPro database and finally to a Filemaker database. The old Calendars are collector's items now. http://www.en.zvab.com/advancedSearch.do?title=Birth+Fact+Death+Calendar&author=Devos
  24. The dates are not my biggest concern, I can easily export them from Filemaker as three fields (dd, mm and yyyy) and use php to calculate the 'years ago'. Exporting to csv and importing into ProcessWire also works like a charm, I already tested with the 4000 names. I understand that this needs careful planning. It's a bit confusing to decide what should be main categories with parent and child pages. I have the impression you can go on in dividing data almost endless. A major doubt right now is to decide if 'events' should be categorised by date (parent=month -> child=1,2,3,.... -> child=event1959a, event1959b, event1969a, event1983a,....) or by event (parent=event -> child=birth, fact, death -> child=event). In the last case it's possible to keep categorising forever. For instance deaths can be split up in say cause, suicide and murder. Then again cause can be split up in heart attack, stroke,.... But in the end they should all show up in pages listing events resulting from user searches like "what happened on my birthday?", "which musicians were born in my hometown?" or "who was murdered by an axe in Belgium?".
  25. Is it possible in ProcessWire to 'construct' a text output from fields on different pages in different categories that are linked by a relational ID as in a relational database? Sample of text output: 495 YEARS AGO - on Sunday 29 September 1518 (+) Artist Tintoretto originally Jacopo Comin aka Il Furioso, is born in Venice, Italy. ------------------------------------------------------------------------------------------------- Where "495 years ago" is calculated from the date field in the 'event' page (the one that gathers information from other 'related' pages), "Artist", "Tintoretto", "Jacopo Comin" and "Il Furioso" are fields (occupation, lastname, original, alias,....) in a 'name' page, and "Venice" and "Italy" are fields in a 'location' page. The 'name' and 'location' pages would all have a unique ID linked to the 'event' page (with a unique ID as well) to get the related fields. This would also allow the page "Tintoretto" to list all 'event' pages that are related to Tintoretto and the page "Venice, Italy" to list all the events that happened in Venice. The data is now stored in a Filemaker database and I'm looking for a convenient solution to transfer it to a website. In the meantime a html-export version can be found at http://www.birthfactdeathcalendar.net. There are over 10000 events and 4000 names. The 'Scyscrapers' sample website comes close to what I'm after but when digging in deeper I guess I need some extra skills in defining what goes where (categorisation) and how to bring it together (relation). Any help or guidance is mostly welcomed.
×
×
  • Create New...