Jump to content

cpx3

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by cpx3

  1. @bernhard That looks perfect, thanks!
  2. Hi to all, I would need to create a pagelist with the children of one parent page, but exclude some of the children. I found ProcessPageList find but have no clue how it works (it either lists all the children of home or only shows the page itself). Could anyone help me with an example? Thanks in advance, Bernhard
  3. Thanks for the quick answer! Actually I want to display silbling pages but not all of them…
  4. First, thanks for the lovely module! Is there any possibility to select the pages for the PageList with a selector instead of their parent? I would need for example to show only newsletters that have not been sent now ("checkbox_sent=0").
  5. @Robin SThanks a lot, that was the solution! For whatever reason I had activated access control for that field...
  6. Hi to all, I have a very strange but annoying problem with a checkbox. It usually works fine, but on one page I get different results whether I call the page with Safari or with Google. That means that when the checkbox is checked Safari would return a value of "1" but Chrome would return a value of "0". In the screenshots below you see the value for a checked checkbox in both browsers. How ist this possible?
  7. Whatever I do, it does not work (it shows only the link). I have only this textformatter and the video is public: <p>https://www.youtube.com/watch?v=ciyEItodGOw</p> I have no idea what else could be wrong…
  8. By the way, it looks as if the module would not even touch the source code. There is just the link, exactly like I put it. But I got an entry in the log file, which says: Retrieved embed for: https://www.youtube.com/watch?v=… [page:241698, field:bodytext_ck] So the module seems to work (I replaced the v= with dots as otherwise the video appears here.) Any idea what might be going wrong?
  9. I uninstalled an reinstalled everything, but the problem remains. I only see the link, even if I configure the module to hide it…
  10. Yes, I did at least ten times. But after hitting the Refresh button the module appeared as installed again (and even the textformatter was active in the textfield). Till now I was not able to uninstall the module to do a clean reinstall…
  11. I did, yes. I reset it and set it again, but with no result. I also tried to delete the module to reinstall it, but it immediately reappears after deinstallation so I cannot delete it. When I deleted the files it was shown missing and PW asked me whether I wanted to delete it from the database (what I did) but then I got an SQL-error when trying to reinstall it. Seems as if something is broken with the module…
  12. Hello to all, I just installed Ryan‘s video embed module but I cannot get it to work. The videos appear in the cache, but regardless what settings I have, only the text with the URL will show up (it does neither hide the url if I set that option in the module‘s options.) On an other site it works with the same videos and settings but I have no idea what I am doing wrong. Any idea? Thanks in advance, Bernhard
  13. A million thanks! :)
  14. PS: When I link to another page the modal remains blank...
  15. Bernhard, thanks for the quick answer! If I want to open the page I am actually editing, what would be the url?
  16. Hi to everybody, In my backend I have a markup table that lists some information via a Runtime Markup field. Now I would like that on click on of the items the details appear on a modal. I succeded to open the modal an to display a complete page, but how do I only display the content of another runtime markup field on that modal? Thanks as always, Bernhard
  17. Hi to all, I have a very annoying problem: The selector $p = $pages->get("template=data-newsletter-subscribers,email=$strMail"); will always find and update pages that are trashed, even if there exists a none trashed version. What am I doing wrong? Thanks in advance, Bernhard
  18. @adrianI just had the same problem, which took me hours to figure it out...
  19. @Jan RomeroYou are incredible. Danke! (PS: I like your profile image!)
  20. Hi to all, I have a page reference field (select_categories) that references to a page called "unternehmen". When I debug it, PW says that the of the referenced page is "unternehmen". But when I put the condition, I get false. What am I doing wrong?
  21. Thanks for that. Looks like that the problem was that one select_author is a select with a single value... I changed it and now it seems to work.
  22. Hi everyone, I have quite a strange problem. When I use the following code with a terminal php command, it produces the following error message: Fatal Error: Uncaught Error: Call to a member function of() on int in /site/templates/process_pagefields.php:20 #0 {main} thrown (line 20 of /site/templates/process_pagefields.php) When I use it with Tracy it works fine from time to time, but sometimes it echoes "0", too. Any ideas what I am doing wrong? Thanks in advance, Bernhard Here goes the code include("/html/index.php"); // bootstrap ProcessWire // Get derefAsPage property of page_field_b to distinguish multiple/single page fields $deref = $fields->get('select_related_articles')->derefAsPage; foreach($pgs as $p) { // For this page, get the pages selected in page_field_a $selected_pages = $p->select_author; // Standardise $selected_pages to PageArray in case of "single" field if($selected_pages instanceof Page) $selected_pages = $selected_pages->and(); foreach($selected_pages as $selected_page) { // Add this page to page_field_b on the selected page $selected_page->of(false); if($deref) { $selected_page->select_related_articles = $p; echo "Set $p \n"; } else { $selected_page->select_related_articles->add($p); echo "Added $p \n"; } $selected_page->save(); } $numPgs--; echo $numPgs."\r"; }
×
×
  • Create New...