Jump to content

joe_g

Members
  • Posts

    214
  • Joined

  • Last visited

Everything posted by joe_g

  1. Relevant discussion: https://news.ycombinator.com/item?id=28838132
  2. Yes, this helps for deployment and updates. I use git-ftp which is similar in philosophy, perhaps. Was hoping to find a more robust solution with docker, where I can swap containers at deploy perhaps, for easier rollbacks and also maybe quicker to reproduce? But I'm not sure if I actually need this, or I'm making it too complicated.
  3. Was looking into this actually, but then you'd want to isolate the sites from each other which means php-fpm etc. I got it running recently, so its not impossible, but it feels way less robust than some docker based setup. If something is up with apache/nginx ALL sites go down, etc.
  4. Thank you . Had a look and it looks great, however I was hoping to avoid tying up my entire professional life to some service with a subscription model and tiers. I might rather try and go the longer route I think, whatever that means...
  5. Dear everyone, I've used PW in probably, at least, 100 project the last 10 years. I've been wanting to quit shared hosting since at least five years but I don't have a good idea exactly how yet (as a 1-man company) and I was hoping to get insights and inspiration in your workflows. I've prepared by moving over entirely to Linux, and I'm runing a bunch of VPS's for some personal projects. I also do all my dev work remote, on a VPS. I can set up debian reasonably okay, I think. My biggest issues are: 1. Every shared hosting has a different interface and different constraints 2. I can't easily copy live -> staging -> test, working with updated data is a manual hassle 3. I currently have no shared hosting that ticks all boxes (in the Netherlands) 4. Since PW is a CMS I have to update the live data-model manually (there is no 'migrate up'). I don't think I can solve this problem through any devops magic, but still worth mentioning as one of the biggest pain points. The answer to this problem might be to step over to Laravel, or similar, I assume. My goals and hopes are: -1. (Edit): **FOSS**. I would want to avoid tying up my professional life to any service with tiers and a subscription model 0. **Have the same basic architecture for all projects** 1. Automate backup and restore, and streamline it across all projects 2. Streamline replication from live -> staging and -> test, so I can work on a fresh copy of data without having to use phpmyadmin 3. Have a more robust and portable and setup where I can spawn vps's with a click 4. have a more robust deployment process (better than git-ftp) that is easy to reverse. I realize this is a very wide devops question, but I'm curious about how you do it - the ones who who took this step away from shared hosting. I know someone who runs a rails shop, and hes using docker/kubernetes - that is probably the answer, I think. But I still wonder exactly how this would apply to PW. jg
  6. And the answer is to install this plugin: https://github.com/ClaudeSeo/ckeditor-fontweight seems to work fine!
  7. Hello! Does anyone have a good idea how to enable light, regular, medium, bold (font-weight 100-700, or so) in ckedit? thanks!
  8. Hi there, Is there a more elegant way to check if there is at least one item in an image array, currently do if($page->images && $page->images->first) - too long! tx!
  9. This is exactly it, thank you! In this case I needed the editor to be warned when no value has been selected. It needs to be required so that you get that red banner when no choice has been taken
  10. Hi there, Sometimes I find myself wanting a simple dropdown in the backend with some static options like "Yes, No, Don't know" or similar. It's a bit long winded in these instances to setup custom pages for this. Is there something like this as a plugin, or similar? Startpage says 'no', but worth a check here, I thought.
  11. After some introspection I think I know what might have happened, I probably made the error to '=' instead of '==": if($page->template->name='xx') { Hope this helps someone else 🙂
  12. Hi all, I just had something scary happening (on my dev server luckily). I was working on an old project that has comparatively lots of data. ~1500 "event" pages, the event template has 30-40 fields. And I added another one, a repeater for a gallery. Then suddenly, while working on some unrelated front end stuff the 'event' template had been rename to '1', and everything stopped working obviously. When looking at the '1' template it had all fields listed as strings, and not the usual draggable list of fields. I tried renaming it to 'event' again, but I got the prompt that 'event' was already taken. I then renamed it to 'eventa' - that worked, and could then rename it again to 'event' Now things are back to normal, but I wonder - what happened? It can't be a keyboard slip since renaming a template needs a confirmation.......??? thanks for any insights in this mysterious matter, j
  13. Hi, I'm working on a project that I'd like/hope will become a public open source project. I wonder - what is the best way to check in PW in git so that it's easy to install for others? I'm leaning towards checking in everything (including /wire), except /site/assets/file, /site/assets/cache and such. My hope is that someone could just git clone the project and copy the database to get going. However, I know PW needs to go through the installer sometimes to work properly. I had instances where I needed to install it and then copy over the content/templates afterwards. Is there a way to automate an installer export after a git-hook perhaps? How would you go about this? Thanks!
  14. Edit: No sorry, it works totally fine. I did something wrong before probably! It searches the current language and default, just as expected. I think I'm looking for the opposite than that thread. I have EN (default) FR NL If current language is FR the search does not include EN (default), but I want it to do that tx
  15. Hi, After looking through the forums it seems that field*=foo bar should look for the phrase "foo bar" in all languages, but it doesn't for me. It only searches in the current language. So, for example, if a phrase only exists in the default language, and you current choice is French, it's not returned. How can i search all languages? PW 3.0.165 thanks!
  16. Yes! createdUser, thats the one I was looking for. Thanks!
  17. Hi, how do i display the created by user name in the list of the backend, together with the page title? I tried title, created_by.title title, createdby title, createdby.name title, created_by.name ...etc thanks!
  18. @Robin S Update: seems shaky. Gives error " Notice: Undefined index: quality in .../CroppableImage3Helpers.class.php on line 207". Then, uploading doesn't actually work (never ends). But thanks anyway!
  19. @Robin S YES! Thank you! This is exactly it. Not sure how I missed it?! ...!
  20. @ZekaWhat I'm looking for is that the editor is able to do custom named crops. I'd like the editor to be able to manually decide how a 'mobile' crop should be cropped. So not just automatically cropped from the center, and also not cropped from a focus point (which is mentioned elsewhere) but a custom named crop where the editor decides exactly what crop is going to be "portrait" for example. I'd like to be able to define named variations such as "portrait, square, landscape" and the editor can make manual crops for each of these three named crops (but based on the same image), and save them as separate variations. Then again, perhaps I'm over-complicating things. I should just stick to using focus point. It's slightly less flexible in that you have to choose one single focus point, but easier to reason around perhaps. I have a client with images that has some quite specific requirements, like top-right crop for mobile, center for desktop and center-right for tablet (for example) - you can't do this with focus point. thanks again
  21. Yes, If I have an image, then would like to store different crops - possibly to be used together with the <picture> element
  22. Hi all, What would be the best way to maintain different crops of the same image 'desktop', 'mobile', or perhaps 'landscape', 'portrait', 'square', etc? And perhaps with some fall back, that if mobile is missing, it falls back to desktop, or similar? I was hoping to avoid having to make separate fields for variations, if possible. many thanks! J
  23. Hi, I recently found out about the page-edit-created permission. That's amazing. But is there a way to get it to work for parents. Lets say user P created the page A - is it possible to let P edit all children (and grandchildren) of A but not children of B, that P didn't create? Lets call them AA, AAA, ABA, ABB (children of A). and BA, BAA, BBB (children of B). And, furthermore, I have now a case where I would like to change the owner of A to P, and let P edit AA, AAA, ABA, ABB without having to individually change each page to owner P. Possible? Put differently, what I'd like is to make P owner of a node in a tree, and that all pages under that sub-tree belongs to P, but nothing else outside this sub-tree. From what I understand page-edit-permission only works per page or template - but not children? Or is there a better way to tackle this? Again with examples: project1 (project template) event1 (event template) event2 (event template) project2 (project template) event3 (event template) event4 (event template) if I give P ownership of project1, i cannot prevent P from adding events under project2, right? Also, if I change owner for project 1, i have to change owner of event1 and event2 for P to be able to edit those - I was hoping i wouldn't have to do that. Is there such a thing as page-add-child-created :)? thanks!
×
×
  • Create New...