Jump to content

PeterDK

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by PeterDK

  1. Hi, Suppose I have a page /pagename/ Could I link to an included image /pagename/imagename? I know, if it gets deleted, the link will not work anymore... Is it possible to get the 'imagename' within my 'pagename' template? Is there a best practice I want to follow (using id instead of imagename) for creating this? Thanks!!
  2. The 'cropping false' technique didn't work. I didn't get the desired effect. I got image output, put exactly the same as with 'cropping on default true'....
  3. Thank you very much, exactly what I was looking for!
  4. Right now I have a page holding 'data' (rental prices) I keep it separate because i want to edit this in one place and use it 8 times (4 languages, 2 presentation (list, selectable)) Right now I'm using Hanna code to create a 'template' for this code (see github). I don't feel right about this solution. Can I use this one page with multiple templates? And in the page that I use instead of calling [[Hanna code]] use $pages->get('data')->render(with template nr 8)?
  5. I tried that, but didn't work out for me. I'm too new with php, so maybe it's not a bug. Could some more proficient test this out? Then we might raise an issue on github ;-)
  6. I'm not putting the weird characters in myself, just can't open an editor and edit the file that is misbehaving... It's Hanna code that does the output, see https://gist.github.com/PeterDeKeer/1c3a7daefe7ae271e0eb There are two lines outputting the month of the year in full name fasion 'December'. In french they have accents, and those are misbehaving. $output .= strftime("%d %B %Y",$verhuurprijs->startdatum); Could you (gently) move me in the right direction? Thanks so far Martijn!
  7. Thanks for all the help lately guys (and girls). I want to get all my site images within a width of 300 px and 225px. using the default resiser ->width(300) is ok for landscape oriented pictures, but portrait images are also 300px wide and very huge! using ->size(300,225) all images are exactly this size (not all my image ratios are exaclty the same) what magic string do i use (or module)? muchas gracias
  8. I just voted for ProcessWire! Help get @processwire packaged by Bitnami. You can vote at http://t.co/QVrXZzSsUV

  9. Why is my french page littered with weird characters? http://new.huurvillafrankrijk.be/fr/reservation/prix/ The dutch version doesn't have this http://new.huurvillafrankrijk.be/nl/reservatie/prijzen/ I'm using Hanna code to produce that section...
  10. Very good question! I see that in the future 50 to 100 of my 300 users (riders) would like to log in (for using the discussion module) or something something. Other (future) uses, subscribe them to the 'news' and 'new discussions' so they get a mail every time someone starts a topic. Good use case or not?
  11. I have a few simple statistic fields per user (see current site) Every user has these: Member for X Years (count of 'membership groups') Total distance ridden (sum of distance field of all page with template 'rides' where the current user is 'participant') Then per year => distance and totalrides and 'avg distance per ride'. All very simple if done only one time but, we have 300 riders and currently 2000 rides AND i would like to sort on those fields! For instance a small table sorted on the rider (user) with the most miles ridden. Now the question: Is there a field type that is 'php code' executed when someone edits 'rides'. The result of the code could be stored in the field (and sorted, queried). Thanks a million!
  12. Hi! Quick question. Hopefully... Is it possible to rename users to 'riders' and move those pages from behind the 'admin'? The url of 'users' would then be /riders/ridername (instead of /admin/users/ridername) This without breaking 'permissions' and 'groups'. Thanks!
  13. Hello! My first big project is going to be a website of a biking club. They have about 300 members spread out over the last 40 years. > I'm planning to use 'normal' users and groups, to assign the members to. The groups could indicate which years they were a member of the club Each year they ride out 60 times. From one ride (custom template) i'm going to keep the 'length', some text, pictures, a gpx file and of course who was riding! > Someone did this already? Accept gpx and output google map, elevation and speed graph? Pointers welcome ;-) > Can I easily select the riders in a form (I know it's just a special 'page') but I would like to filter all users by 'this years membership' for making this as easy as possible. Statistics is the main event of this site. Would it be possible given my ideas above to generate a graph for each rider (user) how many 'miles' they have ridden per year? How many rides per year? (this 'statspage' is in dutch). How could I approach this and create a high performance query. It would be an option to calculate the stats one time and save the results (instead of 'dynamically'). Can someone validate my idea and approach? With modules could i use? Any pitfalls? EDIT: Every rider has a counter with how many 'miles' they have ridden in total, this can be calculated from all the rides. Is it possible to sort on that field?
  14. Hi! Building my first site with processwire and have a few questions, I'll keep it at one per post ;-) First up 'homepages'. I have a site root with children: 'nl', 'en', 'de', 'fr'. Under 'nl' I have a page called 'overzicht'. Now that is the real homepage of my site! How do I redirect 'root' to 'nl' and 'nl' to 'overzicht'. If someone visits 'en', they should see the 'overview' page (a child of 'en') the structure: root (should redirect to nl)nl (should redirect to overzicht)overzicht page20 Page40 en (should redirect to overview)overview ... fr de
  15. RT @cervelo: The Cervelo P3 - now available in Ultegra Di2 11speed at your local Cervelo retailer. #SpeedWithinReach http://t.co/XXdwoekI1m

×
×
  • Create New...