Jump to content

PeterDK

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by PeterDK

  1. Come and play https://t.co/y4ZBZ3sxbG #slitherio

  2. @neocitiesweb How is it going? Very interested in the result

  3. @igrigorik is this going to happen? If not, is there a list of services that does? @ReSRCit (found in example) is not accepting new clients.

  4. I want to do this so I can disable cookies for my 'just content and informantion' website. If I disable it on the whole server, I cannot get into the admin anymore (normal ofcourse). So if I can install the admin seperatly, I can disable it on my content site, not on the admin (.htaccess). Why do I want cookies disabled? For performance reasons! My host comes with varnish installed by default (Gandi.net) If I activate Varnish I get insanely good response times. The cookies interfere with that (when Varnish sees a cookie, it thinks the content is 'user specific' but it's not). Drupal does this already for quite some time (please see the discussion, reasons and solutions there - "Drupal should support disabling anonymous sessions")
  5. Hi, My site is 'www.peterdekeer.be', the admin is currently installed under /processwire/. Is it possible to install it under 'admin.peterdekeer.be'? I read a few weeks ago about the admin that it's possible to couple it somewhat looser. Can someone point me in the right direction? Thx
  6. RT @jkottke: Woo! Halt and Catch Fire got renewed for a second season! We get to see Cameron & Donna invent Prodigy! http://t.co/Jo5Aj9rEjP

  7. RT @netflix: It's official! We'll launch in Germany, Austria, Switzerland, France, Belgium and Luxembourg later this year. #Netflix

  8. So, what operator should I use instead of '='?
  9. Good evening! I'm working on a site where the 'editor' must select multiple users. I set up a field with this 'selector' => "template=user,sort=lastname" It works as designed, but when I add roles => "template=user,roles=huidige_leden,sort=lastname". Suddenly the validation fails constantly. Can anybody tell me what I'm doing wrong?
  10. Each page 'klassement' has one toerist field (wich is a page field). It's indeed the toerists that I'm after. I want the people not to select the 'klassement', but the related toerist. Sorry that I don't give you a clear question...
  11. Joss, Your close! Now I want to return it as a PW Array! (instead of the echo inside the loop).
  12. Thanks for your quick reply, but return $pages->find("template=klassement, jaar=2013"); isn't doing it for me (even if using the 'return' instead of echo -> that was one error). That returns a list of pages, but I need from all those pages a field called 'toerist'. Wich is a page field. So if I implode or explode, I get the list, wich is good, but I need it to be a PWArray. Your thoughts?
  13. In a MultiplePageField I want to be able to change the selectable pages based on PHP. This code echo $pages->find("template=klassement,jaar=2013")->implode("|",toerist); gets me to echo out all the id's, but this is a string, (using explode I get an Array). But PW needs to get a PWArray! How to convert this list of Array into a PWArray? (for use in "Custom PHP code to find selectable pages")
  14. Goodmorning, Yes I added the 'FieldtypePage' correctly. After extensive testing I found out that piping id's works with the mulitple field, but not with piping the 'name' or 'title'. The last two things work when importing a single item in this field. So my question becomes: How can I alter the module to support the 'title' field when multiple values are seperated by a 'pipe' (|)? Edit: I looked into it, and I think the core fieldtype is not adapted to my use case. Some code should be there where it's currently missing: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Fieldtype/FieldtypePage.module#L319 Maybe there is a quick solution to this?
  15. Hi! I'm reading Nik's post (http://processwire.com/talk/topic/383-module-import-pages-from-csv-file/page-4#entry21476) but I cannot get my Pages to 'link'. I'm using this line in my csv: Ocky Docky,425,22-09-2012,,Zaterdagrit,André Ockerman,90,,,,,,,,,1306|1041|1037 The pages that I'm trying to link are 'user' templates. Selecting is absolutely ok (even works with the page's name!) So the 'pipe' character and multi-select doesn't work :-( Please help me out here.
  16. Guys, I'm reading all your inputs like crazy, so thank you very much. Now thinking what approach to do ;-) THANKS!
  17. Hi, I have about 2000 pages with the following fields: rider distance number of rides year There is only one entry per rider and per year. The data looks like this: Peter - 700km - 10 rides - 2013 Bill - 600km - 8 rides - 2013 Peter - 700km - 10 rides - 2012 Bill - 800km - 11 rides - 2012 ... This continues for 41 years and 300 riders. My yearly overview is doable with a simple 'selector'. > select all riders with year 2013 sorted by distance PW comes back with 53 riders, I easely loop over the results (and while doing that calculating the totals) I would like to have a 'report' with the riders of this year (2013) with all their rides ever done. > select all riders of 2013 > select all their rides all previous years > sum their disctances and sort How should i apprauch this: Should I use sql queries myself? Is there a 'sum' function, much like the current 'count' that doens't reall have to get all these pages during calculation. Secondly, these reports are really static until 'some things' changes. I don't have a lot of visitors, what would the best cache option be for this situation? Peter
  18. Hi, I just installed a fresh processwire install and I see a FieldType Cache. The 'summary' tells me: "Caches the values of other fields for fewer runtime queries. Can also be used to combine multiple text fields and have them all be searchable under the cached field name." I cannot see where or how I can 'combine multiple text fields'. In the UI i can only select some fields, but there is no way to 'combine' them. Could someone point me to some practical uses of this Field?
  19. So assuming I have pages with a datetimefield, how can i do the following? Select pages from a year. // find all pages with events in 2014 $results = $pages->find("events.date>=2014-01-01, events.date<2014-12-01"); Is this correct? Select pages that were on a saturday. I have no clue, where can i find some documentation that covers this
  20. Hi, My page http://www.huurvillafrankrijk.be/nl/overzicht/ is setting really bad caching headers. See redbot. My very bad headers: Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache How can I remove these? The template witch this page is using is already set to cache (time=86400). Are there php or server settings I have to look into? Thanks!
  21. Looks great! How dit you 'resized' your originals, with what 'tool'. I see they are nicely renamed (without using pixel size in the name) Thanks for the tip!
  22. Hi, I'm going to make this structure: 300 pages with bikerider-templates 2000 pages with rides-templates the 'rides' template where you can select multiple other pages (riders) How can i select rides where 'one rider' has ridden? select rides where "rider in listofriders" Peter
×
×
  • Create New...