-
Posts
325 -
Joined
Everything posted by ottogal
-
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.
-
Isn't there anyone observing that same behaviour?
-
Have a read here: http://daily.unitedlanguagegroup.com/stories/editorials/inside-design-language-selector-no-flags
-
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.)
-
Resizing image ($image->width(xxx)) inside function
ottogal replied to Hurme's topic in Getting Started
From the API Reference page for WireArray class: -
Resizing image ($image->width(xxx)) inside function
ottogal replied to Hurme's topic in Getting Started
I'd try this: $out .= "<img src='$image->width(500)->url' />"; -
List only parents in search results when page is hidden
ottogal replied to joe_ma's topic in General Support
Shouldn't that be if ($m->template->name == "pressespiegel"){ ? -
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'
-
Maybe you can find some useful hint in this thread: Page reference field selection based on another field
-
Possible to layout pages this way? (Page Tree Q)
ottogal replied to joer80's topic in General Support
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. -
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...
-
@AndZyk I completely second what you're saying. What's most appealing with ProcessWire is (was?) its independency of third party assets...
-
I fully agree.
-
Good hint. I didn't know it - that is, I don't know nothing about URL segments. (So shouldn't give any advices... sorry!)
-
You're right. Bad idea.
-
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).
-
Children of children listed by parent heading
ottogal replied to Peter Knight's topic in General Support
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/ -
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...
-
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()
-
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
-
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']]
-
"Site in maintenance": how set it?
ottogal replied to franciccio-ITALIANO's topic in Getting Started
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".) -
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...
-
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.