gmclelland

Members
  • Content count

    212
  • Joined

  • Last visited

Community Reputation

106 Excellent

About gmclelland

  • Rank
    Sr. Member

Recent Profile Visitors

1,781 profile views
  1. 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?
  2. 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.
  3. 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(); }
  4. 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?
  5. 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 1.6.7.2. As you can see in the picture, there is another version available but it doesn't give me an option to download/update it.
  6. Inputfield Url Checker - I had to look it up too
  7. 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.
  8. @jmartsch - the CTRL-S works for me with AdminThemeUIKit.
  9. I'm curious how you implemented the AMP pages. Could you elaborate more on that?
  10. I just ran into this problem again, this time when trying to create a new RepeaterMatrix field. The problem is after creating the field it shows the following message "Field: You must assign a template to the page before setting custom field values (title)" and it doesn't allow me to add any fields to it because there isn't any "Details" tab. To fix it, I had to uninstall the Repeater modules(FieldtypeRepeater and InputfieldRepeater) and RepeaterMatrix modules(FieldtypeRepeaterMatrix and InputfieldRepeaterMatrix) then reinstall all the modules and then create a new RepeaterMatrix field. Note: I'm running the latest version of ProcessWire 3.0.84.
  11. Thanks Robin, That sounds like it would work client side, but I would think that kind of stuff should ideally be handled with server side code to remove the contenteditable attribute based on if the user has permission.
  12. Maybe even look at https://github.com/adrianbj/BatchChildEditor as well.
  13. AFAIK there isn't any way to do this currently. I also wish there was a dedicated permission for renaming files. There are some cases were I don't want certain users to rename any uploaded files.
  14. I'm not sure, but maybe looking at the code from http://modules.processwire.com/modules/table-csv-import-export/ would help?