Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


AndZyk last won the day on February 13 2019

AndZyk had the most liked content!

Community Reputation

662 Excellent

About AndZyk

  • Rank
    Sr. Member
  • Birthday 09/12/1987

Profile Information

  • Gender
  • Location
    Furtwangen, Germany

Recent Profile Visitors

3,461 profile views
  1. Hello all, sorry for getting off-topic, but I am curious: I have read about those new regulations but my understanding was, that this was just about a special case (a gambling website), so that nothing would change for normal websites. But now everybody seems to jump on the train just to be safe, even though it is not necessary. Could somebody please explain to me, why you have to add this new cookie banner to your website? Are you saving personal informations of users in cookies? Or could somebody please point me to a reliable source, that explains or states that you have to add this new cookie banner? I only have cookies from ProcessWire and Google Analytics (with anonymized IPs). I have never read a clear statement, that I have to add a cookie banner and never has somebody complaint that I don't have a banner. In my opinion, everybody adds those banners because they are not sure and jump on the bandwagon. But I am no lawyer, so maybe I am completely wrong. But those new banners are really worse. I saw some that covered the whole website before you could get to the content. Its like we are back in the 90s, where you have a start page for the homepage. πŸ˜€ Thank god there a browser extensions like I don't care about cookies. Regards, Andreas
  2. AndZyk

    Aaron Copland

    Sorry for being off-topic, but I have noticed this on the ProcessWire Sites directory too, but not on my UIkit based websites. I donβ€˜t know what causes this, but the Chrome task manager shows a high CPU percentage although nothing happens. @Macrura Great website. πŸ˜€
  3. 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
  4. 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. πŸ˜‰
  5. 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.
  6. 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. πŸ˜‰
  7. 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. πŸ˜€
  8. 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. πŸ˜€
  9. 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. πŸ˜€
  10. 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
  11. 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
  12. 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
  13. 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.
  14. 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. πŸ˜€
  15. Would be really great, if this module could be used via Ajax. πŸ˜‰
  • Create New...