Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by joe_g

  1. Amazing. Thank you! It works perfectly. What wasn't clear to me is how the dependencies translated to PW. Now I know: 1. look in the source for all dependencies recursively until I there is no more 2. download all of them 3. add all of them to PW 4. enable all of them 5. profit What's your thoughts on using the online ckeditor builder? When I try it out it gives a whole package with lots of stuff - of which some would maybe conflict with PW's install, perhaps. Table, for example is already installed. The whole CKEditor ecosystem is seemingly really powerful, but would be good to have a more automated process for installing it. J
  2. Hi there, I'm trying to install the 'detail' plugin https://github.com/akilli/ckeditor4-detail But, after enabling it i get a 404 in the network tab and the text field doesn't display at all: http://domain.com/wire/modules/Inputfield/InputfieldCKEditor/ckeditor-4.12.1/plugins/api/plugin.js?t=2015030801.162 The plugin isn't supposed to have any dependencies.. I think. Also the 'api' folder doesn't exist under plugins. So now I'm not sure how to go troubleshoot this further. thanks! J
  3. Thanks! Not using a lot of cache on this particular site, maybe 30 is normal and i just need to simply cache more...
  4. Hi there, On one site (on tsohost.com) i get this error message that I'm using too many db connections. The site will hang for half a minute then work again. I wonder, is max 30 low, or normal? It's the first time in a decade I encounter this issue in PW. I'm doing some custom logging so i do new Page() and ->save() for some pages, could this mess with the db connection pooling? Do i need to explicitely close any connections?? I would imagine I don't need to do anything like that, or? many thanks J
  5. Relevant discussion: https://news.ycombinator.com/item?id=28838132
  6. 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.
  7. 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.
  8. 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...
  9. 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
  10. And the answer is to install this plugin: https://github.com/ClaudeSeo/ckeditor-fontweight seems to work fine!
  11. Hello! Does anyone have a good idea how to enable light, regular, medium, bold (font-weight 100-700, or so) in ckedit? thanks!
  12. 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!
  13. 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
  14. 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.
  15. 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 🙂
  16. 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
  17. 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!
  18. 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
  19. 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!
  20. Yes! createdUser, thats the one I was looking for. Thanks!
  21. 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!
  22. @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!
  23. @Robin S YES! Thank you! This is exactly it. Not sure how I missed it?! ...!
  • Create New...