DV-JF
-
Posts
318 -
Joined
-
Last visited
-
Days Won
1
Posts posted by DV-JF
-
-
Short question: Is it possible to add custom page classes to repeaters?
I'm trying to do this with method but without any luck:
Repeater Field Name: my-repeater File: /site/classes/RepaterMyRepeaterfield.php<?php namespace ProcessWire; class OwnRepeaterPage extends RepeaterPage { public function test() { return 'Test'; } };
Any ideas or hints?
-
10 minutes ago, ryan said:
The new FormBuilder version includes various improvements but the biggest is a new version of the included InputfieldFormBuilderFile module that supports file/image uploads in forms. It has been improved with a preview option (for images), the ability to collect a description for each file, improved multi-file inputs, and more.
A dream comes true !!! There's a german saying: "Was lange währt wird endlich gut." (What lasts long finally becomes good.)
Actually, I wanted to get off work and start the weekend, so I guess it will be nothing for the time being ?
-
3
-
-
Check also if mod_rewrite is enabled in your XAMPP settings (and if all other requirement are given). To proof you can create a simple info.php file in your root folder containing
<?php phpinfo();?>
Greets!
-
1
-
-
7 hours ago, Pip said:
It occurs when I go to the website http://localhost/folder/
This behaviour indicates that something is wrong with the .htaccess file in the root folder.
Please check if the file is present in the root folder of the site, if not, you can get a copy here: https://github.com/processwire/processwire/blob/master/htaccess.txt - download this file and then rename it to .htaccess.
-
1
-
-
-
404 seems strange to me ? normally you would get a 500 if something is wrong with your PW installation. I would try if XAMPP and your setup is working properly by just creating a simple index.html file in your folder and open it in the browser.
Personally I've switched from XAMPP to Laragon, which is much more easier to setup.-
1
-
-
$headers = 'From: info@selfdomain.com' . "\r\n" . 'Reply-To: '.$email . "\r\n" . 'X-Mailer: PHP/' . phpversion();
This should help ?
-
1 hour ago, johnners said:
Your link isn't working, but regardless, I suspect the following code is missing in the template file:
<?php echo $form->styles; ?> <?php echo $form->scripts; ?>
Have a look, here:
I mostly use "Option B" to implement my forms when I don't need any fancy customization, so I don't have to worry about styles & scripts.
-
Which method are you using to implement FormBuilder on your frontend?
-
Hey Philipp,
have a look at this topic - seams to be nearly the same question you asked for:
Many greets1
-
2
-
-
-
3 hours ago, heribertus said:
So I have to live with the jump to the startpage when switching.
I don't get what you mean with this sentence. Could you explain?
You can put the language switcher wherever you want to. If you have e.g. a site spanning header or footer you could put the code in there.
-
27 minutes ago, heribertus said:
How can I make a language selector menu?
Have a look at the docs ?
Implementing a language switcher https://processwire.com/docs/multi-language-support/multi-language-urls/#language-switcher
-
1
-
-
Hey @Wanze I've maybe figured out a problem with your module - see: https://github.com/wanze/SeoMaestro/issues/40
Edit: Because this seems for me that this could be a problem for anybody else, I'll copy the text and images here - anyone else facing this problem?
Seo image is duplacated multiple times:
- PW Ver. 3.0.184
- Modul Ver. 1.1.0
- PHP 7.4
- Settings - see. Screenshot below
Description:
Till now I've only setup one image on the Homepage (page id 1) for the SEO image field.
But it seems, that every timeI save the pageI visit the page an extra image is created insite/assets/files/1234the folder corresponding to the page I'm saving.EDIT OUUUCH -It seems even worse: - The suspicious files are generated every time the page is loaded in frontend - see last three screenshots.



This blows up the assets folder enormously and is absolutely weird.
For more screenshots see attachments.
-
Here's a detailed example of how to achieve this with URL segments:
-
2
-
-
-
$options = array( ... 'nextItemLabel' => "<span>next</span>", 'previousItemLabel' => "<span>prev</span>", ... );
Are you sure, that they are not rendered? What happens if you change the code like this above?
-
9 hours ago, kongondo said:
I am closing the expressions of interest today folks. Final chance to register, otherwise you'll have to wait for the production release. Thanks.
Thanks for the reminder. Just in time a customer of mine asked for a solution for a "mini-shop" on his website. This seems like the perfect opportunity to help you with some testing. Hopefully I'm not to late for the party ?
-
1
-
-
@Chris Bennett Thx for responding.
What makes me think a bit is the following circumstance: if I understood the specification (https://content-security-policy.com/nonce/ - see "Rules for Using a CSP Nonce") correctly, it is necessary that for each "HTTP response" nonce must have a unique value. However, this will not work if ProCache caches the pages.Maybe someone else has an idea about this?
-
1 hour ago, wbmnfktr said:
Has anyone ever tried this css.php-approach in combination with ProCache?
I'd tried, but it doesn't work out for me. Don't remember where the exact problem was. In the end I decided to not compress or cache the template, which is responsible for the output of the css file.
-
1
-
-
@Chris Bennett is your approach compatible with ProCache or are there any edge cases that have to be considered?
-
@Mika may I ask you, out of interest, what the specific use case is for you? Why would you want to search for a title that is at least longer than 10 characters? ? Cheers!
-
Hey @DrQuincy
in site/templates/admin.php you could do somthing like this:
<?php $wire->addHookAfter('AdminTheme::getExtraMarkup', function(HookEvent $event) { $parts = $event->return; $markup = ''; if((wire('config')->debug) == true) $markup = ' <div class="pw-container uk-container uk-container-expand"> <div class="uk-alert uk-alert-danger">Your in Debug Mode!</> </div>'; $parts['masthead'] .= $markup; $event->return = $parts; });?>
Perhaps you could even check the $config->httpHosts if you want to.
I hope this'll help you ? Many greets!
-
4
-
-
Hey @benbyf,
just had a quick view on it. I'm not living in the UK and mistyped the postcode.
Got an 500 error: See https://right-to-know.org/your-area/?postcode=SW1A+001
Apart from that I really like the site and the idea behind it. Well done!




How do you implement custom page classes?
in Dev Talk
Posted
Hey @gebeer
thx for your hints. I corrected my code and tried it again but it doesn't seam to work - only "normal" pages are working:
Can you @gebeer or someone else ( perhaps @ryan) confirm that you can implement custom page classes for repeater pages in this way?