AndZyk
Members-
Posts
678 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
Of course I believe you. Thank you for this method, I will try it out tomorrow. ? Thank you for mentioning this module. I haven't heard about it until now, but this could also be a solution. ? Yes, this would be a great enhancement for the page reference fields. I hope @ryan will consider adding this into the core. Thank you all for your help. Regards, Andreas
-
Here I made a little example with a simple CSS transition: https://jsfiddle.net/x8gwrbys/ I have Autoprefixer in CodeKit for all those prefixes, so I don't have to write any prefix again. I can really recommend it. But for example transform is now a few years old and well supported, so you don't have to write prefixes for transform anymore. JavaScript for animating is not bad. But CSS animations have in general a better performance. For small animations there is not much of a difference, but on heavy animations you can really slow down a computer with JavaScript animations in my experience. ?
-
Currently I am using has() and a selector on the page reference field readByUsers: if (!$post->readByUsers->has(user())) { // Do something } if (count($child->find("template=post, readByUsers!={$user}")) { // Do something } Probably that is not do difficult to write as SQL query, but I have not much experience with writing SQL. ? I would be happy about an example. Thank you for the hint. Do the pages get loaded in the admin even if the field is hidden completely (with the field setting) in the edit-page? In that case, this could be an issue.
-
Ok, so in this case the jQuery slideToggle function would be easier, because if you want to animate the height of a div with CSS transitions, you have to know the height first: https://jsfiddle.net/qc3drkuz/ Rotating something with a CSS transition on the other hand is easy. However, I just wanted to show, that you can add custom animations to the toggle component. But you could also do this via JavaScript. I prefer to animate with CSS. ?
-
Ah ok, I thought you didn't knew, that you could add animations to the toggle component. If you wan't another animation other than the animations of the animation component, you could add different classes and animate them with css. ? https://getuikit.com/docs/toggle#animations Sorry, it was not my intention to turn this thread into another discussion about frameworks. I just wanted to share my opinion, why I like to use them. But of course this is just my opinion and I also like to start with a blank page. ?
-
Thank you for this example. That would be of course the most performant solution. For now I will stick with a page reference field, because it's easier for me to handle on the API side. But if performance will ever be an issue, I will keep this solution in mind. ? This will be most likely no issue, because I think this field will be hidden in the edit-mode for data protection. Thats true, I have to try out building own data tables some time. Till now I didn't have a need for this, because its so easy to build complex data models with ProcessWire. ?
-
Isn't that basically for whats the toggle of UIkit component is for? ? Understanding the basics is important. But if you have to build large websites is a solid foundation really handy, so you can focus more on the content than on writing basic components. ?
-
Hello @wbmnfktr, thank you for your answer. Good to know, that the page reference field can handle many page references without a performance issue. The most amount I had in one page reference field was about 100, but only temporarily. So I don't if there is a problematic amount. But you are right, that it would be better to save the users to the post directly. Because there are probably around one hundred users, but over time the posts could grow in the thousands. So one thousand references in one user page reference field is worse than one hundred references in one post reference field I think. ? Regards, Andreas
-
Looks interesting, but as far as I can see you have to subscribe to their plan first with PayPal or credit card just to try it out for free. That is a dealbreaker for me, to subscribe for a trial. Or is there a way to try it out without giving them all my informations? Regards, Andreas
-
Hello, I am currently building a intranet with hundreds of posts. One planned feature is, that each logged-in user can see what post he has already read. So I have added a page reference field „readPosts“ to the user template and save each post as page to this page reference field when visiting the post. This could lead to hundreds of pages in this single page reference field. Because of this I was wondering, if anybody has experience in how good the page reference field can scale? Can it handle hundreds of page references or could there be a downside to the performance? As far as I can see, in the database only the user id, page id and sort number would be saved. So theoretically there would be no performance issue. The alternativ would be to save the user directly in the post as page reference. Would that be the better solution? ? Regards, Andreas
-
I leave that to the browsers. Most mobile browsers do convert automatically a phone number to a phone link. So only if you want to offer phone links to desktop browsers, you need to insert the link manually. Edit: Ok, not most browsers. Safari does convert phone numbers, but others don't, it seems. So a link is safer.
-
I use the default name and make a substr with only the first two characters. Works for "de" and "en", but probably not for every language. ?
-
Would be really great, if this module could be used via Ajax. ?
-
Guide how to install ProcessWire on German hoster Uberspace: https://lab.uberspace.de/guide_processwire.html
-
I would like to know this too. For example in my case I would like to sort pages by the number of their references. ? It would be great, if you could to that or has somebody please a hint for me how to do this otherwise? Regards, Andreas
-
That trailer though is pretty epic. ?
-
Ok, it could also be my local MAMP server setup. Because I have recently installed Imagick with Pecl and use this instead the build-in Imagick of MAMP. But switching didn't change anything and I think I have experienced this issue on our webhoster as well. Let's wait if someone else experienced this. ?
-
Thank you for confirming. In my case the original file was exported with Sketch unoptimized, but in a UHD resolution.
-
Hello, since the upgrade to PW 3.0.132, I have noticed some artefacts in the generated images: Before the upgrade: I have the ImageSizerEngineIMagick installed and use PHP 7.2.14 with Imagick 3.4.4. I think this issue is specific to Imagick. If I uninstall ImageSizerEngineIMagick I don't have artefacts. Has anyone else noticed such issue or is it maybe just my local installation? Regards, Andreas
-
With some help and the instructions I have now managed to install a newer version of Imagick for MAMP and now the WebP support is also working local for me fine. But is it possible to detect on the server side if WebP is supported so it doesn't try to generate WebP variations on every page load on environments with no WebP support? It think this would be a good addition. ?
-
I have tried, but don't have pecl installed on my macOS High Sierra and don't know how to install it. I have tried to install pear, but have not managed yet to get it running. I have contacted the MAMP support and they will consider enabling WebP in a future update. ?
-
Hello @horst, first of all thank you for all your efforts to bring WebP support to ProcessWire. ? I have installed ProcessWire 3.0.132 and implemented this code to almost every image: <?php $image = $image->size(1600, 900); ?> <picture> <source srcset="<?=$image->webp->url?>" type="image/webp"> <img src="<?=$image->url?>" width="<?=$image->width?>" height="<?=$image->height?>" alt="<?=$image->description?>"> </picture> Of course with more variations. This is just an example code. My issue is, that my local MAMP server doesn't support WebP and my webhosting does support it. On the webhoster the WebP variations get generated and everything is fine. But on my local MAMP server, ProcessWire can't generate the WebP variations and tries to generate them on every page load, which leads to a server timeout. I saw a condition $image->hasWebp in your early drafts. Can I use this for environments that don't support or should ProcessWire better not try to generate WebP variations at all, if there is no WebP support? ? Regards, Andreas
-
Just wanted to add, that ProDrafts also seems to re-publish previous unpublished repeater items again after saving. Maybe someone can confirm this and maybe I will renew my license some time and post these issues into the dedicated support board. Until then, this is unfortunately a deal-breaker for me and I will disable ProDrafts again. Regards, Andreas
-
UIKIT3 slider autoheight using repeater fields
AndZyk replied to buster808's topic in Themes and Profiles
Hello @buster808, you seem to have empty links inside your slider without any purpose. Maybe you should remove them. ? In my opinion it is good, that the slider doesn't have a adaptive height. Because then the slider navigation and content flow would be disrupted on every slider change. You could always choose a different component for your quotes than a slider on mobile. Just create two components with the same content and hide/show them on different viewports with the visibility component. And don't worry about search engines, because this is not considered duplicate content as far as I know. Regards, Andreas -
I meant the browser based Visual Studio Online, mentioned at the end of the article, that will be coming in the future. Although it might be not be for you, that was the real news. ?
- 242 replies
-
- 1
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with: