DV-JF
-
Posts
294 -
Joined
-
Last visited
-
Days Won
1
Posts posted by DV-JF
-
-
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/1234
the 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!
-
Wonderful!
@cjx2240 Could you please change the title of this post to [SOLVED] ... , makes it easier for others to find this solution ? -
Hey @cjx2240
I recognized that this behaviour only occurs when I inspect the website with the dev tools and the "user agent" is changed.
To prevent this I added the following entry in the site/config.php file:
/** * Prevent from being frequently logged out while using Chrome DevTools * */ $config->sessionFingerprint = 2;
Hope this helps you too.
To make it save for production you could check if $config->debug is true and wrap this with an if query-.
- 1
- 2
-
Hey @JohnRodgers
have a look at this module:
Maybe it's a little bit older but I think, it'll still do its job.
Greets, DVJF alias Jens
- 1
-
This looks great! I'll give it definitely a try in an upcoming project. Thank you!
- 1
-
23 hours ago, dotnetic said:
New Release! Added support for latest stable ProcessWire version 3.0.184
Did you update the module here: https://processwire.com/modules/german/
-
Hey @hollyvalero
2 minutes ago, hollyvalero said:I assume the .dotVersion is a saved version after a more major upgrade.
You're almost right. All folders starting with a dot are backups which where automatic created, when you update the modules via the PW backend.
So if you've tested everything carefully, there's no reason to not delete them ?
- 5
-
Hey @Mantas, welcome to the forum and to ProcessWire ?
2 hours ago, Mantas said:What would be the best way to empty those?
To do so I just delete the following folders via FTP:
/site/assets/cache/*/*.* /site/assets/sessions/*/*.*
and truncate the table "caches" in the DB.
After that you have to relogin and do a "module refresh" via "/processwire/module/?reset=1".
That's the way I do it.
- 2
- 1
-
Hey @MoritzLost,
short question: Following scenario:
I'm using FormBuilder with the option "Submit to another URL (bypassing Form Builder processing)" (with "Form Submit Method" POST) to process the input of the form on a dedicated page with a separate template.
Is it possible to validate the hCaptcha field on this dedicated page to process only if hCaptcha field is valid.
I'm trying to avoid a scenario where visitors (or rather bots) visit the "processing" URL and causing high traffic.
Any thoughts are welcome... Many greets Jens alias DV-JF
- 1
-
20 hours ago, Guy Incognito said:
I looked into this further. I tweaked the module to dump out the response from Google API and it confirms that indeed referrer restricted API keys won't work with the Geocode API.
Array ( [error_message] => API keys with referer restrictions cannot be used with this API. [results] => Array ( ) [status] => REQUEST_DENIED )
Hey @Guy Incognito, hey all
I've struggled with the same error message, but found a solution: Make sure that you've enabled both API's the "Maps JavaScript API" & the "Geocoding API" .
Also make sure to add the wildcards in the restriction settings like so:
https://example.com/* https://www.example.com/* http://example.com/* http://www.example.com/*
Hope this'll help a little bit. Greets!
-
@Zeka Thank you, this is exactly what I was searching for!
-
Hey all, I'm setting up a site with 3 languages:
- default = German
- en = English
- zh = Chinese simplified
Is it possible to set all Chinese fields which are not translated yet to English instead of the default language German? In the settings of the fields I can only choose the default one?
I was trying to edit / mess around the file wire/modules/LanguageSupport/LanguagesPageFieldValue.php but without any luck.
Is there maybe any hook I could use to accomplish my purpose?
Many greets, Jens alias DV-JF
-
What I've found out, that if you have a Form builder form on your site, a cookie will be set even with the config setting mentioned above.
To avoid this you have to disable the cross site scripting protection.
- 3
Menu Builder
in Modules/Plugins
Posted
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.