Jump to content

bernhard

Members
  • Posts

    6,289
  • Joined

  • Last visited

  • Days Won

    316

Everything posted by bernhard

  1. thank you! i knew that has to be a little processwire trick that i didn't know yet
  2. looks great! it seems you transformed into a module factory why are all the files deleted at 00:20 when you click on the first trash icon? thanks for the video (again) - saves everybody of us the time for installing.
  3. hi today i came up with a small problem with my multisite setup on my plesk vserver: if i ceate a "subscription" for a domain like example.com i can choose the favourite url (www.example.com or example.com) redirected by a 301. on multisite domains that does not work because they are "domain aliases" where i can't set up the favourite url. so i tried something like this: https://processwire.com/talk/topic/7705-website-for-german-investment-company/?p=74908 and realised that $config->httpHost returns example.com wheter you are requesting it with or without www whereas $_SERVER['httpHost'] returns the "full" url with or without the www. is there any reason for that? i solved it by uncommenting the 2 lines in the .htaccess RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] what leads me to my second question: i'm afraid when i upgrade pw some day i could forget to uncomment those 2 lines. is there any best practise or the like for this problem? how do you do that? do you add comments to all the changed lines?
  4. hi backes, very nice work! i would change the button colors as they are hard to read when not hovering why not let it be like this also unhovered?
  5. hi horst, thank you for the quick reply! i changed it to 2.0 and it worked! so to clarify... if i had a vserver with multiple sites it could be that the same image works once and doesn't work another time, depending on server load (curMem)? and regarding the error message: i'm quite new to github, where would i post request to return a more meaningful error message? especially for clients... thank you for your help
  6. hi horst, thank you for your detailed answer. hm, i forgot to mention that on an older installation (2.4.x) on the same server with exactly the same php settings it works wonderfully! first i thought it could have something to do with my multisite setup at the non functional 2.5 site, but a single-site setup showed the same result (also on lightning.pw) so the actual question is: why does it work on my some week old installation? (of course i used the same image) yes, that's clear to me - but tell that my clients... ps: memory_limit is set to 128M in all of the mentioned environments (one vserver)
  7. hi everyone, i just noticed the "max image dimensions" function of processwire image field (i thought it would reject images bigger than that size and not resize it to that maximum ) and tried it on several installations but unfortunately i get the following error on most of the new 2.5 ones: first i thought it was a server issue, but i tried it with a fresh installation on lightning.pw and there's the same error! i set 1920x1080 for the max dimensions. if i don't set a maximum i get this error on large images: did i miss anything? can anyone replicate that issue?
  8. maybe the 1-step-adding-of-pages helps? https://processwire.com/talk/topic/3768-processwire-dev-branch/page-9#entry58107 got the link from this thread: https://processwire.com/talk/topic/2106-creating-a-page-without-a-title/ didn't read this one, but could also be relating? https://processwire.com/talk/topic/1648-ok-to-change-page-name-path-after-save/ [edit] ok i think it's not exactly what you are looking for but maybe you can adjust the workflow with a simple hook (never done one yet but everyone says that's simple ) [edit2] here is the "more" link from ryans screenshot: http://processwire.com/api/modules/process-template/ you can also write "OP" in the "name format for new children" field and PW will automatically increment it to a unique url like OP-8, OP-9... don't know if that's ok for you or you have to define your project id manually...
  9. hey blad and nico, personally i like blad's implementation more than nicos - i think it's easier to follow because it's kind of a step by step guide. so i think it would be a pity to stop your work on this. maybe you can put best of both your versions together?
  10. thanks for the video - that's the most comfortable way to get a good impression i like your module a lot and think it would be a great addition to the basic profiles!
  11. aaaah, sorry... forgot to setup the domain alias for bio-fisch.zwergo.net
  12. hey blad, looks great from what i see in the screenshot! do you know nicos version? https://processwire.com/talk/topic/7666-getstarted-a-module-that-helps-first-time-users-to-understand-processwire-faster/ maybe you can also host one version of your module at lightning.pw for everyone to try?
  13. hello, I'm getting a 503 - service temporarily unavailable error with my latest multisite installation: on my domain zwergo.net i have the following structure site site-multisite1 site-multisite2 site-biofisch (copy of tmp/site) tmp |-- site |-- wire "site" works "multisite1+2" work "site-biofisch" throws a 503: http://bio-fisch.zwergo.net/ tmp is a fresh 2.5.0 installation my index.config.php is 'bio-fisch.at' => 'site-biofisch', 'bio-fisch.zwergo.net' => 'site-biofisch', ...just as i did with any other multisite! when i open the site from the tmp everything works fine: http://zwergo.net/tmp and so does http://zwergo.net/tmp/admin any ideas?
  14. then you would have URLs like domain.com/dontshow/sample that's why i don't like this approach. thank's for bringing up this post, just tried to exclude pages from nav using MarkusSimpleNavigation... something like 'selector' => 'template!=team' ...works like a charm you could also add a checkbox "hidenav" to your templates you want to be able to hide from navigation and then use a selector like this 'selector' => 'hidenav=0' its as simple as that - i'm amazed once more the complete code for my navigation, just for the record... <nav class="nav-main mega-menu"> <?php $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $options = array( 'show_root' => true, 'outer_tpl' => '<ul class="nav nav-pills nav-main" id="mainMenu">||</ul>', 'selector' => 'hidenav=0' ); echo $treeMenu->render($options); ?> </nav>
  15. very nice as always! please correct me if i'm wrong, but i think it's not the best for SEO to have 2 domains showing exactly the same website (.com without /en = .de). maybe you could add a canonical link? any opinions of the experts here?
  16. hi siteaddict, welcome to processwire! i'm sorry that i can't give you an exact answer, but maybe this thread helps you: https://processwire.com/talk/topic/5941-state-and-cities/ good luck and have fun with processwire
  17. very nice site, i really like it! thanks for showing me yumpu - i was using issuu so far is it possible to get rid of the long and ugly filename? i also had one issue when resizing the viewport and using the mobile nav to "anwendungsgebiete"
  18. I'm also using dev with no troubles! you can get it here: https://github.com/ryancramerdesign/ProcessWire/tree/dev there's also a link on the download page, intentionally not very prominent
  19. hi patrick i can't really help you with your question about what is better, but you can have a look how ryan does it in the blog profile he has one .inc file with some functions (blog.inc): https://github.com/ryancramerdesign/BlogProfile/tree/master/templates in the dev branch he uses a _func.php file: https://github.com/ryancramerdesign/ProcessWire/tree/dev/site-default/templates maybe you could also split it up to one file with shared functions and seperate files with only the functions related to your "components" i don't know about performance issues though, but i think seperating code from design should be a benefit compared to loading some more bytes of unused functions... maybe you will get more qualified answeres on that point
  20. hi jordan and welcome to the forum, i really liked your posts so far and had a look at concrete5 there is an old thread with lots of thoughts on this problem. i'm linking to the last post, as the core has new features for that: https://processwire.com/talk/topic/4189-flexibility-in-page-design/?p=63924 but maybe you find all the older posts interesting as well.
  21. thank you kongondo, but that's not what i want to achieve. i have a setup like this: title created time test1 30.8. test2 3.9. test3 5.9. 2.9. test4 5.9. 1.9. i want to sort these "blog posts" either by the date created OR (if not empty) by the time field. so it should output this: test1 test4 test3 test2 but with sorting seperately i get the list sorted by created and then, if created is equal, by time: test1 test2 test4 test3 my solution is to set the "time" field required and autofill to today and sorting only by "time", but i wanted to know if this kind of sorting was possible somehow similar to getting field values with the OR selector ($page->get('this|that'))
  22. thank you apeisa for this great module! i get the following error when clicking on the thumbnail link in an image field inside a repeater before saving the parent page! TemplateFile: Invalid field<pre>#0 [internal function]: ProcessCropImage->___execute() #1 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(359): call_user_func_array(Array, Array) #2 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #3 /var/www/vhosts/XYZ/httpdocs/wire/core/ProcessController.php(204): Wire->__call('execute', Array) #4 /var/www/vhosts/XYZ/httpdocs/wire/core/ProcessController.php(204): ProcessCropImage->execute() #5 [internal function]: ProcessController->___execute() #6 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(359): call_user_func_array(Array, Array) #7 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #8 /var/www/vhosts/XYZ/httpdocs/wire/core/admin.php(85): Wire->__call('execute', Array) #9 /var/www/vhosts/XYZ/httpdocs/wire/core/admin.php(85): ProcessController->execute() #10 /var/www/vhosts/XYZ/httpdocs/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/var/www/vhosts...') #11 /var/www/vhosts/XYZ/httpdocs/site/templates/admin.php(15): require('/var/www/vhosts...') #12 /var/www/vhosts/XYZ/httpdocs/wire/core/TemplateFile.php(140): require('/var/www/vhosts...') #13 [internal function]: TemplateFile->___render() #14 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(359): call_user_func_array(Array, Array) #15 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(317): Wire->runHooks('render', Array) #16 /var/www/vhosts/XYZ/httpdocs/wire/modules/PageRender.module(337): Wire->__call('render', Array) #17 /var/www/vhosts/XYZ/httpdocs/wire/modules/PageRender.module(337): TemplateFile->render() #18 [internal function]: PageRender->___renderPage(Object(HookEvent)) #19 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(359): call_user_func_array(Array, Array) #20 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(317): Wire->runHooks('renderPage', Array) #21 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(381): Wire->__call('renderPage', Array) #22 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(381): PageRender->renderPage(Object(HookEvent)) #23 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(317): Wire->runHooks('render', Array) #24 /var/www/vhosts/XYZ/httpdocs/wire/modules/Process/ProcessPageView.module(171): Wire->__call('render', Array) #25 /var/www/vhosts/XYZ/httpdocs/wire/modules/Process/ProcessPageView.module(171): Page->render() #26 [internal function]: ProcessPageView->___execute(true) #27 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(359): call_user_func_array(Array, Array) #28 /var/www/vhosts/XYZ/httpdocs/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #29 /var/www/vhosts/XYZ/httpdocs/index.php(208): Wire->__call('execute', Array) #30 /var/www/vhosts/XYZ/httpdocs/index.php(208): ProcessPageView->execute(true) #31 {main}</pre> after saving everything works fine. i can imagine cropping images in repeaters that have not been saved can be tricky, but at least it would be great if there was a helpful error message instead of the one that i get. thanks in advance
  23. that may help: https://processwire.com/talk/topic/4717-global-not-working-in-templates/
  24. bernhard

    Barcelona

    I'm going there in october, so i would also be interested
×
×
  • Create New...