Jump to content

gmclelland

Members
  • Posts

    571
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by gmclelland

  1. @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.
  2. @Juergen, I believe that is fixed in this commit https://github.com/processwire/processwire/commit/f3749d241a5f4da4d9df3731d1b99d001eaf0f50
  3. Yes, I can confirm PNG and GIFs are working now with 3.0.88
  4. 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.
  5. 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
  6. 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...
  7. 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.
  8. Came across this article that y'all might like https://dashbouquet.com/blog/frontend-development/9-best-javascript-charting-libraries
  9. 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?
  10. gmclelland

    opernhaus.ch

    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?
  11. 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.
  12. 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(); }
  13. 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?
  14. 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.
  15. Inputfield Url Checker - I had to look it up too
  16. 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.
  17. @jmartsch - the CTRL-S works for me with AdminThemeUIKit.
  18. I'm curious how you implemented the AMP pages. Could you elaborate more on that?
  19. 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.
  20. 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.
  21. Maybe even look at https://github.com/adrianbj/BatchChildEditor as well.
×
×
  • Create New...