Alpine418
Members-
Posts
97 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Alpine418
-
Hi. I have tried out RockMigration and have a few questions (and still dont get it, I how it should be implemented in a running website on dev and prod stages). I have a working website. Can I generate a fully migrate.php file or do I need to create it manually with the code hints of each field/template? Last one would be a real pain if there are many fields. If I have a field added and want to remove it later on in development process. Then how can I different the state of the field in the migrate.php? Top to down, first added and then removed in one run? But how would the migrate.php looks then? Are there any advanced examples of migrate.php for learning the basics and inspiration? Or advanced docs? Thanks.
-
Last update. My fix was to add the following command to my npm script: --no-ghost-mode "browser:sync": "browser-sync start --proxy dev.local --no-notify --no-ghost-mode --files public/site/templates/**/* public/static/**/*", The commands disables the mirror of all clicks, scrolls & form inputs via browser-sync. Source: https://browsersync.io/docs/command-line
-
lol.... issue posted and problem found. It looks like it is a combination of browser-sync as proxy when running ProcessWire unter localhost:3000. When I want to switch the tab, injected browser-sync reloads the page. But why I dont know.
-
Hi, I've a field of FieldsetPage mapped with a few fields. E.g. If I now want to disable the "required" state of title I need to switch to the tab "Input" of the field mapped to the Fieldset. But when I click "Input" the page completely reloads and I'm landing on the admin site with the page tree. I'm using the latest version 3.0.210. Does anybody else have the same problem? It is a relatively plain installation. I just have RockMigration installed and uninstalled. And TinyMCE installed. Thanks for your support!
-
☁️ Duplicator: Backup and move sites
Alpine418 replied to flydev's topic in Module/Plugin Development
I am getting errors when using cron.php Can you check/test it? I am on my phone and cannot access the error message properly. Thanks. -
[solved] when default field value is an image file
Alpine418 replied to neosin's topic in Getting Started
I cannot see the default value settings for image fields on the latest PW versions. Did I miss something? -
I like the backend theme. Good job. Any chance to get access to it?
-
Hi, I am not happy with the limited features of the free comment module. Now I am thinking to buy the Form Builder Pro, but I am not sure if it can be use for custom comment system. Can anybody tell me more about the possibilities to create a custom comment system? Can I change the output of each input field for Bootstrap oriented stylings? And can I output the sent data in the frontend? Thanks.
-
Replace CommentForm/CommentList with custom classes
Alpine418 replied to Alpine418's topic in API & Templates
Thanks a lot. Is there any possibiliy to add a custom field to the comments? -
Hi, I want to replace the comment output classes with custom classes. Because I need the output formatted for Bootstrap, with a few other tweaks. I'm rendering the template with this code: <?= $page->comments->renderAll() ?> How can I replace the default classes CommentForm and CommentList with custom classes before the instance got created? Thanks.
-
Looks like the same issue I have with page repeater. It would be really cool to get this supported.
-
☁️ Duplicator: Backup and move sites
Alpine418 replied to flydev's topic in Module/Plugin Development
Since the last update of the Upgrades module, there are two packages of duplicator: One can be upgraded, the other not. And when I install duplicator, only the module "Duplicator" got installed. I've had to install "ProcessDuplicator" manually. Thanks to this info here. It's look like something smaller is messed up since the last few PW updates. Or not? -
Was a problem with the AutoTemplateSubs module. After I uninstalled the module, the error did not occur anymore.
-
-
Thanks. My module development skills are to low for any professional pull request. I would be really happy if you could implement support specific page repeater rules. Yeah, thats the current and only way to get it done. But who wants 3-5 similar fields with different names? ?
-
Hi, I got the following message when I update oder delete an text field: The update works. But deleting the field does not work. All other fields doesn't have any problem. How can I hard-delete the field in the db? Or is there any other solution? Thanks.
-
Doesn't seem to make any problems yet. But you are right, I will rename it for "safety first" reasons. No, it doesn't work if I select "Repeaters" as parent page and it does not work if I explicit select the template or page. Doesn't work, because both times the same page and field got matched. The module can currently not set rules for page repeater and different handle the fields with similar names (connected over page repeater).
-
Additional information: I've a image field called "image" and a page fieldset called "meta". The image is mapped on the template and also mapped on meta, which mapped to the template too. So the image field "image" is two times mapped. $page->image $page->meta->image For $page->image I want to rename the image to "{$page->title}" and for $page->meta->image I want to rename the image to "preview". How do I configure the rules to match both cases? Thanks.
-
-
Thank you. It looks like that to cache the HTML output is the only solution. Strange is, that the cache offers a renderFile method. But I dont get it to work to render a partial (site/templates/partials/foo/bar.php). Does anybody have a working example?
-
Hi, how can I boost up this code in my template? <?php $selector = 'template=game, genre.name=strategy'; ?> <?php foreach ($topics as $topic): ?> <!-- ~50 topics --> <?php $count = pages()->count($selector . ', topics.name=' . $topic->name) ?><!-- more than 1000 games --> <!-- My awesome super stuff with $count --> <?php endforeach ?> I've three similar queries of the code above in a template and it slows down the page load ~2secs. How can I boost up the count query? Thanks
-
I think I found it: Page::loaded https://processwire.com/api/ref/page/loaded/ Edit: How do I check in a custom page class, if it is the current class? Maybe something like this: namespace ProcessWire; class DefaultPage extends Page { public function loaded(): { parent::loaded(); if ($this->isCurrent) { // to my special custom super feature stuff } } }