Jump to content

bernhard

Members
  • Posts

    5,714
  • Joined

  • Last visited

  • Days Won

    270

Everything posted by bernhard

  1. added the module to the modules directory and changed version number to 1.0.0 please let me know if anyone experiences problems
  2. I'm doing it almost like szabesz explained, but using $config->opt = $pages->get(xyz); so i have it also available in included template files via wireRenderFile(xyz) then you can do $config->opt->yourfield everywhere
  3. Ryan solved this in pagetable as that pages created but not published are deleted automatically each day by a kind of lazycron. On mobile and no details for that... Just throwing in an idea
  4. I don't think this would be easy unless using the menu builder module. I also don't think that it is a good idea to build your site structure like this. Have you thought of deviding your tree in one branch "menu" and one branch "helpers" or "options" or "data"? Maybe this would make things easier. You can than rewrite the URLs from example.com/menu/page1 to example.com/page1 I'm on mobile... Use Google and you will find how to do that
  5. don't know what this RCDMap.js is, but i created a simple fiddle for you. does this help? http://jsfiddle.net/T78Hd/13/
  6. You can append a variable to the CSS to prevent caching: your.CSS?v=160422
  7. just bougth a new PI3, setup apache + pw default profile and got the following performance on the homepage on my local network via WIFI (don't know if a wired setup would be faster?! the pi3 has wifi onboard) 60 requests over 60 seconds (1 per second) 300 requests over 60 seconds (5 per second) 600 requests over 60 seconds (10 per second) PW 3.0.15 everything is really smooth only thing that takes a little time is resizing big images of some MB via GD really nice
  8. If you are using Google analytics you could easily use it to track your downloads and have nice statistics and setup conversion goals and so on. You would only have to change your template code. No extra fields... easier than it may sound from the docs: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#setting-up-event-tracking
  9. thank you kongondo, now it makes sense! there's very much pw und php wisdom in this one method. very nice
  10. https://github.com/LostKobrakai/Migrations/blob/master/Migration.php#L11-L30 could you please provide a link or more information on that
  11. I've created a little module for that: https://processwire.com/talk/topic/13064-inputfieldfile-image-sorting-autosorting/
  12. proud to share the release of a little handy sorting module for image and file fields (edit: some bugs in the screencast that are already solved) the autosort option can be set in the field-admin: Caution there is some work planned on the images field, so this may break the functionality of this module. have this in mind. github: https://github.com/BernhardBaumrock/InputfieldFileSort module directory: http://modules.processwire.com/modules/inputfield-file-sort/ changelog 1.0.0 initial release
  13. had this issue today with my vagrant scotchbox and found this solution: https://github.com/scotch-io/scotch-box/issues/124 maybe of interest for someone
  14. you are right, though it would have to be either version 2.6.7 or 2.6.8 because before 2.6.7 there is no hooking via ready.php
  15. sorry adrian for being late - there was too much going on in this thread so i set notifications to weekly... the simplest solution would be to send a get request like this: some errors: https://validator.nu/?doc=https://processwire.com/talk/&out=json valid: https://validator.nu/?doc=https://processwire.com/&out=json maybe parse this json and set the color of the panel to green = valid, orange = warnings, red = errors and a link to the validator report. nothing more needed, i think
  16. hi robin, as simple as this: (put it in your /site/ready.php file and adjust to your needs) $this->pages->addHookAfter('added', function($event) { $page = $event->arguments[0]; if($page->template != 'your-template-name') return; $page->setAndSave('title', 'my page - ' . date("YmdHis")); }); set page name format for children to something like Y/m/d H:i:s and set title to locked
  17. basically i support this request. i've come across this problem several times and wished there was a better solution. it was also requested here: https://processwire.com/talk/topic/7347-grouping-fields-within-admin/ (and maybe more often...) i think there are several cases where this could be very useful: SEO is one example, facebook could be another one: assume you build a catalog of different content types (boat, car, tshirt, whatsoever...). all those content types are different templates and need different fields. ok, now what if you want to add some kind of facebook share info to each product? you need fields like "ogimage, ogtitle, ogdescription" and you would have to add those fields to EVERY template... the actions tab makes it a little bit easier for you, but if you want to put all of them in a fieldset you have to click around A LOT you could put everything in one template and do some showif things, but that would lack access control and some other stuff (for example if you want edit access for user A only for products X, Y, Z and B for 1, 2, X) what if facebook decides to add a new tag "fancynewtag"? you would have to do everything again. i think in such cases it would really be great to have kind of fieldgroups that you can add to your templates like single fields and that reflect such kind of "global" updates. now it would be as easy as: create field "newfancytag" add this field to your fieldgroup "ogtags" all your templates are updated automaticalle (in other words: are not changed, but the fields appear in the processpageedit interface) hmmm... an idea coming to my mind: could this somehow be accomplished with the runtimemarkup fieldtype? similar to this: https://processwire.com/talk/topic/10804-module-runtimemarkup-fieldtype-inputfield/?p=114190 @steveooo did i understand you correctly?
  18. hi cb, i think addhookafter "saveReady" should be fine. and just set the values, the save will take place afterwards: // change this $page->setAndSave("title", $page->page_quote->title); // to that $page->title = $page->page_quote->title;
  19. hi guys, bringing up a very old topic here... i wonder why the only 2 topics on cloudflare are this one here and that one: https://processwire.com/talk/topic/8324-thanks-for-procache-and-aiom/ the free plan sounds great for many projects. has anyone of you ever experienced any drawbacks? it seems to me that PW + ProCache + Cloudflare (including free SSL) should be a really easy and good setup? looking forward to hearing your opinions
  20. I know this behaviour and I've accepted it long time ago and thought it was a good solution. Reading your post now (it's not the first time that this topic pops up) I think maybe it would be even better to have the trash button and have an option to "undo/restore" that action for a limited time. That's how Google does it at gmail and I have to admit that I have used this feature not only once Though I also have to say that I think ît has priority 500...
  21. That looks strange... Does anybody know why lostkobrakai's solution does not work?
  22. thank you lostkobrakai, just tried it and it is a really nice tool! also interesting blog post about quiz duell im ersten: https://stormforger.com/blog/2014/05/27/load-testing-an-interactive-tv-show-with-over-1-million-users/
  23. I've played around with this a little bit and want to share some results: manual import/export seems to work quite well (never used that before) and most of it should be possible to automate. it becomes a little tricky when you delete fields or change the fieldtype or the like. deleting fields would be the easier one because it would leave the field untouched on field import, remove the field from all the templates that have used it before (you would have to make this step manualle before you can delete the field on your "master" pw instance) and after the import see if there are fields not used by any template and delete them. changing ckeditor field "body" to text worked. changing it back to ckeditor did not work. first, it asked for a second commit (could be hard to handle in a script?): (see the message on top of the screenshot) and even then it did not replicate the change @john i don't want to get offtopic here. am i talking about what your intentions have been?
  24. another reason could be that you setup 2 vagrant machines to test import/export of fields and forgot to give them different ips, so you have different hosts, 2 machines but in fact only one served website (one working, one giving the httphost error)
×
×
  • Create New...