Jump to content

rolisx

Members
  • Content Count

    48
  • Joined

  • Last visited

Everything posted by rolisx

  1. also tried to use an additional image field.... 500 error...
  2. it doesn't work. even if i go one by one. it stops at 162 images......
  3. Thanks for the info, Soma. What would you suggest? Just try and hope it works at some point? do you have a workaround idea? Several image fields?
  4. Well, it seems that the problem starts much earlier. I can upload around 150 images (width 1600px, size between 300 and 600KB), after that, processwire does not store them anymore.....
  5. it returned 96. Then I added the files like 10 at once instead of 50 and then it worked again. for a while. up to 162 images. Then the same again. I can add more pictures, save the page, leave and come back to it and the images are gone (the ones I just uploaded). this is really weird...
  6. it does actually render the rest of the website correctly. It just stops after 98 pictures. and by the way, it's only thumbnails...
  7. Hi all I have a problem here. I created a gallery with 240 pictures. Created an images field with no maximum amount (0). Unfortunately, only 98 of the 240 images show on the website. Any idea what I possibly could have done wrong? Thanks for your help! <?php foreach ($page->images as $image) { $options = array( 'quality' => 90, 'upscaling' => false ); $thumb = $image->size(250, 250, $options); ?> <div class="col-xl-2 col-lg-3 col-md-4 col-sm-6 col-6 foto"> <a href="<?= $image->url ?>" data-lightbox="lightbox" > <img src="<?= $thumb->url ?>" alt="" > </a> </div> <?php } ?>
  8. Thank you @BitPoet!! That solved it!
  9. Thanks @Zeka But I don't know where to put that code to make it work.. <?php foreach ($pages->get('/produzenten/')->prod_repeater->sort('prod_objekt') as $produzent) { ?> <div><a><?= $produzent->prod_objekt ?> <?= $produzent->prod_hausnummer ?>, <?= $produzent->prod_ort ?></a></div> <?php } ?> The above will only sort by prod_objekt (streetname)...
  10. Hi all! I have a little problem here. I want to sort a list of addresses by streetname and then by number. First, I just had a field "prod_objekt" (address) containing both and then have a foreach loop like this: $pages->get('/produzenten/')->prod_repeater->sort('prod_objekt') as $produzent. Unfortunately, this would not sort by streetnumber if I had the same streetname but multiple numbers. Now, I thought I could sort by two fields. prod_object (adress) first and then by prod_hausnummer (streetnumber). But I just don't know the code for it. I tried this: $pages->get('/produzenten/')->prod_repeater->sort('prod_objekt.prod_hausnummer') as $produzent, but it wouldn't work. Any ideas on how to solve this? Thanks for your help Roli
  11. @netcarver yea, I saw that, but it's not that package. I had contact with their support and they just said "it's not allowed to use options".....
  12. Hi Zeka, i did. The hosting doesn‘t allow the word ‚Options‘ in the htaccess file...
  13. it doesn‘t work. i think i need an alternative code for ‚options -indexes‘ but without the ‚options‘...
  14. Hi Guys, Just finished a website locally and wanted to upload it on the webserver of my customer. I got a server 500 error. Now, the guidelines of the hoster (world4you.com) does not allow "Options" in the htaccess-file. So, when I uncomment these: Options -Indexes Options +FollowSymLinks the site is visible, but the content won't show and no links are available. Not sure if I need the Symlinks-part but I guess I need a workaround for the Index-part. Can anybody help here? I need the website up and running asap.... Thanks! Roli
  15. Guys, me again. I'm still trying to wrap my head around this module. How can I achieve the following structure: Home -- Submenu 1 (anchor #) -- Submenu 2 (anchor #) ... Products -- Submenu 1 (anchor #) -- Submenu 2 (anchor #) ... and so on.... I need a clickable first menu-level (home and products are main sites and need to remain clickable). and then I need the submenus to be anchors, so clicking on the link jumps to the correct position on this or the other page. Is this possible. Or is it done differently in Processwire? Url segments maybe (tried to understand this, but no luck..)? Thanks for any help...
  16. It seems to install these but I cannot find them under "modules" anywhere.... what am I doing wrong?
  17. but how can i install these? doesn't seem to work
  18. can anyone tell me where I can find these PW3 branch files? PaymentModule and PaymentInvoice?? Just bought the Module but these are not included it seems...
  19. Hi Everyone I have a problem here. I have built a site with Processwire on localhost and then transferred to my customer's server. a) it's a windows server (unfortunately) and b) there is a domain-mapping for this site, the domain points to a folder of another domain. Sorry, I can't explain it any better, I don't really understand the different types of servers (why do they have to be different anyway...). My problem is, that I see the main website but not the admin page. Do I have to add anything to my .htaccess file? I also tried to include web.config file. Not .htaccess nor web.config file have an impact when changing its content. I really have no clue what to do!! Links: mcconnellacademy.ch, mcconnellacademy.ch/admin Thanks for any pointing in the right direction!
  20. aaah! now I see! sometimes, you don't get the most obious things. Thanks Soma!
  21. Hi everyone, me again. I have a problem with my MarkupSimpleNavigation Setup. This is the structure (the important part of it): - about - news (visible in navigation an marked "active" when news-items are selected - news-item 1 (not visible in navigation, link will be on the news site) - news-item 2 (not visible in navigation, link will be on the news site) - news-item 3 (not visible in navigation, link will be on the news site) From what I found in the forums I have the following php-code for the markup navigation: <?php /* MarkupSimpleNavigation Example for Bootstrap 2.3.2 Multilevel Navbar */ // load MarkupSimpleNavigation module $nav = $modules->get("MarkupSimpleNavigation"); /* SETUP HOOKs ------------- */ // hook to have custom items markup $nav->addHookAfter('getTagsString', null, 'customNavItems'); function customNavItems(HookEvent $event){ $item = $event->arguments('page'); // first level items need additional attr if($item->numChildren(true) && count($item->parents) < 2){ $title = $item->get("title|name"); $event->return = '<a href="#" class="dropdown-toggle" data-toggle="dropdown">' . $title . ' <b class="caret"></b></a>'; } // submenus don't need class and data attribs if($item->numChildren(true) && count($item->parents) > 1){ $event->return = '<a href="#" class="active">' . $item->get("title|name") . '</a>'; } } // hook to add custom class to li's that have submenu $nav->addHookAfter('getListClass', null, 'customListClass'); function customListClass(HookEvent $event){ $item = $event->arguments('page'); // if current list item has children and is level 2 from root if($item->numChildren(true) && count($item->parents) > 1){ $event->return = ' dropdown-submenu'; // adds class to li } } /* Render Navigation Markup ---------------- */ $navMarkup = $nav->render( array( 'max_levels' => 3, 'parent_class' => 'active', 'current_class' => 'active', 'has_children_class' => 'dropdown', // all li's that have children 'outer_tpl' => '<ul class="nav navbar-nav pull-right">||</ul>', 'inner_tpl' => '<ul class="dropdown-menu">||</ul>', ) ); echo $navMarkup; ?> I want the navigation link "news" to show the template "news" with links to the "news-items" (that's what I have). "News" should always be "active" when "news" or "news-item" are clicked. What am I missing here? this is what it looks like so far: http://rolspace.net/hd/energiegossau/uber-uns/news/ Thanks for your help. Roli
  22. Thanks for the input. It works. Have a great day!
  23. Thanks Macrura, I changed the news items as subpages now. But I'm still left with the same problem. I don't know how to fill my news container with the content when I click on the links. I've tried using AJAX but I guess, I just don't know how. barbajs also seems way to complicated for me. Any ideas? Where I'm at: I have news-items containing date, title, text and images. on the right side, I have links containing date and title. When one of the links is clicked, the container is supposed to fill with the right news details. Any ideas anyone?
×
×
  • Create New...