-
Posts
319 -
Joined
Everything posted by ottogal
-
In your CSS you have .uk-container { display: flow-root; box-sizing: content-box; max-width: 1200px; /* <<<< */ } That's the culprit.
-
I'd try findOne() instead of find().
-
A really great write-up! Should find its way into the Showcase...!
-
On that page it says Suche nach "festival für freunde" It might be a case issue. Usually a search term in double quotes is case sensitive.
-
You could have scrolled to the very bottom of any page in this forum... 😀
-
Hi @Gary, before choosing any of the countless slider scripts out there consider reading Heydon Pickering on inclusive design of sliders: A Content Slider (For sure not easy if you are a beginner...) Kind regards ottogal
-
Faq template, how to make just one?
ottogal replied to franciccio-ITALIANO's topic in Getting Started
Salve, @franciccio-ITALIANO I think you don't need several templates. Just create one template and add the two fields (of type Textarea). Then for each FAQ you create a page that is using this template. -
Hi, wouldn't you want to calculate the $diff with the unformatted timestamps and just output the result in 'Y' Format? (Or I misunderstand the use case.)
-
Trying to create progress bars for Processwire generated cards.
ottogal replied to spercy16's topic in General Support
As far as I know in PHP a quotient of integers with a non-integer value is treated as float. So I'd try to cast the $percent value: $percent = (int) $percent; or $percent = intval($goalNum / $raisedNum);- 13 replies
-
- conditional statement
- typecasting
-
(and 4 more)
Tagged with:
-
Grouping Unique Results / Categories and Subcategories, help?
ottogal replied to John W.'s topic in API & Templates
?? -
Grouping Unique Results / Categories and Subcategories, help?
ottogal replied to John W.'s topic in API & Templates
Hi John W., hoping not to misunderstand your data structure: I'm sure that the Drs. are not in the Gifts businesss, and Mary's Flower shop ist not involved in physicians' tasks. So the hierarchy of your categories should be just like your wanted output (see the attached image). Then the individuals (Dr. Adams, Dr. Smith, Mary's Flower Shop) need only to have a reference field to the Secondary Categories - not to the Primary Categories. (Since Mental Health is a subcategory of Physicians, Dr. Smith automatically is categorized as Physician...) -
Don't worry, nothing offensive here...
-
Saying "consider" and "should not", I tried to give advice - of course there is no "must not"... I'm aware that many and big players don't care, or see some benefits in their way to handle this. They ignore the arguments against it, and that is bad.
-
Please consider that flags should not be used to distinguish languages! See the notes here, visit the links:
-
Maybe this would do it: https://www.zeitverschiebung.net/en/city/2192362
-
Should be $link = next($links);
-
Aren't there missing the opening <li> tags? It should be foreach ($items as $item) { $content .= '<li>'; if ($item->front_position == $item->index() { $content .= '<a href="' . $item->url . '">' . $item->title . '</a>'; } $content .= '</li>'; }
-
No problem here...
-
Extremely helpful hint - thank you!
-
That was the way they did it in other CMSs I used in former times - before I luckily found ProcessWire! It was like a breeze of fresh air after a long stuffy time... The dilemma you are in is to incline to habits you are familiar with. Try to understand the way PW works, and you will soon be convinced. (And as a next step: Try to convince the client...) All the best!
-
Thank you for the insight - I wasn't aware of this.
-
Isn't it a rather common security consideration to not allow passwords to be pasted?
-
[solved] Issue using Toggle Fieldtype in selector for pagination
ottogal replied to ottogal's topic in General Support
Sorry, but i have to pour some water into the wine: It works well only on my local installation (xampp), but not on the live site. With toggle_field=1 in the selector, the output is correct; with toggle_field=0 the output is empty, $posts->count() is 0. Considering a remark in https://processwire.com/blog/posts/pw-3.0.139/ I thought it could be necessary to make it a required field. But that changed nothing. Finally I got it to run correctly by editing the value in each single post (changing it to 1, save, changing back to 0 and save again) - at least there are not so many posts at the moment... Obviously setting the default value to 0 (directly at the creation of the field) has no effect at all. Just an hour ago I realized that the very same issue was adressed by @Nils Wiere in this post (and that I already asked back in June...): So further help is much appreciated!- 3 replies
-
- pagination
- selector
-
(and 1 more)
Tagged with: