Jump to content

Lance O.

Members
  • Posts

    356
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Lance O.

  1. For some projects, I have lots of tags assigned to lots of fields. It would be great to have the tags listed at the top of the Fields page and linked as anchors to the corresponding section below.
  2. I would love to see additional help text added to the Page Status field description for admins that aren't technically proficient. This may seem obvious to those of us who use PW every day, but additional help text could increase the confidence of new admins with PW.
  3. @teppo Thank you! I'm going to keep an eye on the sitemap files to make sure that each path that is represented works properly. Not an ideal situation, but at least in the end the client will be on PW and not WP.
  4. @teppo I appreciate your detailed response. What makes this a risky approach? @LostKobrakai I did find a way to host both WordPress and ProcessWire in the same directory: 1. I changed the WordPress index.php to index-wp.php. 2. I added the following to the ProcessWire .htaccess file (removing the WordPress .htaccess file). The directories here will use WordPress, anything else uses ProcessWire. RewriteCond %{REQUEST_URI} ^/(news|category|tag|about) RewriteRule .? index-wp.php [L] The only caveat to this is that I can't get WordPress to display as the default Home page. But maybe this is a less risky approach to using a proxy service?
  5. A new client of mine has an existing WordPress site. Because the WordPress site is so large, the client wants to migrate the site section by section into ProcessWire. So as one section in WordPress gets removed, it will be replaced by a redesigned section in ProcessWire and will keep the same urls. Can WordPress and ProcessWire coexist on same site? I'm assuming they can't coexist in the same folder on the server, but is there a way to migrate content from WordPress into ProcessWire while keeping the same urls if ProcessWire is installed in a subfolder? Once all of the WordPress content is moved into ProcessWire, then the WordPress installation will be completely removed. Looking for advice from someone who has come across the same situation.
  6. @adrian I just came across this module for the first time and it works like a charm! Thank you!
  7. FYI, I include an "ignore" field to my templates that allows for control over a page's visibility in menus, search results, and the sitemap. Then, I add that logic to the appropriate template files: // Hide from XML sitemap case ($page->hasField("ignore") && $page->ignore->hasValue("sitemap_ignore")): return ""; break; // Hide child pages from XML sitemap case ($page->parent->hasField("ignore") && $page->parent->ignore->hasValue("sitemap_ignore_children")): return ""; break; Here is the exported field in case anyone else wants to do the same: { "ignore": { "id": 392, "name": "ignore", "label": "Visibility", "flags": 0, "type": "FieldtypeOptions", "inputfieldClass": "InputfieldCheckboxes", "collapsed": 2, "optionColumns": 0, "tags": "meta", "icon": "ban", "initValue": "", "showIf": "", "themeOffset": "", "themeBorder": "", "themeColor": "", "columnWidth": 100, "required": "", "requiredIf": "", "defaultValue": "", "export_options": { "default": "1=menu_ignore|Hide page from navigation menus\n2=menu_ignore_children|Hide child pages from navigation menus\n3=search_ignore|Hide page from site search results\n4=search_ignore_children|Hide child pages from site search results\n5=sitemap_ignore|Hide page from XML sitemap\n6=sitemap_ignore_children|Hide child pages from XML sitemap" } } }
  8. Love this module, but unfortunately breaks on RepeaterMatrix fields. 🙁
  9. It would be great if Repeater field labels supported the same de-emphasized text when surrounded in [square brackets] as the Repeater Matrix field does. Repeater field item label : Repeater Matrix field item label: Output:
  10. What a beautiful photo! As a father of four (ages 13, 11, 9 and 3), I know how important it is to make the time for family. Thank you for the time you have dedicated to ProcessWire. Have a great holiday!
  11. @wbmnfktr This is perfect, thank you! Thanks for steering me in a better direction.
  12. I want to create a hook that will: Check for pages with a specific template ("order"). Check that the page has a datetime field that is more than 30 days old. Send an email to a specific address. Change the value of a field to show the email was sent. What is the best hook method to use? I don't necessarily need this to execute on every page load on the public site, and it can't execute when viewing the specific template ("order"), but it can execute when the "orders" page is viewed on the public site.
  13. $pages->get(1)->url; This returns the Home page url.
  14. @Mike Rockett Sure, let me know exactly what you need me to do. Here is the field settings as copied from phpMyAdmin, in case there is something incorrect there: {"description":"The Open Graph Image is used when sharing the page to social media services like Facebook and Twitter. Upload images that are **1200 x 630 pixels** for the best display on high resolution devices. At minimum, use images that are **600 x 315 pixels**. Be sure to include a description to be used as the alt tag.","textformatters":["TextformatterEntities","TextformatterStripTags"],"extensions":"jpg jpeg png","maxFiles":1,"outputFormat":0,"defaultValuePage":0,"useTags":0,"inputfieldClass":"InputfieldImage","collapsed":2,"descriptionRows":1,"gridMode":"list","focusMode":"on","resizeServer":0,"clientQuality":90,"overwrite":1,"maxWidth":1200,"minWidth":600,"minHeight":315,"tags":"meta images","icon":"tag","fileSchema":6,"otherField":"License","otherFieldSettings":"{\"cf_textformatter\":{\"license\":\"\"},\"cf_label\":{\"cf_label__license\":\"\"}}"}
  15. I just installed this module as an upgrade to the Markup Sitemap XML module and I really like it, thank you! Unfortunately, I found that adding the "license" field to a image using ImageExtra doesn't display the license despite using a valid URL: https://creativecommons.org/licenses/by-nc-nd/4.0/
  16. @teppo I was using Pete's Markup Sitemap XML, but apparently it has some bugs. I've installed Mike's Markup Sitemap module and it seems to have resolved the issues I was experiencing. I wish it had support for the image license, but otherwise feels like a nice update. Edit: Looks like it does support image license. Edit 2: But unfortunately it doesn't look like the image license is working correctly. I've reported the issue in that module's support thread:
  17. @gragan Ah, you are correct, the custom template for the sitemap.xml file is only displayed when I'm logged into PW. Good catch! Sitemaps can support images to help them appear in Google Image search results: https://support.google.com/webmasters/answer/178636?hl=en https://www.xml-sitemaps.com/images-sitemap.html Yes, maybe I should have searched for the module support thread instead of clicking on the broken link directly from the module itself: http://processwire.com/talk/index.php/topic,867.0.html
  18. I'm using the Markup Sitemap XML module to automatically generate a sitemap.xml file, and a custom template to add markup for images and exclude specific page templates. I discovered that when I view the sitemap.xml in Chrome, it looks as how it was intended based on my custom template. But in Safari, the custom template is ignored and the sitemap.xml file that is generated is the equivalent of not using the custom template at all. In fact, when I delete the custom template from the server, both Safari and Chrome display the same sitemap.xml content. My sitemap.xml file validates, so I'm confident that there isn't anything in my code that is causing the issue. Unfortunately, my submitted sitemap through Google Search Console is picking up the incorrect Safari version and generating errors for pages that aren't publicly viewable on the site. Here is the url to the sitemap file: https://processinteractive.com/sitemap.xml Has anyone else experienced this issue? I'm not sure if there is a fix unless it is in the module itself.
  19. @Soma I noticed that in the 1.3.6 version of your module that if a field name includes an underscore, the portion after the underscore is removed, which sometimes makes the link to the field incorrect. For example, if I have a field named "images_repeater" then the field will instead display as "images". This module has helped save me countless hours over the years. Thank you for providing it to the ProcessWire community.
  20. @Noel Boss Wow, thank you! I'll let you know how it goes!
  21. @Noel Boss I'm curious, were you able to successfully add an image field?
  22. It looks like the following works: RewriteBase / # RewriteBase /pw/ # RewriteBase /~user/ With this configuration, the 200 OK errors do not display and the PW admin page tree renders properly.
  23. A client of mine is using Network Solutions for their hosting company. I've uploaded a ProcessWire site to their server, but I'm getting a 200 OK error at the bottom of each page in the public site and in PW. Also, the page tree will not load in PW, but I am am able to navigate to any page in the Setup menu. If I uncomment the following lines in the .htaccess file, the 200 OK errors go away, but the PW admin still can't load the page tree. # RewriteBase / # RewriteBase /pw/ # RewriteBase /~user/ Does anyone have any experience with getting PW to run on Network Solutions? The hosting plan meets all of PW's requirements.
  24. I've built a site that uses parent pages as the "container" for child pages: Parent page [page.php] -- Child page [unit-child-a.php] -- Child page [unit-child-b.php] ---- Grandchild page [subunit-grandchild-a.php] ---- Grandchild page [subunit-grandchild-b.php] -- Child page [unit-child-c.php] The child pages are displayed as content on the corresponding parent page using the render method. Some child pages also include their own child pages. (Internally the child page template names start with "unit-" and the grandchild page template names start with "subunit-".) Example: foreach ($page->children("template=template-name,sort=sort") as $child) echo $child->render(); This approach allows content administrators to add and reorder child pages as necessary, but I've come across an issue that I'm not sure how to address. The site includes search functionality, but when a visitor searches for content and it is found in a child or grandchild page, the Parent page should be the one that is displayed in the search results, since the child and grandchild pages are not directly viewable. Since some searches could include more than one child or grandchild page of a parent page, this sometimes means that a parent page could be included more than once. How do I easily redirect the child and grandchild pages to the parent page, and only include the parent page once in the search results?
×
×
  • Create New...