Jump to content

entschleunigung

Members
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by entschleunigung

  1. Hi BitPoet, it is not forgotten. thank you again for your support, it all worked out in the end. your attached file was a great help to me.
  2. thank you very much, this looks promising. I imagined it to be exactly like your screenshot. i will test it as soon as i am back in the office. unfortunately, that didn't work, so that wasn't the problem. var_dump still says NULL. (I was quite ready to laugh at myself). cheers
  3. Hello all, paginating 'normal' pages and subpages is not a problem, but i have a merged array here that is not working. at the end i would like to have a page that has several areas with pagination. you know this from the admin area, there's an ajax pagination if you have many pages in a tree. something like this: DE 1. News title 2. News title ... 10. News title Pagination for DE 1 - 2 - 3 - 4 ... EN 1. News title 2. News title ... 10. News title Pagination for EN 1 - 2 - 3 - 4 ... ES 1. News title 2. News title ... 10. News title Pagination for ES 1 - 2 - 3 - 4 ... this is the way to build the array: $mailings_natural_sort = $page->children()->each(function ($natural) { $natural->custom_sort = $natural->created; }); $mailings_custom_sort = $page->children("news_alt_date!=''")->each(function ($custom) { $custom->custom_sort = $custom->news_alt_date; }); $all_mailings = $mailings_natural_sort->add($mailings_custom_sort)->sort('custom_sort'); the mailings are still split into languages assigned to backend, that's done here foreach ($languages as $language) { $news_related = $all_mailings->find("refNewsLanguages=$language, listMailing=0, start=0, limit=10"); if (count($news_related)) { foreach ($news_related as $mailing) { // list news } // for testing // echo $news_related; // returns 10400|10668|10610|10217|10580|10653|10598|10631|10566|10625 // why this not work? $pagination = $news_related->renderPages(); echo $pagination; // returns nothing, nada, zero } } the prerequisite for pagination is given, "Allow Page Numbers" enabled on the list page. why this not work? and has anyone ever implemented pagination with ajax and has an example of it? for relevant hints will ich auch einen Kasten Spezi springen lassen 🙂
  4. I would like to take this opportunity to thank you once again for your fantastic support yesterday and today.
  5. Hi kongondo, same as @dynweb Version "Media Manager (Process) v0.1.2 β" The Download link from your email results in a 404?!
  6. Hi kongondo, unfortunately i have the same problem, some thumbnails are not displayed. the workaround from the troubleshooting page did not help either. Setup: ProcessWire 3.0.148 PHP Version 7.3.25 FPM/FastCGI mysqlnd 5.0.12-dev thx
  7. For the time being i have upgraded to version 3.0.148, with this version there are no problems. thanks so far
  8. Hello to all, some time ago i updated from 3.0.123 to 3.01.65 and noticed that the following selector does not work anymore on a multilingual site. the languages are "de" and "en". $list= $pages->find("template=tpl1|tpl2, title!^='disable-', sort=-date, limit=3"); with PW 3.0.123 this worked wonderfully, the result was for example 3 pages in "de" and "en". with PW 3.0.165 I get the 3 pages only in "de", which is the default language, but nothing in "en". what has changed, why does this selector no longer work? thanks a lot in advance
  9. Hi kongondo, unfortunately it is not possible for me to give you access to the site, otherwise I would have done it long ago. The client takes the topic GDPR very seriously and access for third parties is difficult. However, I've gotten the client to the point where we're changing the hosting, because there are other problems in this setup as well. I will definitely get back to you and report on the further progress. Thanks also for the support via mail. Cheers
  10. Hi kongondo, that was the problem that comes up every now and then: message: "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'name-of-the-image-1695' for key 'name_parent_id'"" message: "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'name-of-the-image-1695' for key 'name_parent_id'"" we already talked about the following problem via mail (Subject: Some bugs with upload images). here are some more details you asked for: What versions of MySQL, ProcessWire and Media Manager are you using? Windows IIS MySQL: 8.0.15, MyISAM, utf8_general_ci, PHP extension MySQLi PHP version 7.2.7 Media Manager (Process) v0.1.2 β Did anything change on the server recently? No What is the average size of the images you are trying to upload? 2 -3 MB Does the error happen with non-image media as well? Yes Is the error happening for different images or always the same image? different Is this a multilingual site? Yes at the moment we help ourselves with renaming the picture and always something like that 01 ... 02 ... 03 in front of the picture name, but even that does not work reliably. thank you and greetings from munich
  11. we cannot talk about forum software here without mentioning https://xenforo.com/ 🙂
  12. Needless to say, that's exactly how it works. Thanks again, you two. Greetings
  13. thanks first. as soon as i get back to the office, i'm gonna go test this out. as louis suggested, maybe it could work out that way: "salutation" => $user->my_field->title; currently, it's like this "salutation" => $user->my_field; and only the ID goes out there. vor lauter bäumen und so ... thx
  14. hi @MoritzLost, you are right of course, normally i don't have to change the format, but in this case i send the information to an external source (subscribe newsletter) that can only handle values like "mr" or "ms". (to complete it: via the LoginRegister module a user is registered and at the same time the newsletter registration is done) sorry if the information comes in bits and pieces, but i thought if i write the following, as described in the document 1=mr|Mr that in this case ProcessWire will take the value instead of the ID when the input radio is rendered. it seems i was on the wrong track 🙂 greetings & servus
  15. hi @louisstephens, thank you, of course it works that way too, but i use the option field in the user-template in connection with the loginregister module and i wanted to avoid hooks or something like that.
  16. Hello, everyone, i have created a radio field as follows 1=Mr|Mr 2=Ms|Ms the following is output in the source code: <input type="radio" name="name" id="id" class="class" value="1"> but I need: <input type="radio" name="name" id="id" class="class" value="mr"> how do I get the value to be output instead of the id? thx
  17. I'm sorry, maybe I expressed myself a bit unlucky, because what moritz wrote is certainly good and right. it's rather due to my own failings 🙂 i'm trying to solve it now by adding the filename of the pdf file to a repeater field in the user template using jquery and ajax. THX
  18. Hi Moritz, thank you very much! There are some interesting approaches. For another request i can certainly use some of it. but unfortunately i can't realize my intention with it. THX
  19. Hello, i would like to give registered users the possibility to download PDF files. What is the best way to make the user template show which PDFs the user has downloaded? Is this possible? THX
  20. hi teppo, thanks for this module! i have tried something with your module but unfortunately i have not found out how to map the following structure. ul > li.dropdown > ul.dropdown-menu any idea how I can do this?
  21. hello, i have a strange behaviour in this matter. on one page there are two page reference fields which are dependent on each other. the selector string for this is template=foo, refClients=page.refClients, sort=title if i save the page in admin, the selection works, but not via ajax if i stay on the page in admin. as soon as i change source page reference field, it looks like the selector is not working anymore and everything is displayed in target page reference field. maybe someone has an idea what i can do better. thanks a lot
  22. ryan had helped me a few weeks ago via PN. sorry that i didn't write the solution in the forum before. i hope it's no problem that i write the private message here.
  23. grid layout would still be the better option, but there is another way. the following example has a background image and the boxes work similar to masks. you would have to refine it, but it could work like this or similar. https://codepen.io/entschleunigung/pen/rNBqyNj
  24. I think with css grid layout, you can do it.
×
×
  • Create New...