Jump to content

bernhard

Members
  • Posts

    6,221
  • Joined

  • Last visited

  • Days Won

    308

Everything posted by bernhard

  1. 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"
  2. 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
  3. 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
  4. 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.
  5. 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'))
  6. 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
  7. that may help: https://processwire.com/talk/topic/4717-global-not-working-in-templates/
  8. bernhard

    Barcelona

    I'm going there in october, so i would also be interested
  9. so you get your emails but without any values in it?
  10. _func, _init and _main.php are files from the dev branch, in 2.4 there is the older structure with head.inc and foot.inc: https://github.com/ryancramerdesign/ProcessWire/blob/master/site-default/templates/home.php @dupalski the css reference is on line 24: https://github.com/ryancramerdesign/ProcessWire/blob/master/site-default/templates/head.inc#L24 are you familiar with browser debugging tools? they will help you a lot inspecting your code:
  11. if anybody stumbles over this thread, here is the correct function (also gebeer's version has got a $text/$summary bug): function truncateText($text, $maxlength = 200) { // truncate to max length $text = substr(strip_tags($text), 0, $maxlength); // check if we've truncated to a spot that needs further truncation if(strlen(rtrim($text, ' .!?,;')) == $maxlength) { // truncate to last word $text = substr($text, 0, strrpos($text, ' ')); } return trim($text); } thank you ryan
  12. thank you diogo! hm... it was the first result on a google "sublime processwire" search - don't know why i didn't find it before
  13. hello, does anybody of you use autocomplete for the PW api in your editor? is this possible? i'm using sublime text 2 and i know there is a plugin for sublime with UIKIT: https://github.com/uikit/uikit-sublime (see the github page for more examples) wouldn't that be great for PW as well?
  14. hi, i have a blog template with the field "date", where i can override the date of the posting. in my template i show the date like this: <?= $page->get('date|created'); ?> that works perfectly! is there any possibility for a selector like this without looping them through php (i would like to use the built in pagination module) sort=-date|created
  15. wonderful site! i have a bug with chrome and the responsive design on that page: http://bowtieduck.com/products/imperial-caviar/
  16. hi everyone, is this still the only option to get the text-align buttons to ckeditor? also copying the justify plugin to wire/modules/InputfieldCKEditor is not the best thing as the wire folder will be overwritten on PW updates, no? thanks for your help.
  17. hi muzzer, i'm glad you got lot's of good feedback from the more experienced guys of course, you don't NEED such designs, but if you are more a developer than a designer i think that's a good way to go and you can save lots of time and money. i would be interested in other's opinions about that approach, but i know if i started a thread with this topic, i would have no time for coding left because i would need all my time for studying all the good answeres in the forum and its offtopic for this thread... and i agree, if your clients want it that way it's the best to do so!
  18. hi muzzer, thank's for sharing! please don't get me wrong, but for me those sites look a little old fashioned. it's not that i want to blame you, but it sounds like you are a really experienced (pw) developer and i bet you are doing a great job and your sites are great from the technical/functional point of view! but they don't seem to be responsive for example and - as i already mentioned - at least they didn't "catch" me at first glance. so i just wanted to give you this feedback, because i'm afraid those designs could sell your work below value i hope you don't mind me being honest and i hope i found the right words - not so easy for me in english have you ever thought about buying a professional responsive HTML theme from one of the clubs? there are really good ones starting at around 15$ and looking really beautiful and of course are really easy to implement with PW. i'm off
  19. thank you martijn, now as i found out about this cool feature i know what you mean! here is an explanation of how to do selects based on values of previous selects: https://processwire.com/talk/topic/5941-state-and-cities/?p=58161 sorry uprightbass360, little late and offtopic for your current problem...
  20. hi marek! unfortunately there will always be someone who gets paid more money for a worse job/website so 1) don't be afraid, just do it! the first step is always the hardest and you will NEVER know everything, especially not in our fast web-world 2) coding skills are only a part of your job as a freelancer and many other parts (client communications, selling/marketing strategy and so on) you can not learn via internet... i wish you the best and i think you are well prepared! that's a very good advice!
  21. thank you bwakad, that is great! i thought this would be the first thing that i do NOT find using google, but fortunately you explained it well is this still only a dev branch feature? otherwise it should find it's way into the docs: https://processwire.com/api/selectors/inputfield-dependencies/ ! it took me quite a while searching for this solution and also the topic title of this thread is not the best
  22. martijn, could you please explain what you mean by that? @uprightbass360 maybe the elastic search module is interesting for you?
  23. i just came over a blog post of a friend of mine and thought that could be interesting for some of you: SSL Certificate Expiry Warning Script
  24. hi blad, thanks for sharing and congratulations on your first module! i hope i can also share my first module soon, but first i need a good use case / idea for it i think it would be great to stick to english in your comments - at least for me reading spanish is a real problem but anyway sticking to english is a good practise i think!
  25. thanks for sharing! i didn't know that custom search feature...
×
×
  • Create New...