Jump to content

Peter Knight

Members
  • Posts

    1,384
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Peter Knight

  1. For more complex searches such as by template etc, you can always use the dedicated Find section under Pages nav. I find it's very powerful and quick and worth the extra click.
  2. Arjen - that's very cool. Thanks I've adapted it slightly to my requirements but it's going to come in very useful. I notice that the numbering is a little off for me. My three rows start at 2 instead of 1. Not a big deal - I'm fiddling with the setup now.
  3. hey Chris That would work. I'm using a responsive framework in there so need to adhere a little to it's setup.
  4. Lovely site Pete. It's very fast loading too. Are you using ProCache or just an optimised VPS etc?
  5. Peter Knight

    Woof woof

    It's Friday. Some of you know what I mean. Image credit
      • 5
      • Like
  6. Guys - thanks for the info and suggestions. I'm currently playing with some modulus thingys I can see how that applies and odd or even item class to a div. I'd still need an "else" statement though to alternate the left and right photos but I think I can get there. Cheers
  7. Hi guys Is there a way to call a Repeater content and specify that Repeater item 1 should use mini template "odd" repeater item 2 should use mini template "even". I think that's half my battle. Basically, I have a weird little grid of cubes as follows I have it all working as basic CSS and HTML but I now need to make it client edit friendly. I have some complexity in that: 1. Each text panel has a unique color (ideally specified by CSS) 2. On each row, the photo and text are on different sides I was wondering if a repeater would work. I can certainly use that to allow client to add raw text and image. I then realised that allowing the client to add content isn't the challenge as much as outputting it correctly on the front end. I'm having trouble understanding how I can tell the page to Make Row 1 use this blue background. Put the image on the right. Make Row 2 use this pink background. Put the image on the left. Make Row 3 use this other blue background. Put the image on the right. I could always resort to plain non-repeater fields but I'd then have 6 fields etc
  8. Hi tpr I seem to recall a similar problem before where the image was either the first or last column of your lister. Does that seem to be the case for you?
  9. The new images field looks amazing. Anytime the community requests something, we get something so much better than expected. Reminds me a little of the alleged henry Ford quote. Back to image cropping, most of our sites use CroppableImage. Not having a cropping solution based on pre-sets in PW3 (in-built or non-native) means we can't take advantage of these V3 right now. That's OK-ish as PW3 isn't officially released yet. I do wonder how this will develop. Will native cropping come to V3 soon and if so, will we have to rewrite all our cropping code across every site? $image = $page->images->first()->getCrop('portrait', "width=200, height=200, quality=80"); I think Horst has done an a amazing job with CroppableImage and it's an essential default module for most of us. I completely sympathise with his sentiment that continuing development of CI doesn't make sense when the images field has breaking changes. Anyway, I guess what I'm ultimately saying is +1 for image cropping around predefined presets. A year ago that I proposed something like this (last screenshot) where various preset shapes were displayed alongside the image (and callable via the API). I'm sure there's better ways to achieve this but if Ryan or Horst or Tom needs any extra assistance, I'm more than happy to help with wireframes, mockups, or testing etc.
  10. Just a quick update on the above in case anyone else runs into problems with this. Having had the solution work for most sites, today I had a persistent "unrecognised HTTP host" message even though config module was uninstalled congig settings were correct caches were cleared etc As soon as I fired up the same site Admin in a different browser, the issue disappeared and I could publish roles etc. In this case it was Google Chromes cache caching my old config files. Over and out !
  11. Was thinking that too.
  12. Hi Horst Having a few image issues when I install CroppableImage on 3.0.17 Symptoms are Clicking the trash icon on the thumbnail has no effect. Normally a red border around the image suggests it's ready for deletion on page save Clicking a thumbnail doesn't go into edit mode where 3.0.17 image information panel appears. Normally this displays image name, Crop button, Variations button Ultimately, when the new folder is copied into site/modules, what should it's exact name be? Is it not advised to manually remove the folder FieldtypeCroppableImages and then upload your ZIp via Modules manager (instead pf copying)? This is clearing the contents of site/assets/cache, right? site/config.php doesn't have any adminThumbOptions options. Did you mean wire/config.php which does? Assuming all of the above is correct, I'm still getting those symptoms mentioned above. I did briefly get the following error flash up and it's very likely they're related but unsure why installing Croppable would cause the first two. In the meantime, I'm going to manually find and copy over those 404 files.
  13. I seem to have a bug with the new images field and 3.0.17 When I click the trash icon on a thumbnail, there's no effect. Previously I'd have a red line around the image border which signifies the image would be deleted on save. Also when I hover over a thumbnail and click 'edit', nothing happens. The only thing I'd done in the past few hours was to install the new V3 Croppable image but I don't think it's related to this.
  14. I think the new Images field is really nice. Beautifully designed and miles ahead of the old images field. I have to admit though. I really miss a list view. I'm not saying I miss the old list view but I think a list view is needed. Right now I'm working on several galleries of images with many similar images (cropped and non cropped) It's not practical with several images to hunt around via tool-tip for the image information. With a list view, I can see what I want instantly.
  15. No clarification needed I work from home on my own all day so I rely on the PW forums for my daily humour :-/
  16. If you're wondering what adminThumpOptions are (I was), see https://processwire.com/blog/posts/processwire-core-updates-2.5.9/ (BUT USE THIS SETTINGS FOR PW3+) Thanks for this making this V3 compatible Horst. Now I can properly use PW 3 goodness Impatient Pete
  17. Great reading- thanks Kongondo. So if I'm populating DataTables with the following, this is simply called Server Side processing you refer to? <table id="datatables-manage-cows" class="display"> <thead> <tr> <th>Date</th> <th>Time</th> <th>Description</th> </tr> </thead> <tbody> <?php $items = $pages->find("template=a-cow, sort=-date,sort=-time"); foreach ($items as $item){ echo"<tr> <td>{$item->cow_date}</td> <td>{$item->cow_time}</td> <td>{$item->cow_description}</td> </tr> "; }?> </tbody> </table>
  18. Hi Mischa Just wanted to chime in here in case this is a question coming from your client. I don't know of any instances of PW being hacked but the reality is probably nothing is un-hackable. It all depends on the ambition and resources of the hacker Vs the robustness of the platform. I'm not trying to scare you here but when my client asks me "if PW has ever been hacked" it's good to set expectations. Unless you specifically wish to get into a situation where you're responsible for security, then don't be accountable for that. if Microsoft, Sony, US Government still get hacked with a security budget of (probably) millions and a security team outnumbering yours, then it tends to illustrate that any online platform has the potential to be hacked. A thorough and regular backup agreement is your best asset here so at least if you do get hacked, you have some type of salvageable website until you identify the source of the hack. Hacks can come in the form of hosting vulnerabilities, poor password storage practices, hacks via 3rd party modules or scripts, database exploits etc etc If any of these were targeted and your site was down, to your client it would all amount to the same thing "PW has been hacked". The reality is, a hacked PW site might be completely unrelated to PW and security. Just for the record, I believe PW has an extremely positive security record More importantly, I imagine if anything was found, there would be a very fast response from Ryan and Co.
  19. I'll probably look at this today and try a demo. On this page, under the tab called "Server Side Script", it *seems* like we just need to add the proper database credentials and database columns etc or am I overlooking something crucial?
  20. I have a project running DataTables using a different CMS. Coincidentally, yesterday I started rebuilding it in ProcessWire or at least doing a proof of concept with a small amount of data. Currently I'm just populating the DataTables with a regular PW selector and foreach statement. Do I get the feeling that long-term that's no fast enough? On a side note, have you tried using ListerPro in the admin with multiple columns? That works very quickly albeit backend only.
  21. Is Adrian actually a French Canadian called Tracey DeBugger ? :-/
  22. Get well soon. Sounds like you need a rest instead of contributing to any modules. Any chance you can take some time off or at least wind down a little?
  23. Is there a way to add an active class to the root parent of an active child? IE If I'm currently viewing the page called Mars in the tree below Home Fruit - Apple - Bannana Planets - Saturn - Mars Guitars - Fender - Les Paul I'd like Planets to have some class. It's normal for me to display to the user the section they are currently on.
  24. Horst - is this what you were waiting for? New image fields just announced by Ryan. https://processwire.com/talk/topic/13215-pw-3017-major-upgrades-to-images-field/
  25. Hey Adrian I just meant that TracyDebugger had uncovered a call to one of my own missing include files. I didn't mean there was an issue with TD as such
×
×
  • Create New...