Jump to content

joe_g

Members
  • Posts

    356
  • Joined

  • Last visited

Everything posted by joe_g

  1. Hi all, I'm trying to generate .ics / iCalendar files from PW, but PW strips custom headers. Is there a way I can do this? Many thanks. (This is a repost, sorry - trying a better title for better traction)
  2. Hi there, If I try to add a custom header it gets removed by PW header('Content-type: text/calendar; charset=utf-8'); I can see that $http->setHeader was introduced in v.193, but not yet in the stable branch. I assume it should work with the new way to set a header. What can i do to achieve this in the stable branch? thanks!
  3. Very nice. That worked, thanks. That lead me to try at set the access. check_access=0 feels like a workaround. But, somehow it doesn't work with guest access enabled - You wouldn't happen to know why?
  4. Hi, selecting repeater items only works if i'm logged in If i'm not logged in this gives an empty result $pages->find('template=repeater_times') How can I make this work when I'm logged out? thanks
  5. oh i see "repeater_times" does the job
  6. Hi there, How can I select all repeater items in a selector. Lets say I have a template "event" with the repeater "times". I'd like to get all "times" and store them in a PageArray, regardless from where in the site they are. I this possible? I would like to be able to do something like ->find('template=event.times,startdate>'.now()); I know I cant do that....., but is there a way to do something similar? tx! J
  7. 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
  8. 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
  9. Thanks! Not using a lot of cache on this particular site, maybe 30 is normal and i just need to simply cache more...
  10. 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
  11. Relevant discussion: https://news.ycombinator.com/item?id=28838132
  12. 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.
  13. 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.
  14. 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...
  15. 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
  16. And the answer is to install this plugin: https://github.com/ClaudeSeo/ckeditor-fontweight seems to work fine!
  17. Hello! Does anyone have a good idea how to enable light, regular, medium, bold (font-weight 100-700, or so) in ckedit? thanks!
  18. 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!
  19. 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
  20. 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.
  21. 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 ?
  22. 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
  23. 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!
×
×
  • Create New...