-
Posts
2,236 -
Joined
-
Last visited
-
Days Won
59
Everything posted by wbmnfktr
-
You can edit your first/original post and change the title. Add [SOLVED] at the beginning and you are done. That's our "Mark as solution" button here.
-
Seems to be a known issue:
-
How to recursively close sub-pages in page tree?
wbmnfktr replied to Clarity's topic in General Support
For me a click on Home (root) does the trick. -
Landing page exclude from prepend and append config entry
wbmnfktr replied to kaz's topic in General Support
Aren't your prepend/append files listed within the template settings (Files tab)? That would be the easiest way. -
Emails in IDN format do not get saved, cannot be entered
wbmnfktr replied to gebeer's topic in General Support
Wow... Didn't know that the $sanitizer and the specification do allow this now for the local-part as well. ? -
Just gut feeling here but... Whenever I see these kind of errors on pretty decent hosting it's most of the time maintenance-related and therefore high load on the servers due to missing ressources. Another thing I experienced where routing issues at the hosting company either after a broken upgrade to their systems or new DNS settings that didn't exist everywhere. One last thing, especially on shared hostings could be new settings for database connections. For example from localhost to db.hosterdb.tld I'd probably check with the hosting company. I once had this issue after my version of DDEV was updated. As you use docker... I'd check if something changed there for whatever reason.
-
Emails in IDN format do not get saved, cannot be entered
wbmnfktr replied to gebeer's topic in General Support
If you only test with this exact e-mail address the value is NOT valid and shouldn't pass the $sanitizer. So if that's the case, the sanitizer works. This shouldn't work: hans.müller@müller.com This should work: hans.mueller@müller.com -
So the number of items isn't fixed. Didn't think about that. Then your version with negative margins would be the best solution* here. You could play around with padding and positioning those items a bit to remove that extra space but to be honest I wouldn't care that much. If it's about aliging you always can reposition the parent container a bit. * in case it's a real table, I'd recommened to use a real table markup
-
The main reason is that outlines are used when tabbing through content and an item is in :focus . So when using outline instead of border the default highlighting in your browser won't work anymore. Another thing is that a border is within or part of the element while an outline is slightly outside of it. So there could be another challenge in more complex designs. Last but not least... using outline wouldn't fix the issue. At least not without further fixes and changes.
-
I'd probably do it this way. .cards { display: flex; width: 150px; flex-wrap: wrap; /* border */ border-left: 1px solid black; border-top: 1px solid black; /* taking care of the box model */ box-sizing: border-box; } .cards__item { flex: 0 1 33%; width: 50px; height: 50px; /* border */ border-bottom: 1px solid black; border-right: 1px solid black; /* taking care of the box model */ box-sizing: border-box; }
-
It's markdown... so: https://www.markdownguide.org/cheat-sheet/ You could by using: [title](https://www.example.com) Sometimes there was the need for a link... I didn't like it but the client paid for it. This would probably work out as expected. Still I didn't like it in the title field therefore took other fields and tried other approaches.
-
I know what Markdown/Parsedown do and how the core module works. I used it before in the exact same way as you describe it but as the title field is often a fallback for the page title and in other places the additional markup didn't play out that well - at least with the title field in my case. But in other simple fields it's nice to have this option. Adding links was nice. The markup was easier to add for non-tech people than the whole anchor tag. That's why I was asking. As I thought it would do things in a totally different or another way. I can see your point here.
-
-
Yet again curious but how does this differ to the Markdown/Parsedown Extra textformatter?
-
As much as I support @BrendonKozanswer... I really don't understand what you want to accomplish. Do you want to hide images from backend or frontend users? And if so... what should be the result to which? There is always the option to secure PageFiles. But.... does this fit to your task/question?
- 8 replies
-
- images
- permission denied
-
(and 1 more)
Tagged with:
-
Ok... I didn't notice your usage of n in your query/selector but what @taotoo said is true. n is a placeholder for n=number/integer for the amount of entries/pages/items (however you wanna call it). It's the number of entries you want to see.
-
I really can't tell if this is a bug or feature, to be honest. I talked about this with @ryan and he wasn't sure either back when I found this issue. And yes, that was about at least 2 years back. So... right now... this seems only to affect PW-sites that were single-language and then were migrated to multi-language support. Which is probably the case here too. I almost never stumble over this, due to my profiles I use for new projects, but YES... it could and will be... kind of a show-stopper in a setup once in a while - as we see here. But here is the "easy fix"... never use title somewhere else outside of default templates. I know it sounds weird as re-using fields is such a common task nowadays (for good), but... I learned about the years that title is more or less not a field, rather a tool to define name-based default IDs (besides the regular page ID). I see the title field as something like fkTitle (foreignKeyTitle) which I used to use in Oracle DBs back in my agency times. Way less strict and only applicable with additional selector-queries, but... it's close enough in my use-cases. In my setups I ALWAYS use headline, subline, topline and similar fields instead of title. Especially in RepeaterMatrix to create unique jumplinks. tl;dr (my definition for the title-field) Use title in your templates but never in an ongoing or extended way like using it in RepeaterMatrix Blocks or similar. It's a system field for a reason. Almost like a human-readable ID. That how I handle it.
- 3 replies
-
- 1
-
-
- repeater
- multilanguage
-
(and 1 more)
Tagged with:
-
That's why this module is already on my TODO list to give it a try. Your website, the module, and docs look awesome so far and I can guarantee you I'll give it an in-depth look.
-
You can import a .sql dump into it. Or at least they say so on the website. https://announcekit.app/drawsql/changelog/import-from-sql-script-11eHo4
-
This could help here: https://processwire.com/docs/front-end/markup-pager-nav/#are-there-any-side-effects
-
- 3 replies
-
- repeater
- multilanguage
-
(and 1 more)
Tagged with:
-
No processire functions working outside processwire templates directory
wbmnfktr replied to BigRed's topic in General Support
This might be the right starting point for your question: https://processwire.com/docs/front-end/include/ Never used it, but it's possible to use ProcessWire outside of its natural space. -
How to filter templates by selector childTemplates [SOLVED]
wbmnfktr replied to Juergen's topic in API & Templates
Just an idea based on similar queries I used in the past... totally untested for your use-case. $templatesFromPages = new PageArray(); // we go from here foreach($pages->find("template=news|events|otherTemplates") as $myPages) { // add template from found pages $templatesFromPages->add($myPages->template->name); }; With this you might be able to look for this: $templates->find("name=$templatesFromPages"); -
New video: How to add RockMigrations to an existing Project
wbmnfktr replied to bernhard's topic in RockMigrations
It's hard to get started. It's either me or missing parts in the documentation. Not only writing the necessary code but to grasp the whole thing. I started using it and already broke a minimal setup with it - due to trial and error. So I'm learning. I probably won't need a real and fully supported GUI for that. These code hints do the trick for me know, even though they are quite verbose. Yet it won't work for most of my existing projects as I had to deal with so many fields and templates. That's were something like an initial-migrate.php file would come in handy. That's the part that's probably the most interesting for some of us as most migrations become difficult due to the missing feature that tracks necessary changes made across fields and templates. Writing each and every field and template in migrate.php feels and is super slow for me right now. Using the backend to create my fields is so much faster still. I can't image doing it for large projects to be honest. Maybe after practicing and working with RockMigrations for a longer time or after wrapping my head around it. I still feel I miss something yet I can't really say what's missing to fully understand it. Sure. But that would probably end in a ProModule of some kind and with a more broader approach in some aspects. Still we could talk about that and try to find out how this could be possible. ? -
In case you are looking for a nice and easy replacement for Pages2PDF as you might face problems with it due to PHP 8 - this might help you to get started and helped me today to get a site up and running again. Thanks to @bernhard for this module. <?php namespace ProcessWire; // file: templates/invoice.php $pdf = $modules->get('RockPdf'); $pdf->settings([ 'mode' => 'utf-8', 'format' => [210, 297], 'img_dpi' => 300, 'default_font' => 'DejaVuSans', ]); // Pseudo header $pdf->write(wireRenderFile('pages2pdf/_header.php')); // Footer $pdf->set('SetHTMLFooter', wireRenderFile('pages2pdf/_footer.php')); // Body content $pdf->write(wireRenderFile('pages2pdf/invoice.php')); // Styleshee $stylesheet = file_get_contents('pages2pdf/pdf.css'); $pdf->write("<style>$stylesheet</style>"); // Actions $pdf->show(); In this example I re-use my already existing pages2pdf-templates and even CSS. It's a super simple PDF, so I really don't have to deal with page margins and such in this case. So you might want to read the docs of mPDF and RockPDF to get this working in your project. There is a lot more you can do in terms of settings and such which can be found in this post for example: