Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by gmclelland

  1. Thanks for providing the site profile! Just wanted to let others know I had to do the following to login. Add this to the startpage.php in the site/templates/ directory $admin = $users->get('admin'); $admin->setOutputFormatting(false); $admin->pass = 'herewegocheckitout22'; // put in your new password $admin->save(); Then visit the homepage to execute the code. Then remove the same code from the template. Then login to yoursite.com/processwire/ not yoursite.com/wire/ Hope that helps others
  2. FYI... There is also a discussion around focal point image cropping https://github.com/processwire/processwire-requests/issues/150 if anyone is interested.
  3. I know this old, but the answer to this question is to add: $accept->attr('data-href', wire('config')->urls->admin . 'page/edit/?id=1479'); Remove this line: $accept->attr('href', 'http://localhost/winkelmann/www/bewerbertool-talents/admin/page/edit/?id=1479'); Hope that helps the next person.
  4. @flydev - I have ran into the same issues with my sites that use TemplateEngineFactory with TWIG. I had to do the following: $session->redirect($pages->get($config->http404PageID)->httpurl()); throw new Wire404Exception(); Maybe you could post something in the TemplateEngineFactory topic? Maybe @Wanze would know of a fix?
  5. @louisstephens Those content sections are just rendered with a foreach loop like: foreach($page->test_matrix as $item) { if($item->type == 'blockquote') { echo " <blockquote> <p>$item->quote</p> <cite>$item->quote_cite</cite> </blockquote> "; } else if($item->type == 'bodycopy') { echo " <h2>$item->title</h2> $item->body "; } else if($item->type == 'gallery') { // and so on... } } That code was taken from http://processwire.com/api/modules/profields/repeater-matrix/ So when a user changes the order, it will automatically be displayed in that order on the frontend.
  6. Well it definitely can be done. See https://processwire.com/blog/posts/amazon-aws-now-powering-processwire.com-sites/ I've had good success with running sites on a $10/month 2GB Linode VPS and https://serverpilot.io/ $10/month per server.
  7. @patman I too, would like to be able to use the address data with JSON-ld. In case you haven't already tried it, you might want to give https://github.com/clipmagic/MarkupJsonLDSchema a shot for the JSON-ld.
  8. @Juergen, I believe that is fixed in this commit https://github.com/processwire/processwire/commit/f3749d241a5f4da4d9df3731d1b99d001eaf0f50
  9. Yes, I can confirm PNG and GIFs are working now with 3.0.88
  10. Just thought I would share this cool new chrome/firefox addon for https://insight.io that I discovered. It allows you to quickly search or view the folder/file hierarchy of a repository inside of github. It also allows you to list the methods of a class It's very similar to https://chrome.google.com/webstore/detail/octotree/bkhaagjahfmjljalopjnoealnfndnagc, but provides more features. On the github repo page it shows a insight.io button where you can view the current file on github that you are looking at on insight.io for more features like where specific functions are referenced. Note: I'm not affiliated with that company. I just thought it was helpful.
  11. Just tried...I'm seeing this as well on PW 3.0.87 in Chrome/Mac using uikit and PHP 7.1.12. I tried a jpg and it worked fine. Opened an issue for this at https://github.com/processwire/processwire-issues/issues/465
  12. Good to hear psy! Looking forward to trying it. I just started learning about JSON-LD, and your module and readme.txt with the links helped point me in the right direction. I've found it very confusing as well. The JSON-LD and Google documentation doesn't exactly say when or what pages you should use Website schema vs Webpage. Does the Organization markup go on every page, or just the homepage of the website? etc..etc...
  13. Hi @psy, Thanks for sharing your module! I've been trying out your module and I'm aware that I don't have to use the default schemas and can use overrides, but I have a few questions: Should you wrap your addresses in a @type": "PostalAddress" ? address_locality, address_region, postcode, address_country, postcode could fall under the PostalAddress type in the array. Ex. https://github.com/clipmagic/MarkupJsonLDSchema/blob/master/schemas/jsonld.LocalBusiness.php Can the website logo module configuration be changed to point to a relative path from the site/templates directory? ex. images/mylogo.jpg instead of a hard coded page field on the homepage? I don't think the https://github.com/clipmagic/MarkupJsonLDSchema/blob/master/schemas/jsonld.WebSite.php schema should include a logo? See http://schema.org/WebSite and https://developers.google.com/search/docs/data-types/logo I think that is used with the Organization or LocalBusiness schemas It could be helpful to include a module option to Pretty Print the JSON. Default would be unchecked. Maybe make the SearchAction configurable with an option to specify a page id? Some sites may not have a search or may not use page id 1000. In that case you wouldn't want to print a potentialAction array.
  14. Came across this article that y'all might like https://dashbouquet.com/blog/frontend-development/9-best-javascript-charting-libraries
  15. Hi @Soma, When I try to upgrade to the newest version of the module using https://github.com/ryancramerdesign/ProcessWireUpgrade, I get the following message for some reason. Session: Invalid download URL specified I've tried on several sites. Not sure what is wrong?
  16. gmclelland


    Nice site Soma. Did you use https://github.com/cojaco/TemplateEngineMustache with https://github.com/wanze/TemplateEngineFactory? How are the page components added to the page? Repeater Matrix, PageTable, straight from the template, etc..? Is your patternlab style guide publicly viewable?
  17. I think I found my answer: Basically with Processwire it is up to you on how you handle the 404. So in my case I just need to do a $session->redirect to my 404 page.
  18. Has anybody had any trouble triggering a 404 page not found when accessing a non-valid paginated page with TemplateEngineTwig? In my template calendar-listing.php I do the following: throw new Wire404Exception(); but nothing happens. The page is still displayed instead of being redirect and displaying the 404 page. If I go to /calendar/page200 it shows the same page as /calendar instead of throwing the 404 page. However, if you look at Chrome's console the document shows a 404. What's else is strange is that I can go to /some-fake-page and it will then redirect me and display the 404 error page just fine. Note: allow page numbers is checked on this calendar-listing.php template. I also use $config->prependTemplateFile = '_init.php'; calendar-listing.twig is used to output the html. It sort of seems like something similar is happening on the processwire.com blog. If I visit https://processwire.com/blog/page200 which doesn't exist, I would expect it to give me a 404 page not found error and redirect me to the 404 not found page, but instead it shows a 500 error and still displays the blog page. The main reason I'm doing this is to try what is suggested here to improve my site's SEO: https://processwire.com/blog/posts/processwire-2.6.18-updates-pagination-and-seo/ // Don't let search engines index non-existing pages // see https://processwire.com/blog/posts/processwire-2.6.18-updates-pagination-and-seo/ if(!count($paginated_calendar_postings) && $input->pageNum > 1) { throw new Wire404Exception(); }
  19. I know this post is old, but I would like to revisit this discussion. I would like to implement the static file caching https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess using a similar technique https://nystudio107.com/blog/simple-static-asset-versioning This covers caching theme assets(theme js, theme css, theme images) really well, but how do we handle making sure that links to user uploaded files(ex. pdf files) within our webpages always show the most current version when caching is available? We don't want any existing internal/external links to our pdf documents break. If I upload and replace a privacypolicy.pdf to my page, I can't wait a month or a year before the cache expires before the website user will see the new updated pdf. How do you typically handle that problem? Maybe there is a way to only cache your theme's files, but not your user uploaded files?
  20. Any one else having trouble with this module not detecting updates with Ryan's ProcessWireUpgrade module? Some of my sites are stuck at AOS version 1.6.71 and it but it also reports As you can see in the picture, there is another version available but it doesn't give me an option to download/update it.
  21. Inputfield Url Checker - I had to look it up too
  22. For what is worth... This may be to advanced, but I would like to see a tutorial on how to create an administrative page(Import Employees) to import a public Google Spreadsheet with the following inputs: Google Spreadsheet Url (text input) Import Strategy: choose what happens when the import is ran. Create new pages (checkbox) Create new pages and Update existing pages (checkbox) Disable/Unpublish missing pages (checkbox) Delete missing pages (checkbox) This page would be used to create pages of the type (Employee). The Google Spreadsheet would have the following fields: Employee Id Number Employee First Name Employee Last Name Employee Email Employee Phone When the form is submitted, it will display the # of pages created, disabled/unpublished, or trashed/deleted. Bonus: Would even be cool to see it ran in batches with a progress bar to prevent PHP timeouts. Maybe an integration with the new tasker module? No worries if this isn't a good candidate for a tutorial. I also like your suggestions.
  • Create New...