-
Posts
2,086 -
Joined
-
Last visited
-
Days Won
51
Everything posted by wbmnfktr
-
First of all I would turn on debug mode if not already. That should tell a bit more even within the module. How many tables and rows were exported and shown on the live website? More tables and rows or the same amount? Have you looked into the .sql file? Could you spot something that looks a bit off? I once had a weird issue were creation dates were all set to something like 0000-00-00 00:00:00 which didn't work out very well. Another thing you could and maybe should try: Create a new database on your local server with the exact same settings (charset, db engine) and change import the SQL there. Yet another thing you could check: Does the database user in your local environment have all necessary privileges? Whats your local setup: MAMP, XAMP, Laragon, Docker?
-
Work with sessions when using multi-instance
wbmnfktr replied to androbey's topic in General Support
Similar topic therefore a recommendation: -
You can always add additional parameters to a subscription. See the example here: https://github.com/danielstieber/SubscribeToMailchimp#usage
-
Just in case - another possible way to handle things like this: https://processwire.com/modules/process-custom-upload-names/ Maybe not right now in your case but within larger projects this module comes in handy.
-
Same as @diogo already said... I don't know and don't understand almost anything you wrote @hellomoto but eitherway... I know how it feels to be lost in some kind. Never had to deal with things you wrote in your first post (I read it, but won't cite it as you deleted it). All I can say, which is almost what Diogo already said... I won't make fun of you. Never. You are part of this community which is more important that anything else. Yet... I'll offer you an "open ear" for conversation, talks, exchange for all kinds of topics. I remember a time I needed something like that but haven't had anyone... so... the thing I can offer you is... someone to talk to. If needed and wanted. We all have some kind of daemon or daemons which follow us in some kind or another. Either in real life or in mind which disrupts our real life. No judgement or anything like that. Talk to me about the things that keep you in trouble. Drop me a PN for contact details. We can talk via whereby, Skype... whatever. Let me know. I won't let someone from this community go down a dark spiral. Talk to me. We are friends. Even though we don't know each other. Yours, Alex!
-
Miss Monique (on YouTube)... awesome sets.
-
Don't mess with @teppo. He sees and knows almost everything and therefore we love him so much (but don't tell him). Thank you as well for your module. This might and will be a great addition for a lot of us.
-
The way I understand all this is as follows: You can create a new /site/templates/admin.less file and then based on either rock or reno you can start modifiying those @rock-* or @reno-* variables from those admin themes and override them from one single file. But not only that. You could also override almost each and every UIKIT base or component variable. Defining new gutter, font sizes, colors and all that's defined in UIKIT. It's more or less "limited" to the design as we can't add custom markup into the admin themes this way. Therefore we have to create our very own admin theme. The foundation is UIKIT, reno adds the know PW style, while rock adds just some different colors and slightly more modern tabs. As you can see in the Github repository... there are only two files for two themes with either a lot of customizations or just some tweaks. See here: https://github.com/processwire/processwire/tree/dev/wire/modules/AdminTheme/AdminThemeUikit/uikit-pw/styles Which can be compared here: I'm not sure what can be done this way at all but I guess and almost would bet that the community will soon show some nice examples. In the meantime I will play around a bit with this one. Right now I'm digging through a lot of files and the more I look the more confused I am... as I never built an admin theme nor really customized UIKIT in that way. Some things feel good, some things are just weird for now. Those links helped me to dig deeper (found them in the blog post): Rock style Reno style Uikit base Uikit components
-
[Solved] Title Field in Repeaters Not Saving???
wbmnfktr replied to prestoav's topic in General Support
Give this thread a look: -
Just a guess but maybe $home isn't defined.
-
Just played a bit with the most basic setup I found over here: https://processwire.com/docs/front-end/markup-pager-nav/ There are two circumstances that break the pagination in my test. when pagination isn't enabled in the template settings I use start=n in my selector Maybe you start over with the basic setup and without any functions around it.
-
Pagination is enabled in the template?
-
Change textarea formatting as CKEditor would do through API
wbmnfktr replied to Bike's topic in General Support
No clue right now. I have to test it here and will keep you updated. -
Try logging all outgoing mails with this little helper which is more precise: $wire->addHookAfter('WireMail::send', function($event) { $mail = $event->object; $event->wire('log')->save('sent-mail', "SENT ($event->return of " . count($mail->to) . "), " . "SUBJECT ($mail->subject), " . "TO (" . implode(", ", $mail->to) . "), " . "FROM ($mail->from)" ); }); https://processwire-recipes.com/recipes/logging-outgoing-emails/ What triggers the send function?
-
Change textarea formatting as CKEditor would do through API
wbmnfktr replied to Bike's topic in General Support
You might want to give $sanitizer->purify() a try. -
Another thing I see here... as you are moving content from Textpattern (I loved to use it!)... you might want to double check that you don't import the textile version but rather the HTML version of each page/article. Otherwise it might end looking funny. Another thing that might cause a headache could be image management. The last time I used Textpattern images were placed just by referencing them by ID. At least that's what I did back then. In this case you could (if possible) import those nowadays with Import External Images which looks up full URLs to an image and imports them.
-
<?php namespace ProcessWire; // get your languages $default = $languages->get("default"); // retrive default (german) $english = $languages->get("english"); // retrive english // imported pages with content in different fields // needed to move content in the correct fields there $importedPages = $pages->findMany("template=product, parent=4372, fkImportId=import44242"); foreach ($importedPages as $importedPage) { $importedPage->of(false); // outputFormatting must be OFF // title field $importedPage->title->setLanguageValue($default, $importedPage->fkTitleDe); // set in default $importedPage->title->setLanguageValue($english, $importedPage->fkTitleEn); // set in english // textarea field $importedPage->textarea->setLanguageValue($default, $importedPage->fkDescShortDe); // set in default $importedPage->textarea->setLanguageValue($english, $importedPage->fkDescShortEn); // set in english $importedPage->save(); // save the page with the new language values } Had a similar task a while back with content already stored in pages but in totally wrong fields (on purpose) - as we imported from CSV and moved content into their correct places later on which was way easier and faster with ImportPagesCSV and this little snippet here. Hope this helps a bit.
-
The way fields work could use a big overhaul.
wbmnfktr replied to spercy16's topic in Wishlist & Roadmap
I never used PerchCMS and from what I know and looked up over on their site reminds be a bit of something Functional Fields do in ProcessWire. Yet kind of different but still similar. AND another Pro module. Back to your concerns regarding 400 fields+. 400 fields for just a few cards and donations goals/amounts and such seems not only quite hight it's probably unnecessary as well. I'd bet if you could outline your needs more detailed and maybe even a screenshot of what it would look like in PerchCMS and it's behaviour that the forum might already have a solution for you or at least an idea. -
Perfect! Have fun with ProcessWire.
-
Thank you, @Pete for maintaining the forum! Just a question not only out of curiosity but... does this forum software support/provide a native dark theme?
-
Don't change anything in your /site/.htaccess that's fine how it looks. Check the one in your web root. That's the one that needs to be complete and which might need some tweaks. For a better understanding where to look: The important files and folders are: site, wire, .htaccess and index.php
-
If that's all you have in your /.htaccess then there is something wrong with it. The full PW .htaccess should look something like that: https://github.com/processwire/processwire/blob/master/htaccess.txt So please double check that first. If that's fine try to change the rewrite base in your /.htaccess which is necessary sometimes. Another thing could be wrong read/write/execute permissions on files and folders. There are already a few guides and tips for this error even on IONOS/1&1. Try either the forum search or Google search for that. Last but not least... welcome to the forum!
-
Grouping Unique Results / Categories and Subcategories, help?
wbmnfktr replied to John W.'s topic in API & Templates
Just in addition... this is what I use for similar tasks. <?php // Page sub-select - find pages based on previous selected pages // example: find all brand based on products // https://processwire.com/talk/topic/3553-handling-categories-on-a-product-catalogue/?do=findComment&comment=37833 // https://github.com/webmanufaktur/processwire-snippets/blob/master/api/api-page-subselect.php // define array for brands $brands = new PageArray(); foreach($pages->find("template=productTemplate") as $product) { // add brand from product page to brands array $brands->add($product->brandField); }; -
$page->getUnformatted('yourDateField'); The example above should actually result in a timestamp. At least that's what I use each and everywhere. https://processwire.com/api/ref/page/get-unformatted/ https://cheatsheet.processwire.com/page/built-in-methods-reference/page-getunformatted-field/