Jump to content

Mike Rockett

Members
  • Content Count

    1,414
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by Mike Rockett

  1. Greetings Recently uploaded my first site made within the amazing walls of ProcessWire. It's a very simple, yet professional, site for an accounting, tax, and business consultancy in Limbe, Cameroon. The site uses well-built templates (especially on the backend - I really love the way everything works with the editing pages on a per-template basis), and a custom module for the contact form, which runs a clear and concise validation service, powered by the respective Illuminate components (yes, I had to mingle Composer into the scene). Looking forward to many more sites in PW - as it is, I have three more to upload by the end of July. Hope you like it - feedback is always welcome. www.aegpartners-cm.com
  2. Just curious as to why all requests that are sent to index.php are routed through the it GET param... RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] Any particular reason why it isn't simply this: RewriteRule ^(.*)$ index.php [L,QSA] Or even this: RewriteRule ^ index.php [L,QSA] ?
  3. @owzim (better? ): I agree with the provision of content - though it would really be specific to each site. But, 99% of the time, you'd land up displaying the most important content in a very static way (your one column idea), and just display a friendly message that talks of dragons and the dark ages. And evolution.
  4. @Martijn: Agreed. As with most things in life, everything is specific when it comes to determining which browsers to support. Over time, and looking into the future, most developers will be moving to Owzim's 'rule' (as you put it). People are moving into an era of auto-updates, which helps us developers - especially those just starting out. I remember when I started, and it was such a nightmare to make IE6 behave. Everything is clearer now, knowing that nobody cares for it. Personally, I don't believe in patches. If something doesn't work in IE8: tough. If a site needs a feature, and a browser doesn't support it, then we drop the browser. Unless, of course, the feature is really specific, and doesn't make a big difference to the end-user. So glad I will never see ie-fix.css in any of my code ever again.
  5. Just an opinion here, but I don't think that's the best route to take. Think of Chrome and Firefox. Yes, whilst they do auto-update, there are many PCs around where the feature has been turned off. A colleague of mine is still running Firefox 16. I always do an analysis about the client's needs before I disclaim which browsers will be supported. From a general point of view, only browsers with full, native HTML5 support, and a good throw-in of CSS3, will make the list. That gives me IE9+ (sorry 8, but your days are over), Firefox 4 (though, I usually up that to 10, as it is not as old), and Chrome 25 (same reason).
  6. Not to worry - looks like I got it. Simply added this to my module: $this->session->tokenName = $this->session->CSRF->getTokenName(); $this->session->tokenValue = $this->session->CSRF->getTokenValue(); Then in my view, called it like so: <form data-form-ident="contact-form" data-form-token-name="{{ session.get('tokenName') }}" data-form-token-value="{{ session.get('tokenValue') }}" autocomplete="off"> EDIT: Well, that screws it up I'm calling it from within a module: Fatal error: Call to a member function path() on a non-object in [omitted]\wire\core\SessionCSRF.php on line 51 So, I'll just make my own CSRF token within the module that does not depend on the page name and path.
  7. Anyone? I still can't get this working...
  8. Hi all I have built my own module for processing forms on my site. The module does check to see of the request was forged or not, but I am unable to inset the token name and value into my template. I use Twig for my templates, and this is what I'm calling: <form data-form-ident="contact-form" data-form-token-name="{{ this.session.CSRF.getTokenName() }}" data-form-token-value="{{ this.session.CSRF.getTokenValue() }}"> The output for that is an empty string. Could it perhaps be because I am using Twig? Side note: disabling Twig is not an option as the templates I'm using are very complex - it would be a darn mission to revert to native PHP. (PW 2.4.0)
  9. Nice site indeed I see on http://mbci.mb.ca/who-we-are/administration/, the mailto link for the assistant principal is broken - it's missing the mailto:...
  10. Very nice, and very clean - I like them One thing though - and I see that there are a handful of showcase sites that do this: On http://ciaraphelan.com/, your menu seems to be hardcoded, because the trailing slashes are not in the URIs. So, for every single page request from the navigation menu, there will be a redirect, which adds unnecessary page-load time. It would be best to either add the trailing slashes in that menu, or use a $page loop so that the links are correct. Otherwise, very nice.
  11. The client pushed me to put the site live, which I have now done. Funny thing: it works on production, but not on staging... Weird. Have you seen this happening before? My staging server is a simple XAMPP setup with PHP 5.5. The production server is running 5.4.
  12. Right, so I don't use multi-language, and I have followed the instructions for the module by Pete - but, the module is not working for me, and I need to figure out why. As I use Twig, I cannot use the template, and must use the module. I have to assume that something's broken with the module, because it just doesn't initiate.
  13. Hi kixe, and thank you It's not a multi-language site. So, I'm a tad confused: His post says that I must either use the module, OR his template and page; but you're suggesting that I do both? I simply assumed that the module would be plug-and-play (I don't see any specific instructions for the module itself). EDIT: Just so you know, I am using Twig for my templates, and I don't think PW can be set to check if a given template is running PHP or Twig, as it's hard-coded into the config file. Woild be nice if I could set it like so: $config->templateExtension = 'twig|php'; As such, I don't think I can use the page/template-based approach as Twig is designed for that. EDIT: Although, I could use Hanna Code... Yes?
  14. This looks like a great plugin, but it doesn't seem to work for me... A request to /sitemap.xml just throws a 404. I have enabled Cache, but I don't see any XML cache file.
  15. Greets Right, so I'm nearly done with my first PW site, and now need to move it to a testing server, which uses a different domain. (Sure, this question could apply to moving a site from dev to production too...) The move was successful, but the "View" tab/button (dependant on the admin theme - hehe) links to the old domain... Didn't realise that the domain would be hard coded into each DB entry... The rest of PW uses a relative approach. How could I change this? (Or have I done something really silly, which I doubt?)
  16. Hi No, I don't have any selectors like that. I thought that since I'm searching for suggestions based on the request (which is the name), that I should also be searching for others by name as well. Nonetheless, if I remove name from the query, I still get the repeaters. Though, I've just noticed that they only appear when I am logged in. Each repeater contains a link to itself in the backend. But when you click on it, it says that there's no Process for this. This is an example URI: /administration/repeaters/for-field-136/ Anyways, if I'm logged out, it's cool. Perhaps there's a bug, or was it like that intentionally?
  17. Greetings I'm new to PW, and think it's fantastic! Never, ever, have I seen such an amazing CMF! Anyways, to my question: I had set some Hanna Code to render a list of page suggestions on the http404 page, which works perfectly. The problem, however, comes in when I use repeaters, which are page instances. The page suggestion renderer has the following: $suggestions = $pages->find('name|title|summary|body%='.$request); I have a page that is named services-industries, and repeaters with the word services in the name. As such, repeaters appear in the suggestion results-list if applicable to the search. How can I exclude/remove those?
×
×
  • Create New...