Jump to content

DV-JF

Members
  • Posts

    207
  • Joined

  • Last visited

Recent Profile Visitors

4,464 profile views

DV-JF's Achievements

Sr. Member

Sr. Member (5/6)

81

Reputation

1

Community Answers

  1. Only a side note: Make sure, that $config->debug is set to false 🙂 and/or make sure to get rid of these errors:
  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?
  3. 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 🥳
  4. @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?
  5. 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.
  6. @Chris Bennett is your approach compatible with ProCache or are there any edge cases that have to be considered?
  7. @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!
  8. 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!
  9. DV-JF

    Right to know

    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!
  10. Wonderful! @cjx2240 Could you please change the title of this post to [SOLVED] ... , makes it easier for others to find this solution 😉
  11. 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-.
  12. 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
  13. This looks great! I'll give it definitely a try in an upcoming project. Thank you!
  14. Did you update the module here: https://processwire.com/modules/german/
×
×
  • Create New...