Jump to content

horst

PW-Moderators
  • Posts

    4,088
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by horst

  1. have you tried to set it to the top of the htaccess file?
  2. Ok, I think you 1) need to build fields for all the properties a object can have, 2) build a template and add all the fields to it and 3) than you create a root-page in the pagetree for the parent that may contain children. The children will be one page for one object. Whereas the first three steps can be done manually, the import of the objects should be done by a importer script. If you also can use a CSV-file, you can find a module for the import: http://mods.pw/j If you cannot, it's also easy to write your own individual importer-script. Please ask if you need further assistance. It would be good if you have a unique property for each object with your import-data.
  3. If I understand right, you have created an export-xml from all (content-)objects of a local version of your site?, - now you want to import it with the live-site? Does this export-file comes from a PW-Site or something other?
  4. I'm not sure, but maybe this can help? http://processwire.com/talk/topic/58-any-pointers-on-creating-a-mobile-version-of-a-site/
  5. horst

    Museum website

    Hi Mats, this is a comprehensive and well organized, good looking Site. Good work!
  6. Hi, Soma has said in the old thread somewhere that it would be nice to have a sortable table so that everyone can choose his/her fovourite sorting-column. And with the relation, or should it be better called weigthen?, it is a bit like with Pete is Nr 1 (id): I prefer it, so it is the initial used sorting But the jquery-datatables uses cookies to store your last settings. I have set it to 48 hours. And that, (trying out datatables), was the intention to set this up.
  7. Hi and a happy new year, I have found some old code from here and have put it together with the jquery datatables. The result is uploaded here: http://ranking.pw.nogajski.de/ Cheers
  8. @ryan: thanks for the support via PM. I haven't done any further work on that because I'm on vacation and only sometimes online via mobile. @ryan: thanks for the support via PM. I haven't done any further work on that because I'm on vacation and only sometimes online via mobile.
  9. Hi Ryan, thanks for the reply. PW reads them in by the filesystem and that seams to use the created or lastmodified timestamp. When I start uploading 5 images with names 001.jpg - 005.jpg together per AJAX (or a ZIP with the same 5 images) as the result the sort order is uncontrolled. Some small images first and all together very un-ordered. Both upload variations, AJAX and ZIP, are actually not very customer friendly if she has the need to use the images name as sort order. If the PHP-UNZIP will be implemented that it allows a controlled unzip and pw-import file by file, it would be helpfull for that. Alternative: a (optionally) configurable sortorder (by name or unsorted/by time) for imagefields would be nice.
  10. You can do a call with your selector but with a limit=2 for the getTotal() call. This has less overhead.
  11. Hi, I have bought a ProCache licency for 3-sites and have got one key together with the download link. When I try install it on a site I get an error: Unable to validate license key. Do I need to register it somewhere? If so, where? Or do I need to do something else?
  12. Hi, I use the zipupload for images with the default unzip command, I think. $config->uploadUnzipCommand = '/usr/bin/unzip -j -qq -n /src/ -x __MACOSX .* -d /dst/'; And everything works fine. Zip is uploaded, images are unzipped and added to the imagesfield. Except the resulting sortorder in the imagesfield isn't fine. If I have images like 001.jpg, 002.jpg, 003.jpg, ... I want to have this order with my imagesfield, but the images gets stored unorderd. How can I get the images stored in (alpha) numeric order with zipupload?
  13. rock solid
  14. Hey Martijn, - right, but I've thought it was this one, ...
  15. in the first post of the thread is the download link of a zip-archive: http://processwire.com/talk/index.php?app=core&module=attach&section=attach&attach_id=695 it contain pngs, pdfs, eps's and svgs
  16. Today I have added a hook to the module that add pim_* variations to pageimage-variation-collection. This is usefull to not have mass orphaned (pim_)images on the disk when original images got deleted. I have had this code ready for many weeks and would have done some more (workaround for GDlibs buggy sharpening on pngs with alpha-transparency) before update the module. But I haven't had time for this. So, there are no other changes in module version 0.1.1 what is available now at github and in the modules section. Cheers!
  17. Hi, maybe a bit OT but worth to mention I think: PHP has a nice function to create and open a pointer to a temporary file - but with the advantage that it first write to memory and only flush content to the disk if a specified amount of memory is reached: $mb5 = 5 * 1024 * 1024; $fp = fopen('php://temp/maxmemory:' . $mb5, 'rb+'); // then add content to the pointer ... fputs($fp, "hello\n"); // At the end rewind and echo out the content: rewind($fp); echo stream_get_contents($fp); The first 5 MB will kept in memory and if the content hits the limit it gets written into a temporary diskfile. see: http://www.php.net/manual/en/wrappers.php.php
  18. @retinafunk: WOW! --------- found this and thought it maybe of interest: https://github.com/webcreate/infinite-ajax-scroll/blob/master/src/jquery-ias.js#L630 ?
  19. Looks good. I'm actually working on a DB for a colleague and I have imported 2000 pages and 35.000 images similar like that. For testing I use breaks in the loop to just test only one import, or use a counter and import 5 or 10 images before breaking. When seeing it works well I comment the breaks. Also I make a SQL-Dump before testing/modifying/importing. And I write logfiles. And I love importer-scripts!
  20. @Ryan. Ooh, - it was based on the default Basic-Profile, but have switched to use Spex and have created many Fields, Templates and Pages. During this I (must) have set the Template of the http404 page to tools. Switched back to basic-page template it works as expected again! Thanks Ryan.
  21. Yes, have switched to language support!
  22. I get this Errormessage when calling a page that doesn't exist. I think I have disabled / messed up the correct handling of 404 codes by PW, but don't know where. How can I correct it? <br /> <b>Fatal error</b>: Exception: Template file does not exist: '/www/htdocs/site/templates/tools.php' (in /www/htdocs/wire/core/TemplateFile.php line 67) #0 /www/htdocs/wire/core/TemplateFile.php(55): TemplateFile->setFilename('/www/htdocs/w01...') #1 /www/htdocs/wire/core/Page.php(1260): TemplateFile->__construct('/www/htdocs/w01...') #2 /www/htdocs/wire/modules/PageRender.module(297): Page->output(true) #3 [internal function]: PageRender->___renderPage(Object(HookEvent)) #4 /www/htdocs/wire/core/Wire.php(359): call_user_func_array(Array, Array) #5 /www/htdocs/wire/core/Wire.php(317): Wire->runHooks('renderPage', Array) #6 /www/htdocs/wire/core/Wire.php(381): Wire->__call('renderPage', Array) #7 /www/htdocs/wire/core/Wire.php(381): PageRender->renderPage(Object(HookEvent)) #8 /www/htdocs/wire/core/Wire.php(317): Wire->runHooks('render', Array) #9 /www/htdocs/wire/modules/Process/ProcessPageView.module(433): Wire->__call('render', A in <b>/www/htdocs/index.php</b> on line <b>225</b><br /> <p class='error WireFatalError'><em>This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. Administrator has been notified. </em></p> I don't know why it checks for a template file 'tools.php'. I have called childpages from different parents that have templates 'basic-page', 'gallery', etc. but no one uses the template 'tools'.
  23. you also should check apache / htaccess, especially: <IfModule dir_module> DirectoryIndex index.php index.html index.htm </IfModule>
  24. Don't really know if it supports what you needs, but seems to be worth a look / try: http://processwire.com/talk/topic/3471-ability-to-sort-and-search-through-users-in-admin/#entry36481 https://github.com/apeisa/ProcessUserExtended/blob/master/ProcessUserExtended.module
  25. Hi Jonathan, it's really nice & fun to use Spex! Now as I have played around with it when switching debug mode to false I run into an issue that breaks the minify process and end up with a page without styles. In the modules method compileStyle a link to a stylesheet appended by a ?v=100 isn't recognized correctly. A vardump of the pathinfo outputs something like: array(4) { ["dirname"] => string(34) "/site/modules/AdminTemplateColumns" ["basename"] => string(30) "AdminTemplateColumns.css?v=100" ["extension"] => string(9) "css?v=100" ["filename"] => string(20) "AdminTemplateColumns" } The extension isn't recognized. As the $stylesheet is a URL at first and not a filesystem link I come up to pass it through parse_url() first and use that path. Also needed is to keep the extracted path and return it back if it isn't a less-file: $sheetInfo1 = parse_url($stylesheet); $sheetInfo2 = pathinfo($sheetInfo1['path']); if ($sheetInfo2['extension'] != 'less') return $sheetInfo1['path']; This solved the issue with breaking the Minify.
×
×
  • Create New...