Jump to content

Denis Schultz

Members
  • Posts

    36
  • Joined

  • Last visited

Recent Profile Visitors

1,531 profile views

Denis Schultz's Achievements

Jr. Member

Jr. Member (3/6)

26

Reputation

  1. In this case, i would deactivate the session cookie completely. Here is an example for a solution, that keep it for logged-in users, but don't set it for guests: https://processwire.com/talk/topic/15270-session-storage-and-lifetime/?do=findComment&comment=136575
  2. It is a (normal core) Repeater in a RepeaterMatrix (ProField). The repeater itself is working without depth: Only the content of the normal core repeater is affected (in red). It is a module of my own. I use it to help my coworkers to set some fields in one place. It doesn't touch the repeater field or any field that is in the repeater. It also does not add/remove fields. The only logic in it is to write field content in destined fields.
  3. I'm through all trash sites. There are 2 template type in it. One is text-template and the second one from a custom module. The latter are three pages. The text template pages, have all the RepeaterMatrix block field, but not all have the problematic repeater field in it. And no of the trash pages hold in their repeater field the content of the non-trashed pages. Maybe an image is here better, in comparing of my language skill ^^ That image show how it looks before I empty the trash. After that, everything in the red square are gone. All repeater items are completely deleted. Doesn't matter if is 2 or 9.
  4. I'm facing a crazy problem. When I'm emptying the trash of a site from my customer, then all the content of a repeater, on all pages gets deleted. There are ~30 pages in the trash. All of them looking like Standard Text template pages. There is no repeater template page in the trash, from what I see. The only special behaviour is, that the process of empty the trash takes very long. After I realized that all repeater content are gone, that makes sense for me. How can I check which pages in the trash are maybe the reason for that, and how can I isolate that and "clean up the mess"? And what can I do, to prevent this in the future? Some context: The repeater have a TinyMCE, a "normal" textline-field and an image-field. The repeater is self placed in a RepeaterMatrix field. That latter is unaffected, and it happens on two separated RepeaterMatrix selection, so I don't think that is the root of the problem. (Discloser: I don't have support on it anymore)
  5. @ryanIf I may: I have a system that allow to add a Bot Alias to a Discord-Bot for a rpg chat group. The bots later are trigger in discord by a choose nickname. By near 80 players, some names are not unique. So I want to give a moderator the option to give manual a nick for the bot alias. For that, it would be nice to have a unique text field. Also, i "connect" the forum with it. So a moderator can add the forum-id's to a character. Here would it be also nice as a protection to not post the same ID twice, that an integer field has the option to be unique.
  6. Yes that is what i mean. But the Analytic code is not loaded until the user is accepting the cookie. In this time, the Cookie Banner is loaded without the Google code and the "above the fold" content is also loaded without it. The Google code should be there 2-5 rows (w/o compression) as Plain-Text, but not as processed code from the browser. So there was no "loading". When the GoogleAnalytic Code is written in the FrontEnd files, there is also no ProcessWire field, who was/wasn't loaded it. So no database interaction, no server process time used for it. And not process by the browser until the cookie banner give the signal. If the GoogleAnalytic Code comes completely from a module and is not self wrote in the source code, then yes, the loading of the site trigger the module to load the GoogleAnalytic code (not the trigger itself), but the loading "delay" can be prevented with the template-cache again. The "loading" part are 5(?) rows of plain-text, what the browser is not interacted with, until the cookie banner say so. When you use PageSpeed, 90% of the performance problems are bad compressed image, not lazy loading (what is more or less what you describe!) and using of wrong technics (like not optimized above the fold content).
  7. For me, that is optimizing "above the fold content" and delay/lazy loading after that. So the first impression is fast and everything else the user is not seeing is loading in the background or when the user is near to it. For the fields loading... i use (template-) cache on potential landing page such as the homepage/start page. So I doubt it would benefit performance when (ProcessWire-) fields are selective loaded. Even more when you go the ProCache route. For the user, it is more important what you do via the FrontEnd code with it. How you handle defer/lazy loading and co. For GoogleAnalytics, here in the EU, you need conformation of the user, before you transfer data to Google. So it does not trigger until the user accept it. So I look that my cookie banner is using CriticalCSS (The css rules in the style tag in the document's head) as also elements where are "above the fold". Everything else is coming after that and the user don't have to wait for elements to load, they direct can see in the beginning. PageSpeed/Lighthouse (https://pagespeed.web.dev/) is testing this and give indication, where you can optimize.
  8. @erikvanberkumLook about the $config->sessionFingerprint options. To set in the /site/config.php file.
  9. Jep Firefox is looking automatic for a favicon file if it is not provided in <head> section.
  10. I tried jan, it is interesting, because it allows you to use different LLM (also the OpenAI ones). I use Mistral Instruction 7B Q4 for this: (The code blocks have a copy to clipboard button on hover, so you get it fast to an editor of your choice... )
  11. Any plans to switch to the maintained fork: https://github.com/adminerevo/adminerevo ?
  12. On "natural" textfields, processwire don't add anything. The Rich Text editor like TinyMCE add code, because it is in the end a WYSIWYG-Editor. But as an example, when the first line of my TinyMCE field is a headline, it doesn't add a p-Tag before this. It begins with the headline tag. As it should. And even not add any p-tag when the headline is the only thing in my textbox. HannaCode add a p-Tag around the output, you can deactivate this behaviour on the edit dialogue of the HannaCode self. Aside from the option above, a autoclose behaviour can come from TinyMCE or from your browser, when it thinks a p-tag is open but should be closed, before a block-element (like div's).
  13. On Android I can replicate the error with the share of the kollar site in WhatsApp. But not on other sites were also using jpeg (also with e). Maybe the point in the filename irritated android?
  14. I don't say i knew it better ^^ - But as a base point.... In my opinion, the really not so good part is the dropdown. The points 2 and 3 can easily be confused with 4 and 5. Aside from that, I think the approach with the clone in the storage and then add the paste link where you add your blocks is (again, in my opinion) straight forward.
  15. How about it is done by the RepeaterMatrix. You can copy/clone a block: A Dropdown come up (in my case in German) Copy this element in the storage to insert somewhere else Clone element and paste it over this (selected/clicked) element same as 2 but paste it behind is there when an element is in the storage and you want to paste it above same as 4 but paste behind Empty the sorage And then you get on all Fields (same Page and other Pages with this field), the option to paste it in: I think there is potential to optimize it. But i think it is a good starting point. Especial for people who come from the RepeaterMatrix.
×
×
  • Create New...