Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

13 Good

About biber

  • Rank
    Full Member

Profile Information

  • Gender
  • Location

Recent Profile Visitors

1,566 profile views
  1. Hi @adrian, thanks for your fast reply. I will try out this in the next days. Tonight it's time for bed.
  2. I deleted an amount of files in the database (via phpMyAdmin). After that I was able to edit the page again. Thank you for your help, I am still learning ... Now I created some subpages to avoid this trouble again. Is there an easy way to move some images from the parent page to the subpages (preferred complete with title, description, etc.)
  3. maybe, its a problem with the image-extra module?
  4. Hi @kongondo, now the images are deleted, but the page 'meine Heimat' still shows the name of the deleted images.
  5. save $p seems not to be the correct syntax???
  6. Hi @kongondo, I have modified your script like this: <?php include('./_head.php'); // include header markup ?> <?php if($user->isSuperuser()) { $p = $pages->get(1029); // delete some images based on some condition foreach ($p->images as $img) { if($img->filesize<300000) continue;# if some condition met, skip deleting this image echo $img->name.'wird gelöscht<br>'; $p->images->delete($img); } // if deleting all #$p->images->deleteAll(); }?> <?php include('./_foot.php'); // include footer markup ?> and saved as a template 'loeschen'. Then I created a Page 'Bilderloeschen' based on this template, but without any further content. If I call this page it shows me "imagename wird gelöscht", but after that all images are still there. Can you tell me, what is missing here? Thank you in advance Günter
  7. Hi @kongondo, I'm still a beginner, so it takes time to come along. But I will try to use your script tomorrow. Thanks a lot Günter
  8. Thanks for Your replys. @adrian: Debug mode is enabled, but none of the logs shows any error. I don't think, I have the right to increase PHP memory. @kongondo: Yes, I think about dividing this page into smaller pieces. But how can I delete an amount of images without the edit-funktion on my backend? As I described, deleting files in the directory >site >assets >files >1029 by FTP does not help.
  9. Hi, I'm running the site http://malabu.de with a number of picture galleries. I can edit all pages (add and remove pictures, etc.) but the one called "meine Heimat". If I try to edit it, I get an 'Internal Server Error'. This page contains about 300 images, about 500k up to 8M big. Maybe, this is too much, but how can I get rid of the surplus files? I tried to delete some of the images in the directory >site >assets >files >1029, but this did not help. Any ideas?
  10. Before I came to PW, I wrote my websites in simple text-editors, finally with notepad++, which is a great help even for HTML, CSS and PHP. So I'm familiar with HTML-tags and CSS-syntax. I like to keep things simple to realize fast loading and good care. Therefor I did not yet use any framework or even a WYSIWYG-generator. And that is why I like PW: I have the freedom to write and control my own code. But I'm shure, I have to learn much more about all the convenience this program can give to me. Thanks to You all.
  11. @szabesz : Thanks for the hints. I looked at the several alternatives, maybe I will use it later. For now I have changed the content of the 'Pflanzenhof'- and 'Gartengestaltung'-pages so that the visitors see 'real' content. This seems to be better. If now all visitors with current mobiles are able to see an error-free site I will be satisfied.
  12. If I do it without a logo on top, the page comes as I expect it. Especially in the mobile version it may be a little bit confusing to see the same menu one below the other, but is that a big mistake? @szabesz: The off-canvas menu uses javascript, which I tried to avoid.
  13. Hi and thank you again, yes, @Klenkes, you are right, this was my simple solution to hide the menu. I've tried some methodes to solve that menu open/close problem, but for I use only pure html and css, I did not find another good example yet. For me it sounds logical: I want to go to the next page - click on Menu - the long menu appears - I choose a page - the menu vanishes again. @dragan: I know about that issue, but did not find the reason yet. All other links work OK, but the top links 'Pflanzenhof' and 'Gartengestaltung' should lead to the part of the menu belonging to that part of the nursery. For that I use the following code, slightly modified from the main menu: <?php include("./_head.php"); ?> <div id='haupt'> <ul> <?php echo '<img src="'.$page->logo->width(300)->url.'" alt="'.$page->logo->caption.'" title="'.$page->logo->caption.'">'; // top navigation consists of homepage and its visible children $grouppage = $page; $children = $grouppage->children(); /** * Recursive traverse and visit every child in a sub-tree of Pages. * * @param Page $parent root Page from which to traverse * @param callable $enter function to call upon visiting a child Page * @param callable|null $exit function to call after visiting a child Page (and all of it's children) */ function map(Page $parent, $enter, $exit=null) { foreach ($parent->children() as $child) { call_user_func($enter, $child); if ($child->numChildren > 0) { map($child, $enter, $exit); } if ($exit) { call_user_func($exit, $child); } } } map( $grouppage , function(Page $page) { echo '<li><a class="men" href="' . $page->url . '">' . $page->menutitle . '</a>'; if ($page->numChildren > 0) { echo '<ul>'; } } , function(Page $page) { echo '</li>'; if ($page->numChildren > 0) { echo '</ul>'; } } ); ?> </ul> </div> I am still learning and am very glad to have the friendly help from you all.
  14. @Klenkes: Thanks for your fast reply. I know, malabu.de is not yet mobile-ready, I'm working on converting it to a flexbox-design. This will still take some time because I'm just a hobby-webdesigner.
  15. Hi, I've tried to test my sites http://bielenberg-soerup.de and http://malabu.de on different hardware. Because I dont have any apple-equipment I used some websites, which promise to show the content on IPhone and Co (http://www.responsimulator.com, http://mobiletest.me). But none showed my pages. In general they seem to work, I tested it with my old site http://bielenberg.hostingkunde.de. Is there anyone with real equipment, who can tell me, if the pages are shown correctly?
  • Create New...