Jump to content

Joss

PW-Moderators
  • Posts

    2,862
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Joss

  1. PW saves data in the associated MySQL database. So, it will depend where on a server your MySQL installation is. Edit: Just reading through the doc about installing Wordpress that I pointed to you earlier, it explains all about how to set up the database on beanstalk, how to install you wordpress locally, how to link the two together and so on. The instructions there will be pretty much the same when installing Processwire. Maybe just follow that guide - much better than guessing.
  2. There is no reason why a theme cannot be dropped in with big holes that say things like "put your page markup and fields in here" So, when dropped in, it will only display the theme container and some holding text and would need to be worked on. To go further would have to assume that an installation of PW contains certain predefined fields, and that is against the ethos and purpose of PW completely. But, yes, drop in starters would be fun
  3. ChiefPundit, I like your point about updating Wordpress and breaking themes. It is so important that the true CSS/HTML structure of a Processwire site has nothing to do with the Processwire API. you just add the API to it. I must admit, I haven't quite got the workflow right yet, but I like the theory that you could use any tool like Dreamweaver or Edge Reflow or anything else and work live on the site on a dev server. That is something that possibly needs to be explored more when promoting PW with specific howtos.
  4. This might help https://www.otreva.com/blog/deploying-wordpress-amazon-web-services-aws-ec2-rds-via-elasticbeanstalk/ It covers wordpress, but talks about things like not being able to upload images directly or install plugins and so on - in otherwords, as it is stateless, you are uploading a complete solution from git. After that I get completely lost!
  5. The database variables are in /site/config.php and there are some other useful values there. The config file is very simple, but you can add to it - a list of possible variables that processwire can use are here: https://processwire.com/api/variables/config/ All data is stored in the mysql database and assets like images and files are stored in site/assetts That is about it.
  6. I have used both Wordpress and Joomla for client sites in recent years and the reason I look to ProcessWire is the same for both - if I am to develop fully a solution then addresses both a client's technical and editorial needs and also their brand and their presence (from the advertising point of view) then I need to move as close as possible to the blank piece of paper as a starting point - it probably says as much for me being an old advertising bloke as anything else Processwire allows me to do that where as both WP and Joomla restrict me before I even start by determining what my content should be and how it is managed. Again, from the front end point of view with both Wordpress and Joomla, I find I either fight to get a decent template out of them or I am trying to bend an existing one. With PW I have complete freedom - so much so that I have now developed my own personal SASS development framework. But the main selling point for me and what I have been telling potential clients is that PW is a TRUE business class CMS, and as they have business needs, that should be their number one criteria. By the way, I don't make comparisons with Wordpress, I just present it as a fait accompli and simply speak about the functionality and the final presentation. It is only when they login that they even know it is something called processwire.
  7. Ooh, nice silly idea: Er, the weather was better then. Edit: Oh, I didn't know the forum came with a flckr app! Is there one for PW anywhere?
  8. Welcome Stikki Lots to do here, loads to contribute to and no one votes anyone or anything in or out. We just get on with it. (And a tendency to be very silly a lot of the time, but we are working on that...)
  9. Ah .... well, that is another one to add to Nico's check list Thanks Ryan!
  10. Clever chap! There was around 30 characters of white space between the very front of the file and the <?php removing that did it. How would that have effected it? EDIT: I had tried turning off CRSF protection already, but it made no difference, other than adding the header problem
  11. Okay, trying to put a site up for a client and am getting the dreaded "This request was aborted because it appears to be forged." I have tried: Checking all permissions (755/644 making sure the sessions/cache/logs any else is there Add bits to config replacing index.php Everthing that Nico suggests in his trouble shooting guide I emptied the sessions directory Turning on Debug gives a warning: And the longer winded version of the original error: This is on a server where I have had no problems before and I am at a complete loss what to do next. Any thoughts?
  12. When you get round to testing hi quality headphones, even after all these years as a sound engineer, it is rare you find a studio that is not using Beyer DT100s in the studio and DT770 as a reference headphone. I used them years ago and still use them now. Never found anything better. Big, though! And when it comes to testing, the two standard forms of music used are normally any quartet recorded by Deutsche Grammophon and something choral, but not recorded in a church. I know that sounds boring, but it allows a clear precise range. Also, we used to always check monitors by playing back known voice overs speaking, not just music. That is a good reference since we all have better knowledge of spoken voice simply by speaking to people. After that, all the tests in the world are completely pointless - sound is totally subjective (just like colour) so you are looking for a "comfortable average." That is the place not where you think you are getting the most accuracy across a range of sound sources, but rather the place where you are enjoying the experience the most.
  13. Just at zero - so warm and balmy. Have a good new year!
  14. Oh blast, forgot all about this till I just tried to install it again - still not installing.
  15. I use SSDs for all my music. I am using several 500 gig ones for over a year and they get very heavy usage. No problems.
  16. Will do I am putting together a fairly interesting blog, construction wise, so it uses the RTE more than I would on a normal website. Also, I am making heavy use of Schema.org so that is complicating things alot!
  17. For things like E-Books, logging in to download is helpful because of possible publishing restrictions. For instance, if the copyright prevents the file from being available on a publicly accessible link. Additionally, for a shopper to be able to login and see a list of their purchased downloads, complete with links, then that is good too.
  18. HI Martijn Just noticed that the caption only works if the Description is set within the actual image field. So, if it is not, and the description is added when you insert the image, then that is not being added as alt text and is not therefore being picked up by the module. I am a bit confused as to whether this is a problem with the module or the CKeditor image plugin.
  19. Make sure the image field is set to 1 image only, otherwise it will be an array. You have taken the right route to get to the image field, though you don't really need to set up a separate $rating variable. $page->classification->image_field, and then add ->url to output the url echo "<img src='{$page->classification->image_field->url}' alt='{$page->classification->title}'>";
  20. The PW image API allows you to create different sized, cached versions of images for use in different situations. For instance an original image might be 1000 x 700 px, but we can can crop and resize using: $newsize = $page->myimage->size(300,300); And produce a square, cropped and resized image 300 x 300 px. But how can we make this work in a responsive environment so that we choose an image varient created using the API based on viewport size? There are several ways to do this, but in this case, a bit of script called Response.js can be rather useful. Reponse.js allows you to set up a set of parameters for exchanging data on the fly. (Please note that this is NOT an ajax based system, for that, please look up enquire.js) So, you can tell it to look for a certain sized view port by setting breakpoints and then use that to choose what data you want to call in. So, for instance, on their website they give this example: <img src="lo-fi.png" data-src481="medium.png" data-src1025="hi-fi.png" alt="example" /> The default image is the smallest (thinking mobile first) and then there are two further images called depending on the viewport size. The "data-src481" bit relates to the set up code made for this page or site. You can see that it would be fairly easy to add the PW image api to that bit of html. So, onto a real world example I am using in a client's blog. I had two imediate problems - firstly the site uses EMs and by default, response.js uses px. Secondly, I wanted nice memorable names for my various breakpoints. The developer of response.js is a helpful fellow and he wrote me a nice bit of script to do exactly what I want: !function(Response) { var names = ['basic', 'phoneportrait', 'phonelandscape','smalltablet','largetablet','laptop','desktop']; var values = { phoneportrait: '(min-width:20em)', phonelandscape: '(min-width:30.063em)', smalltablet: '(min-width:33.125em)', largetablet: '(min-width:48.000em)', laptop: '(min-width:64.063em)', desktop: '(min-width:80.063em)' }; Response.addTest('view', function(breakpoint) { var query = values.hasOwnProperty(breakpoint) && values[breakpoint]; return !query || Response.media(values[breakpoint]).matches; }).create({prefix: 'view-', prop: 'view', breakpoints: names, dynamic: true}); }(Response); This script is in my sitewide javascript file so that it is available for anything I am doing. All this script is doing is setting my em min-width values against names and then using those to create the calls. So, I would call a breakpoint with: data-view-phoneportrait Just for interest, this reproduces a set of breakpoints I have using sass-mq for my sass development set up. Now all I have to do is mix that up with my images, In the example below, which is for a list of articles in responsive blocks (using the easy to use pocketgrid system) I just swap the image depending on the view port: $smallimage = $article->image_single->size(256,256); $mediumimage = $article->image_single->size(300,300); $largeimage = $article->image_single->size(371,371); echo "<a href='{$article->url}'><img src='{$smallimage->url}' data-view-smalltablet='{$largeimage->url}' data-view-largetablet='{$mediumimage->url}' data-view-laptop='{$mediumimage->url}' data-view-desktop='{$largeimage->url}'></a>"; Response JS can also swap data within a div, though as I said earlier, this does not use ajax, so is best for small bits and pieces. I am finding that with the huge versatility of Processwire, this plays very nicely not just with more complete systems like Foundation, but perfectly with far more versatile system made up of small utilities rather than one big do-everything solution. My tool box now consists of responsejs, enquire, boubon mixins (but I don't use NEAT), various cross browser helpers like respond.js and html5shiv, a very good media query mixin call sass-mq and then my own bits and pieces. So, the lesson here is that the PW api does not just output data, but is part of your toolset for creating powerful and capable dynamic, responsive, mobile first websites.
  21. HI Martijn When I have debug on, I am getting this coming up on the front end: Notice: Undefined index: align in /public_html/site/modules/TextformatterImageInterceptor/TextformatterImageInterceptor.module on line 381 and Notice: Undefined index: align in /public_html/site/modules/TextformatterImageInterceptor/TextformatterImageInterceptor.module on line 388 Any thoughts?
  22. Joss

    Merry Christmas!

    Was that Stollen? (See what I did there?)
  23. Joss

    Merry Christmas!

    Okay, exactly how sad do you think I am? "And the DEVS were calling out for Processwire......"
  24. Joss

    Merry Christmas!

    Just remembered that I have a couple of Christmas songs too! The first is serious, the second is plain cheesy https://www.youtube.com/watch?v=u59_xmNSp54 and https://www.youtube.com/watch?v=w3dNmLCoeXk
×
×
  • Create New...