-
Posts
81 -
Joined
-
Last visited
Recent Profile Visitors
4,144 profile views
rooofl's Achievements
-
Thank you @monollonom!
-
I have a hook in a ready.php file, that is supposed to fill a page’s field when a public form is submitted. wire()->addHookBefore("Pages::saveReady", function(HookEvent $event) { // do all that for font pages only $page = $event->arguments(0); // avoid the error “page can’t be saved” if($page->id){ if($page->template->name !== "font") return; if(!$page->webfont_archive->count()) return; // fills styles foreach($page->webfont_archive->find("ext=woff2") as $font) { $styleTitle = basename($font, ".woff2"); $styleName = wire('sanitizer')->pageName($styleTitle,true); $styleToFind = wire('pages')->find("name=$styleName, template=repeater_font_styles"); wire('log')->save('vtf_custom', "TOFIND: ".$styleToFind); … } $event->arguments(0, $page); … I noticed that $styleToFind is logged only when I use the form when being logged. Can someone explain me why? And how can I make sure it can be found also for guests (not logged in visitors)?
-
Thank you @wbmnfktr for your answer. I think it is a bit more complicated than I thought. I understand what you wrote, and it totally make sense, but I think the economy will choose for me : keeping the markdown field as it is. However, I just discovered the module InputfieldEasyMDE, and that might be what I am looking for, as it keeps the markdown field content and just adds formatting options on a icon bar.
-
Hello! I have a textarea field already full of Markdown content. My clients need it to have CKEditor on it. That may be a silly question, but I can’t figure out how to use CKEditor with Markdown. Is it possible to either: interpret Markdown in HTML on the fly, in the CKEditor field convert all Markdown in HTML so CKEditor fields show HTML as they are supposed to do (I guess) Thank you for your answers.
-
rooofl started following Activitypub × Processwire
-
This is a very uninterested question, as I am just curious about this topic. Is there any dynamic towards a possible integration of Activitypub with Processwire? Would it be possible to create sites and app with PW that can interact with the fediverse? This could be a plugin able to federate with the network (just like this wp plugin does), or maybe a deeper integration (retrieve specific content from other federations…). I am personally using Mastodon and Peertube a lot since 5+ years and I think this is a great part of what remains of the cool Internet. I also feel an important technical gap between building website and creating federated apps, maybe for a good reason! I am interested to know your thoughts,
-
Thank you @Ivan Gretsky! Your ideas are what I was looking for. My goals are more for a user navigation perspective than SEO. Until now, this page can be reached only by modifying URL bar, but my clients do that apparently! (I do too sometimes). I think 2. is the best option for my case. Thank you again!
-
I have made several websites with this kind of structure: home projects project1 project2 project3 In my cases, the home page lists all projects, so the home/projects/ page is a double of home’s function. What would be the best practice? create a list of projects specially for projects/ even if it does the same as home/ redirect projects/ to home/ (I found ProcessRedirects can’t do that as the page is already exists, but maybe I can force it with .htaccess?) something else? Thank you for your advice.
-
Thank you! I “solved” the problem by adding a line to the .htaccess and hiding the 404 notifications on the notification module parameters.
-
The page /in-use/ exists, but those URL feel like a collage of many data types of the website, complete nonsense, they obviously not exist on the server. However, I found that the error also mentions "amazonbot": Referer: unknown Useragent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot) IP: 3.224.220.101 Page: Unknown User: guest The IP is also always different. And similar errors with Page: Unknown are being triggered almost every time without clear Page or Referrer. I have the feelings that bots are trying to reach pages that doesn’t exist. My PHP logs are ful of this kind of warnings. What should I do at this point ?
-
Hello, every ~5 seconds I have a 404 warning notification that appears on the admin pages. It says: 404 occurred: /in-use/aaaaa-atelier.org/www.aaaaa-atelier.org/www.aaaaa-atelier.org/aaaaa-atelier.org/fiskprojects.com/aaaaa-atelier.org/aaaaa-atelier.org/aaaaa-atelier.org/fiskprojects.com/fiskprojects.com/www.aaaaa-atelier.org/www.aaaaa-atelier.org/stud 10 secs / expires 20 secs As you can see, the URL is very strange, and I have no idea how to solve this request (is it a request?). It lasts since months now and it is very overwhelming. I have `$config->debug = false;` Any help welcome.
-
Hi all, This is our new website, still based on Processwire since 2015, we are very happy to be able to work with such a good piece of software. Thanks everyone for the support. https://velvetyne.fr You can read more about this new version here https://velvetyne.fr/news/new-website-v3/
-
This request was aborted because it appears to be forged
rooofl replied to bubu2110's topic in Getting Started
Same error for me, it ended up being a attempt to connect with http instead of https. -
Let me ask another question: could it be possible to log in JavaScript, the path of a file that just has been Ajax uploaded without saving the page? I tried that with no result: let uploadField = document.querySelector('#Inputfield_webfont_archive') uploadField.addEventListener("AjaxUploadDone", (e) => console.log(e));
-
That solution works! Thank you!
-
I think both works, and my issue is more about retrieving this value once the pages is saved and reloaded: $this->wire('log')->save('vtf_custom', $this->wire("config")->js('mySettings')['foo']); returns “bar” as expected, but there is still no trace of “mySettings” in the js object ProcessWire.config when I log it.