-
Posts
328 -
Joined
Everything posted by ottogal
-
Problem with PageReference field and hooks
ottogal replied to verdeandrea's topic in General Support
To separate the status options for one group to the ones for others, why not have a separate Status Page (and status template) for each group: |-- Course Status (template = course_status) | |-- Status A (template = status) | |-- Status B (template = status) | |-- Status [...] (template = status) |-- Master Status (template = master_status) | |-- Status A (template = status) | |-- Status B (template = status) | |-- Status [...] (template = status) |-- Workshop Status (template = workshop_status) | |-- Status A (template = status) | |-- Status B (template = status) | |-- Status [...] (template = status) In the course template you would have PageReferenceFields to each of them, and you would hide the ones not matching to the Parent page of the actual course. There's no conflict having the same status name in different groups. You could even adress different details (e.g. a status "open" could mean other details for a Master course than for a Workshop course).- 13 replies
-
- hooks
- pagereference
-
(and 1 more)
Tagged with:
-
Guten Tag herr rilke, This might be helpful: https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/
-
As a non professional webdesigner (pure amateur...) I'd like to add to the discussion of versioning. I experienced that a potential "client" I wanted to convince of PW got the impression that in 3.0.xxx the quickly increasing values of xxx would indicate a continously need of fixing lots of bugs. (At the end he changed his opinion.) But also for me it's not comprehensible that we didn't have steps to 3.1 or even 3.2 back already, since there have been some notable achievements in the meantime.
-
[SOLVED] Vulnerability caused by old version of Adminer
ottogal replied to ottogal's topic in Tracy Debugger
I used the Update option in Tracy's Module Information from the Admin (and used the Delete button in the module's Settings afterwards). In site/config.php I had the permissions set to $config->chmodDir = '0755'; and $config->chmodFile = '0644'; Maybe this '0644' prevented the update of the file adminer-4.8.1-mysql.php and others. In fact the actual version was 7.2, I didn't recall having upgraded one day. (It's indeed a years old site not touched often later.) But sure, I should update anew. Many thanks for your considerations, @adrian! ottogal -
[SOLVED] Vulnerability caused by old version of Adminer
ottogal replied to ottogal's topic in Tracy Debugger
FYI: Just updating the TracyDebugger module did not affect the files and directories in the panel/ subdirectory. I had to delete Tracy and reinstall it to get that solved. (Perhaps because of the PHP version being very old, too: 5.6 ) -
[SOLVED] Vulnerability caused by old version of Adminer
ottogal replied to ottogal's topic in Tracy Debugger
Thank you for the quick reply! I'm planning to get more into the details of the great Tracy module... -
Hello to this tremendous community! The hoster of one of my ProcessWire websites is warning me about a critical vulnerability caused by the Adminer module: So I've got some questions: (1) My installed version of TracyDebugger is v 4.19.33. (I didn't use it much, so never considered an update.) Would it be sufficient to update it to v 4.25.22 to fix the problem? Or would I need a seperate update of the Adminer module? (2) I also thought of just uninstalling the module ProcessTracyAdminer. When trying this in the Admin, I'm told to manually delete the respective files and directories. Presumably I'd want to delete the file ProcessTracyAdminer.module.php and, in the panel\ subdirectory, the file AdminerPanel.php and the subdirectory Adminer\. Am I right - or is there more to it? Any insight is much appreciated! ottogal
-
Many to many with extra field (role/person/article)
ottogal replied to joe_g's topic in General Support
I never used repeaters, so can't help here... -
Many to many with extra field (role/person/article)
ottogal replied to joe_g's topic in General Support
Hi joe_g, I'd recommend to read this fine tutorial written by kongondo a few years ago: Tutorial: Approaches to categorising site content That's the right "PW way" doing it, profiting from the great API. Good luck! 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);