Jump to content

onjegolders

Members
  • Posts

    1,147
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by onjegolders

  1. Yep, I've no doubt Ryan and the most senior devs here have their very strong reasons for keeping assets so tied to pages and I very much take their word for it but from a purely dev and client point of view, I have very much enjoyed using assets in a centralised place (meaning easy reuse, it gets tiring having to drag images of the front-end to the desktop to upload them back up again on another admin page), and the bonus of being able to pass all this off to S3 or equivalent would be a huge boost for my productivity.
  2. Thanks @larrybotha, having spent a fair amount of time with Craft, I think this is one area where having files tied to pages makes things more difficult. With Craft it is possible to have you assets exclusively in say an S3 bucket, so your assets will always stay the same and accessible across environments/users mys3bucket.com/images/featured/featured1.jpg etc If I ever need to create a new site to access those images or a new dev needs to set up, they can just get started straight away.
  3. @kongondo Thanks for your tip and email. Re-adding the module files has sorted the CSS issue. Thanks
  4. Picking up on this old thread. If it's considered bad practice to version control assets, how do you share them between devs/environments?
  5. OK thanks, previously I had tried with your previous version. Thanks again
  6. Thanks @adrian! Will give that a go. Just out of interest do and family settings need to be set on the images/image templates?
  7. Hi @kongondo, I'm running into an issue with the module not displaying properly (screenshot attached). Also, how can I redownload the module? I'm thinking maybe the module folder is corrupted? Thanks!
  8. Hi @adrian, coming to this script very very late Couple of questions, firstly, is it still usable in PW3? Secondly, I've tried implementing it but not entirely sure where the new pages are supposed to be created? Is this reliant on having a template "family" relationship? I have set up a page for the "Images" template and allowed only "image" template as children but not sure if I'm missing something out of the process? Thanks
  9. Hi @Wanze, @gmclelland thanks for your replies. I had my layout file and my twig files in /site/templates/views and for each page I had an equivalent .php file but these were in /site/templates. I should say that my layout.twig file was getting loaded fine but not the individual view files. Seems a strange one. I will try again and play around with the paths.. Thanks
  10. Hi Wanze, Thanks again for this module, have been really enjoying using it. Have run into a slight issue on a new site where my layout file is getting read but the views files themselves (set in `templates/views` ) aren't outputting anything. I have made sure that the factory module is using Twig and have tried deleting the cache but nothing is outputting from the views folder. I'm pretty sure my paths are correct. Do you have any good ways to debug? Thanks!
  11. Yeah I guess I've always liked using it as it's such a natural (at least to me) syntax, it just looks so clean. But you have to be able to know plain JS for sure and the definite trend is that way it must be said.
  12. Hi Adrian, I also saw this, I was a little surprised CoffeeScript was as dead as it was, maybe I need to get into ES6.
  13. Pleased to hear it! (Didn't know about false, thanks).
  14. I think page->siblings() returns the current page as well (not sure why) So may have to do something like this (untested) <?php $siblings = $page->siblings()->remove($page); ?>
  15. There is also this for dealing with the touch device dropdown scenario https://github.com/dachcom-digital/jquery-doubleTapToGo
  16. Using it a lot but depends on the project, some you can get away with it (apps for modern browsers etc). Interesting that the most prominent polyfill is nearly ready for an update which may make it usable everywhere https://github.com/10up/flexibility/issues/53#issuecomment-220657562
  17. +1 for the future compatibility between LivePreview and RepeaterMatrix. For me the two go together, the possibility to allow users to create longf-orm content and build pages by adding and reordering of blocks is a great combination of power and usability (in my mind). Thanks again for all the hard work Ryan!
  18. Hi Felix, other Twig users, I realised I posted the below in the wrong thread previously: Would it be possible (in theory at least) to use PW's new Page() functionality whilst still using the Twig module? I've had a fair bit of joy with most of it so far {{ session.redirect('/about') }} for example works great. This was leading me to hope I may be able to use the full power of PW still whilst keeping things clean with Twig. Has anyone managed to do this successfully or would I have to revert to pure PHP to carry out certain PW tasks? Thanks!
  19. onjegolders

    Twig

    Hey guys, picking up an old thread here but I was interested if it would be possible (in theory at least) to use PW's $page->save functionality whilst still using the Twig module? I've had a fair bit of joy with most of it so far {{ session.redirect('/about') }} for example works great. This was leading me to hope I may be able to use the full power of PW still whilst keeping things clean with Twig. Has anyone managed to do this successfully or would I have to revert to pure PHP to carry out certain PW tasks? Thanks!
  20. Thanks Ivan, yes that's exactly what I meant. I'm coming from working on a few no-db sites where keeping in sync was just down to a git repo, the idea of a shared database sounds tempting but maybe too much hassle/risk to set it up?
  21. Thanks @kongondo, for the db itself, any recommendations?
  22. Hello people, hope you're all doing well! Just seeing if anyone has any real world experience of working with remote databases? Mainly in a bid to be able to keep the development process between multiple people/places that bit easier? I'm thinking either setting up a traditional MySQL db on the server or even using a DAAS like Google SQL / Amazon? Any thoughts much appreciated!
  23. Can confirm this seems to have been an issue with the hosting company's SQL server and back online now.
  24. Thanks Wanze, I'll check it out with my server people as I think they must have been having issues.
×
×
  • Create New...