Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by gmclelland

  1. Nice module. Just a suggestion... Maybe you could add an option to also hide all but the first select input? When someone selects the first option it could show the next select field as so on?
  2. Is there any way to turn off the "quote this" popup when you select text? It's driving me crazy.
  3. Also... Before the changes, I was having this problem with 2.x and 3.x versions of Processwire. Now both work.
  4. Maybe you could try updating PHP to 5.6? I think PHP 5.4 is unsupported now anyways? Maybe also check your upload_tmp_dir = "/tmp" in php.ini is set to the correct location for your OS. I'm not sure what else to try... You might list your Operating Systems as well in case others chime in here to help.... maybe upload your php.ini file?
  5. Few questions for you: How did you install php on your setup? What version of php are you running? Is xdebug installed? I installed php via homebrew on a mac using php 5.6.23. Using always_populate_raw_post_data = -1 didn't work for me. I had to update/reinstall php with brew unlink php56 brew unlink php56-mcrypt brew unlink php56-xdebug brew install php56 brew install php56-mcrypt brew install php56-xdebug restart apache and then it started working Note: In the github issue I stated that it was only working with xdebug enabled, but now(after following the steps above) I can run it with xdebug disabled. Hope that helps
  6. Maybe it is related to this issue https://github.com/ryancramerdesign/ProcessWire/issues/1174 ?
  7. Hello everyone. I’m just starting using Processwire and ran into a problem. I can’t seem to output on a template(left-sidebar.php) a repeater field that is attached to a “site-settings” page. The surrounding html prints but the $block_title and $block_body are empty. Anybody willing to take a look? Here is the code I’m using in left-sidebar.php: <?php $siteSettings = $pages->get("/site-settings/"); foreach($siteSettings->global_footer_blocks as $block) { echo "<div class=4u 12u(narrower)><section>"; echo "<header><h3>"; echo $block->title; echo "</h3></header>"; echo "<footer>" . $block->body . "</footer>"; echo "</section></div>"; } ?> On my site-settings page the repeater field is named global_footer_blocks. That repeater field contains block_title and block_body fields. Here is my output http://pastie.org/10885463 when I call print_r($siteSettings->global_footer_blocks); in left-sidebar.php.
  8. Maybe this would work? http://modules.processwire.com/modules/process-setup-page-name/
  9. Lullabot wrote a good Drupal specific article on the subject: https://www.lullabot.com/articles/amping-up-drupal They also released a PHP library https://github.com/Lullabot/amp-library that might help.
  10. Hmm... I don't see anything. Did you forget to insert the image/screencast?
  11. Thanks everybody for the tips! That definitely points me in the right direction.
  12. Thanks @mr-fan and @adrian! @mr-fan your setup is similar, but in my setup there would be a main calendar page and each event posting would have it's own public page. On that event posting a page there would be a button for "Add to calendar" so that people can add that event to their personal calendars. So I'm still confused conceptually how this would all work? Am I supposed to examine the url in my event posting template and check for a .ics extension and do the proper theming?
  13. I'm wondering what is the best way in Processwire to dynamically create .ics files from all my existing event pages? I would basically like a button on my event pages that says "Add to Calendar" My pages have a startDate and endDate fields. Pages have urls like events/name-of-event I would like it if someone visits events/name-of-event.ics, it would dynamically create the ics file download. Is something like this possible with Processwire?
  14. I posted a similar topic that might be relevant to this discussion. https://processwire.com/talk/topic/11905-globally-access-the-page-tree-in-the-admin-theme/ I like how wagtail.io has a sliding page tree.
  15. Thanks @pwired, I really just wanted to share how that other cms is making their page tree available on every page in the admin in way that is quickly and easily accessible. It looks like it could also provide a way to browse a large tree of pages when editing on a mobile phone. Currently Processwire requires you to click on the pages link which requires a full page load. Having the Pages Tree always available is a nice feature in modx and Pimcore. I'm still very new to Processwire, so it might be a while before I can figure out how to do something like this. Others may want take that design pattern and run with it.
  16. Just came across this interesting video https://vimeo.com/86719782. At 53 seconds into the video you can see how the Wagtail cms (https://wagtail.io/) admin theme is able to show their site's page tree just by hovering a global link. Maybe that is something that can be done for Processwire? Just a thought
  17. Thanks adrian for the help. Yes, that can happen if you don't set any page aliases with the https://www.drupal.org/project/pathauto module. The Pathauto module is used on pretty much every Drupal site.
  18. Oh... That's what that setting does. Yes, it works for me. Thanks for pointing me in the right direction. The only thing missing now is maybe some kind of text formatter module that would convert /1002 type links to /my-cool-page? I've only used Page Path History once a while back, but it seems like Page Path History module is just covering up the problem by creating a ton of redirects without fixing the source of the problem which is the content is linking to the wrong page? In Drupal, your not supposed to see the node/1002 links on the frontend. Instead, you see the node's alias which would be something like /my-cool-page. Their is a https://www.drupal.org/project/redirect module that is used to store changes of the node's alias. For example, changing /my-cool-page to /my-cooler-page, but that is really only useful for when other websites link to the node's alias. Internal links in text areas are always like node/1002 and then transformed on output into /my-cool-page. As far as I know the systems that do this are modx, concrete5, Drupal. Anyways, thanks again for responding. I appreciate your help.
  19. Maybe it would be possible to add another option to the ProcessPageEditLink module? something like "Absolute page id"? that would insert links like /1002
  20. I just tried out the module and I can confirm that it works just like it says. I'm new to Processwire, so forgive me if what I'm suggesting is to much. I come from the Drupal land. In Drupal, all pages have a id called an nid(node id). With core Drupal you can visit any page with /node/10003 and it will redirect you to that page. When links from the editor are inserted into a textarea, they look like /node/10003. When the page is viewed, the https://www.drupal.org/project/pathologic module converts those types of links into their aliased name(like /my-cool-page). I believe Concrete5 does the same thing with it's core page link abstractor. Couple of things/possible suggestions: Is there a way to rewrite links that are inserted via the wysiwyg editor into a textarea? For instance, clicking on the link icon in ckeditor opens a modal dialog where you can select a page, but when you select a page it inserts something like /parent/child-page instead of /1002. If it just inserted /1002 then the editors wouldn't need to look at the short links tab because this module would automatically handle everything. Maybe there can be a way to use a text formatter module to convert links like /1002 to /parent/child-page when outputting the page like https://www.drupal.org/project/pathologic? Drupal also adds the following to the page to assist with SEO: <link rel="canonical" href="https://www.mywebsite.com/my-cool-page" /> <link rel="shortlink" href="https://www.mywebsite.com/node/4796" /> Processwire looks really good, but I can't imagine not having some kind of way to handle links breaking when the site tree changes. For big departmental or documentation websites, this happens all the time. P.S. I have seen the other two modules page-link-abstractor and page-path-history. Hope that helps, thanks for sharing your module I think it is definitely moving in the right direction!
  21. @Soma - I like the freeform blocks concept. Your block concept sounds a lot like Concrete5 and also in Drupal you have https://drupal.org/project/panopoly which you can create these blocks with https://drupal.org/project/fieldable_panels_panes and place them into a layout using the https://drupal.org/project/panels "In Place Editor"
  • Create New...