Jump to content

AndZyk

Members
  • Posts

    652
  • Joined

  • Days Won

    8

Everything posted by AndZyk

  1. Hi @Peter Falkenberg Brown, I think it should be: $page->getUnformatted('sale_date') Personally I have never used the $datetime->date()-function. I am using the plain PHP date()-function. Regards, Andreas
  2. Hi @sebr, 1. You could just uninstall the core module "Languages Support - Tabs". But this would disable all language tabs. ? 2. Required fields should prevent you from publishing the page if not filled out. But I think it only works for the default language. Regards, Andreas
  3. I have tested it with the latest German language pack for ProcessWire 3.0.184. Thank you for investigating, I will also look if I can provide more informations. ? Regards, Andreas Edit: This issue didn't occur after upgrading a few more websites, so maybe this was a caching issue after all.
  4. Thank you @ryan for your response. I made some tests and think that I can provide some additional informations to my issue: It is not the browser cache. Incognito mode or reseting didn't help. It is not another module. It was still there after disabling all third party modules. It happens after the upgrade from 3.0.165 to 3.0.184. It worked after upgrading from 3.0.182 to 3.0.184. It probably has something to with the language pack. I got no issue with the default language. The latest language pack (German in my case) still has this issue. So it seems, that something in the InputfieldTextTags module causes a conflict with the translation of language packs. I hope this helps, but as it seems that no one else had this issue so far and it happens only on my local MAMP server, this seems to be an isolated issue. ? Yes, I have posted this issue on GitHub. It would be great, if this could be solved in the future, but until then I just avoid using the new InputfieldTextTags with Selectize.js. ? And thanks again for the new master release. Reading through all the changes again makes you realize how much has changed since the last master release. Regards, Andreas
  5. Thank you for the new master version. ? But after the upgrade from 3.0.165 to 3.0.184 I get an JavaScript error on the field editing page, which results in a blank page: Has anybody else this issue? I think I have to wait for the upgrade a little bit. Regards, Andreas Edit: Ok, this issue seems to only occur on my local MAMP PRO server so far. I try to investigate further. ? Edit 2: By the way, I use to add tags to my fields and templates for better organization. The tags I add have usually capitalization like "Foo" or "Bar". It seems to be an issue with the newly introduced InputfieldTextTags.
  6. I think I will settle with the solution to set a "Name format for children" on the "Family" tab of the parent template. This way I can skip the "add page" step and still keep my "page-edit-lang-english"-permission. Additionally I hook into "Pages:saveReady" to set a nicer page name. If anyone has a nicer solution, I would be happy to hear it. ?
  7. Hello, I have a user role "editor-english", which is not allowed to edit the default language "german" of a page. For this I have installed the "page-edit-lang-..."-permissions. This user role has the permission "page-edit-lang-default" disabled and "page-edit-lang-english" enabled. My problem is, that I want this user role to be able to add new pages in the non-default language only. But since ProcessWire requires you to enter the page title in the default language on page creation, it is not possible to add a page for this user role, because it is not possible to enter a page title in the default language. I think the only way for me would be to set the page title in the default language with a hook before the page is added. Could somebody please tell me which hook that would be? I only tried "Pages::saveReady" so far. Or is there an other solution? ? In my opinion this is an issue which reduces the use of this permission. Regards, Andreas
  8. A variable is something you store information in. It could be a string, an array, an object or something else in PHP. This is basic PHP knowledge, so maybe you should take a PHP course first. ? In my example the variable was just for demonstration that you could pass variables with the wireIncludeFile-function from "file-a.php" to "include-b.php". But you don't have to use it at all. The only difference is to write wireIncludeFile instead of include. Here is a comparison: <?php include("path/to/partial.php"); wireIncludeFile("path/to/partial"); But you can use the include-function if you want to, its just a matter of preference. ? Regards, Andreas
  9. I prefer wireIncludeFile because of these points described by Ryan in his blog post: The foo variable is just an own variable you can pass and use in the included file. This way you can keep track where you added variables. Of course Markup Regions are also awesome and I like to combine Markup Regions with wireIncludeFile. I use Markup Regions for the whole blueprint of the templates and wireIncludeFile to split up large junks of code. Occasionally I use field templates for repeating fields markup. ProcessWire offers many ways to structure your code if you want to. ?
  10. Or you could use the wireIncludeFile-function of ProcessWire. I prefer this over the PHP include-function. ? <?php wireIncludeFile('path/to/partial', [ "foo" => $foo ]);
  11. Hello @cabrooney, repeater items have their own system template: You should be able to find them and sort them like this: $zeit_start = strtotime("2021-12-01 00:00:00"); $zeit_end = strtotime("2021-12-31 00:00:00"); $terminliste = $pages->find("template=repeater_termin_repeater, termin_datum>=$zeit_start , termin_datum<=$zeit_end, sort=termin_datum"); Maybe you have to add "include=all" too, if the selector doesn't find anything while you are logged-out. I am not sure if that is necessary. Regards, Andreas
  12. I have only used Webflow a few years ago to try some animations, but since they have their own Webflow CMS solution, I don't think they would allow external sources. ?
  13. When selecting an existing tag in the field settings the capitalization is ignored and a new tag will be created. For example, I have added the tag "Content", select it in the settings and it makes a new tag "content". I think this should be fixed. Regards, Andreas
  14. Thank you for making it easier to style the admin theme. This is way better than building it every time with node. ? Is it possible to provide also a source map file in addition to the css? I like to search for the variables with the developer tools and this would help me a lot. I know I can look through the admin theme style, but for example the reno theme uses many own variables instead of the UIkit variables. Regards, Andreas
  15. The Architekturforum Freiburg sees itself as a regional platform for information and exchange about architecture, urban planning, landscape architecture and building culture. On the website you can register for events, view presentations or become a member. The website uses UIkit as framework and Workbox for the PWA. architekturforum-freiburg.de Features: Dynamic primary color Structured data Dynamic primary color The events are grouped in programs and every program can have its own color. For this I used the awesome module Color. I defined a fixed color palette, so that no ugly colors could be selected and I worked for the first time with CSS variables. With CSS variables you are more flexible than with f.e. SCSS variables and can change the primary color for the whole website on the fly. This is used on the detail page of events with a different primary color. Structured data It was important for me to provide the correct structured data for the events. Since the pandemic they have been enhanced for online, offline and mixed events. Modules used: Repeater Matrix Form Builder Functional Fields Map Marker ProCache Upgrades TOTP two-factor authentication Tracy Debugger Color Sitemap Email Obfuscation (EMO) Regards, Andreas
  16. Hello @fruid, I don't understand why you would like to disable drag in the slider and I haven't looked at your JavaScript. But if you want to jump to a slide with a link you could always add a link link this: <a href="#" data-uk-slider-item="1"></a> So you could link the slider item to itself for example. Or you could build two sliders, one visible on desktop and one visible on mobile. Thats more markup but no duplicate content for search engines. ? Regards, Andreas
  17. Thank you very much @MoritzLost. This scripts works perfect. ? I have put it in a shell script to run it for all pages and modified it a little bit: Added a foreach-loop for all pages Only create folder if there are images Added timestamps to see what the shell script is doing I looked first in this module, but it only exports the pages as JSON without assets. The assets only get downloaded when importing. So this use case wasn't covered yet, as far as I know. ? I love this community. ? Regards, Andreas
  18. Sorry, I should have explained myself better in my first post. I would just like to export the assets and group them in folders with the name/title of the page they are used in. It is just for organizing the archiving the assets, because many are only available in the CMS right now. So instead of folder „1234“, „2345“ etc. with the assets for page „Foo“, I want one folder „foo“ with all the assets of this page. Thank you, your script seems to go in the right direction. ? Could you or somebody else please help me with this? Regards, Andreas
  19. Hello, we have many projects as pages containing images inside regular image fields and repeater matrix elements. Now we would like to organize our assets. ProcessWire saves assets with id as folder name and makes separate folders for repeater matrix elements. Is there a way to collect all assets of one page and export them in a folder with the page name/title? I think I could achieve this by using the command line wget for this website or maybe by a hook. But maybe someone has done this before. ? Regards, Andreas
  20. Hello @eelkenet, I had that issue on my local MAMP server, when this feature was introduced. I tried this config option, but for me it doesn't work at all. Is it mandatory to edit your .htaccess? Because strategies 1 and 2 didn't work for me, I use strategy 3 with an own config variable ($config->useWebP) and disable WebP on my local MAMP server. Regards, Andreas
  21. I know this is nit picking, but you could also validate the HTML for your responsive images: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.dothiscookingthing.de%2F Many people don't care about HTML validation, but I find it important. ? Regards, Andreas
  22. I would recommend using the third WebP strategy for that. ?
  23. Sorry for my late response, I am more interested in other things right now. There are some great discussions about layout builders at the moment, that I have to catch up and I find it great, because all those new API methods and modules are great, but for me more important is how content can be more flexibel for clients. ? Since you want to here my opinion on this topic: This demo is looking great for a proof of concept and funny thing is, that I had to work with the YOOtheme builder on a WordPress website a month before and thought myself: This is a nice layout builder. Especially how you can make new sections with grids, duplicate them and so on. And all with a live preview. ? One downside was, that you have some many options in the YOOtheme builder to build your own layouts, that it can be confusing some times and you have to search for a few minutes. As for your proof of concept: It is really nice, but if the data would be stored only in the module, I would not use it. Because if something changes in ProcessWire (maybe in version 4) or you would not update the module anymore, I would have to migrate tons of data in the core fields again. I try to build websites with core fields only, that are still working in years and I had to work with projects before, where everything was build around a module that didn't got support be the third-party developer anymore. If it would be possible to combine the power of ProcessWire and its custom fields inside a layout builder field, where the data still would be there without the layout builder field, that would be awesome. So the layout builder would just be an enhancement of the existing structure, instead of the whole structure. I think I will wait for Ryans take on this and you are probably still busy with Padloper 2, but thank you for this proof of concept. It is nice to have people like you, that are driving ProcessWire forward. ? Regards, Andreas
  24. Sorry, if I wasn't clear enough in my suggestion: I was just referring to the new Blocks and especially the Layout feature in Kirby 3.5 (linked in my previous post), which looks awesome, although I haven't tried it yet. But I could imagine something similar in ProcessWire and think that should be possible. If the Layout feature would be a pro module, I would be glad to pay for it. It was only my intention to give a pointer what a similar product is offering. ?
  25. I also wish you all a happy new year. ? I know that I am late to the party, and most of my wishes are already mentioned I think, but for the "Flexible content or page building" you could look at your competitor. ? Regards, Andreas
×
×
  • Create New...