Jump to content

ottogal

Members
  • Posts

    325
  • Joined

Everything posted by ottogal

  1. In the Add Module From Directory dialogue I inserted the class name TextformatterHannaCode and hit the button Download and Install. The installation worked well. When I look for updates of the TextformatterHannaCode module, there is the message Session: Current installed version is already up-to-date. But not so trying to update the ProcessHannaCode module: I get the mentioned error message.
  2. Isn't there anyone observing that same behaviour?
  3. Have a read here: http://daily.unitedlanguagegroup.com/stories/editorials/inside-design-language-selector-no-flags
  4. After having freshly installed HannaCode and Hanna Code Textformatter I encounter the following issue: When, in the Module Settings for Hanna Code, I click on "check for updates", I get the following error message (at the top, in red): What's going wrong? (BTW: already on PW 3.096, but I think that doesn't matter.)
  5. From the API Reference page for WireArray class:
  6. I'd try this: $out .= "<img src='$image->width(500)->url' />";
  7. Shouldn't that be if ($m->template->name == "pressespiegel"){ ?
  8. No idea - just the observation that the result is the same when you use $pages->find() with the $options parameter like this: $options = array('findIDs'=>1); $homes=$pages->find("has_parent=1", $options); echo $pages->get($homes[0])->name; //returns 'home'
  9. Maybe you can find some useful hint in this thread: Page reference field selection based on another field
  10. It's a principle of the page tree organisation in PW that all pages have to be children of one single root page - it's title is Home by default, but you may change it as you like. If you like to send your site visitors to a certain page in the tree, you can redirect to it. It just cannot have the title Home, so use Start or whatwver seems adequate. Another question is if this redirecting leads to a good user experience. The visitor normally would not expect to land on a subpage. I'd rethink the tree structure.
  11. I really would hesitate to use or propagate the use of disqus. Some links: The Hidden Price of Using Disqus Why I killed Disqus Commenting on my site You can easily find more worth considering...
  12. @AndZyk I completely second what you're saying. What's most appealing with ProcessWire is (was?) its independency of third party assets...
  13. Good hint. I didn't know it - that is, I don't know nothing about URL segments. (So shouldn't give any advices... sorry!)
  14. A workaround - though not really pretty - could be: Assign a new template to the page "Actual home" using this template file (say) redirfirstchild.php: <?php namespace Processwire; if($page->numChildren) $session->redirect($page->child()->url); That would redirect a request of the "Actual home" to the "New home" page. Downside of this: The URL would become something like "yoursite.com/actualhome/newhome/" (whatever pagenames you use). To suppress the "actualhome/" part, you perhaps could use URL segments (I don't have any experience with them). Edit: And you'd keep the "Actual home" page in the tree (content removed, of course).
  15. Have a look to the Cheatsheet to find ways of selecting determined parents of a page, from simpler ones to this smartest one: http://cheatsheet.processwire.com/page/built-in-methods-reference/page-parent-selector/
  16. Your second use of if($prod->images) echo " is unnecessary (since you get only to this point if the condition is true). You could replace this by if($image) echo" Edit: Like in the code you cited first...
  17. Obviously the error is thrown already with the line $image = $prod->images->first(); (not only when you try to echo the image). So you should do a check for $prod->images before you apply ->first()
  18. I have no answer to your question, but would like to mention that using flags as language indicators is not the best idea: why-flags-do-not-represent-language
  19. Create a Hanna Code named cyan of Type PHP with an attribute text and the following code: <?php echo "<h3 class='cyan'>$text</h3>"; ?> Then the call would be [[cyan text='This is cyan text']]
  20. Salve franciccio-ITALIANO, maybe you're looking for something like this: https://processwire.com/talk/topic/7723-protecteddevelopmentmaintenance-mode/ (Or google for "processwire maintenance mode".)
  21. The homepage processwire.com is now displaying correctly 3.0.62, but not so the Download page processwire.com/download. Why not leave out the version numbers on the buttons, just saying "The newest master version of ProcessWire" etc.? And adding a link to Release Notes for more details...
  22. When there is the need to check a new participant if he matches one of the ones enrolled previously, I think you can't avoid having an identifier for every participant. Edit: Assuming every participant is a page (the PW way ), the page's ID would be the natural unique identifer for your purpose.
  23. Why not give the Page 1.1 a modified template with the Family setting "May pages using this template have children?" set to "No"?
×
×
  • Create New...