Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Vikestart

  1. If I upload images directly in the editor instead of using the separate image field, then the images just disappear. Uploading images to the image field, then inserting them in the editor afterwards works fine though.
  2. How can this be done? I'd like to add some custom buttons instead of adding to the Styles dropdown. I'm asking because Processwire controls this for each editor field individually through the CKEditor settings for each textarea field.
  3. Actually, I've managed to come up with a very elegant solution now, and would like to share it. I've added a Page field (multiple options) to the template (for the pages that have lists of pages on them). Then I added the following code to the template file: $stories = $page->children(); if ($page->pageimport) { $stories->append($page->pageimport); } $stories = $stories->sort("name"); pageimport is the name of the Page field I mentioned above. Now you can select pages that you want to import and display as 'fake' children of other pages.
  4. Thanks for the input. I found another solution though, so I thought I'd share it. $stories = $page->children("sort=-date"); $stories->append($pages->get("/thrillers/")->find("template=horrorthriller")); It may not be optimal, but it's short and it works
  5. Thank you, that's useful info. I think I didn't explain the case well enough though. Basically, in most cases, it's okay for the pages to only have 1 parent and only appear in 1 list on 1 page. However, some pages need to be listed on multiple parent pages. Something like this: Home ---- Horror movies --------- A horror movie --------- Some horror/thriller movie ---- Thriller movies --------- A thriller movie --------- Some horror/thriller movie So let's say Some horror/thriller movie has Horror movies as its parent. How can I make it appear on the Thriller movies page as well, along with that pages other children? Maybe you already answered this, but do you have a concrete example?
  6. I need certain posts to appear on multiple pages. I use the following code to outpot lists of pages on the category pages: <?php $stories = $page->children("sort=-date"); if ($stories->count > 0) { ?> <div class="cntbox_list"> <?php foreach($stories as $story) { ?> <div class="cntbox_list_item"> <a href="<?php echo $story->url; ?>" class="cntbox_list_title"><?php echo $story->title; ?></a> </div> <?php } ?> </div> <?php } ?> How can I make a post appear in multiple lists like that?
  7. When I close the browser window, the login session is gone. I have to login everytime anew after closing and re-opening the browser (Chrome). I do have HTTPS activated, but remembering the session should still be possible?
  8. Setting the defaultGamma option to 0.5 instead of the default 2.0 seems to have fixed the image quality. $config->imageSizerOptions = array('upscaling' => true, 'cropping' => true, 'quality' => 100, 'sharpening' => 'none', 'defaultGamma' => 0.5); Thanks for the help everyone!
  9. Oooh, I didn't even know about that config.php file and that list of settings you linked to is certainly useful. Still getting to know Processwire. I'll just dive in and see where this gets me Thanks!
  10. What is up with the quality of images when they are resized? Is there anything that can be done to increase the quality? Compare the two: Original: Resized (barely smaller): The quality loss is enormeous, especially in dark areas of the image.
  11. I did try the Image Interceptor module, but I couldn't get it to work. Though I see that Processwire 3.0 is not listed as compatible, only up to and including 2.7. The module didn't seem to have any effect on anything. >_> Got the Image Interceptor module to work now. It does the job.
  12. I know I could do it with jQuery, but I don't want to use Javascript because then there is a delay before the changes are applied, and since this is needed for CSS styling, the delay would be very obvious. As for the second method you describe, I have no idea what any of that means Care to elaborate?
  13. Hey, I'm just starting out with Processwire, coming from WordPress, and I'm really happy with this CMS so far. However, I have been searching the internet for hours now without finding an answer to this: How can I have images automatically wrapped inside div tags? An alternative would be to give the parent <p> tag a specific class. I just need to control the parent of the image tags for styling purposes.
  • Create New...