Jump to content

AndZyk

Members
  • Posts

    712
  • Joined

  • Days Won

    10

Everything posted by AndZyk

  1. Hello @Hajosch, you could also do something like this: <!-- Query of the authors --> <?php if (count($page->authors)) { echo "<u>AUTOR/EN</u>:&nbsp"; foreach($page->authors as $authors) { echo "<a href='{$authors->url}'>{$authors->title}</a>"; if ($authors === $page->authors->last) { echo "."; } else { echo "; "; } } } ?> Regards, Andreas
  2. Thank you @adrian for confirming. I have opened a issue. ? https://github.com/processwire/processwire-issues/issues/642
  3. First of all thank you @ryan for this great addition. I am a heavy user of the page search and use it more often than the page tree. ? I am not sure if this is a bug, but I think the new page search breaks the autocompletion of users: For example if I type in a username in the page search and select the suggested user, I will be redirected to the 404 page in the front-end with following url: http://example.com/processwire/access/users/username/ Instead the url should be something like this I think: http://example.com/processwire/access/users/edit/?id=123 Can anyone confirm this or is it maybe something on my side? I have noticed this on two different installations of PW 3.0.108. Regards, Andreas
  4. Just a guess, because I have no virtual machine available, but maybe it has to do with the div.uk-inline before the actual image. This div.uk-inline and the div without classes before seem to have no use or am I missing something? I think you could remove them and see if this helps. ? Edit: It seems to be an issue with flex box.
  5. Hello @justb3a, first of thank you for this and your other modules. ? I wanted to ask if it is possible for subscribers to let them change their preferences after the initial subscription? In my use-case I want to build a website, where subscribers can choose different newsletter channels via checkboxes (page field) on the initial subscription. This part is working fine, but after the subscription it is only possible for subscribers to change their preferences, if they unsubscribe and then re-subscribe. Could I provide a link with the ID or token and maybe a timestamp in the subscription email to a custom front-end form, where they can change and save their settings? It should be a verified and save address, so that no other user could guess the url and change settings of other users. I would be happy about some inspiration. ? Regards, Andreas
  6. Hello @wbmnfktr, maybe I will give Structured Data another chance. I haven't tried anymore than I wrote in my initial post. You seem to be really experienced with Structured Data. If you have some examples or code snippets you would like to share, I think many people would appreciate it. ? Regards, Andreas
  7. Hello @MarcoPLY, I am glad this post helped you. JSON-LD is the recommended format for structured data. JSON-LD is JSON for Linked Data. Adding structured data with JSON-LD inside <body> is still valid, but usually it is placed inside <head> for better separation. Most of search engine specific code goes inside <head>. You could try the jsonld.js preprocessor, but I think it would be easier just to use PHP, since that is the easiest way to get data from ProcessWire. As far as I know is Google Tag Manager a different tool. Google Tag Manager is great for example online shops, where you want to track the customer experience. It seems to be an analytics tool for internal analytics, but has probably no effect on search results. But I have never used Google tag manager, just watched a few videos, so I could be wrong. Hello @dragan, Breadrcumbs has worked for me, although it is not very useful on websites with only one parent-page. ? Searchbox, Organization and Article hasn't worked for me. ? I don't think they will neglect structured data, but the support seems to be lacking. On Google I/O 2017 for example they announced upgrades to the Structured Data Testing Tool, but the upgrade doesn't seem to be available yet. In my opinion I am not that convinced of structured data compared to the time I have wrote this post. The extra effort is not that time consuming, but the results are a little bit disappointing. So I can totally understand if you don't want to bother with it. ? Regards, Andreas
  8. In our use case we needed to import thousands of CSV entries automatically per cronjob. So we ended up with a little shell script using the CSV package by the League of Extraordinary Packages and custom logic to import the CSV entries as pages. This wasn't that difficult thanks to the Composer integration of ProcessWire. Regards, Andreas
  9. That one bothers me also always and would be such a easy thing to solve. Disabling source maps in the developer tools is also no option for me, because I use source maps in my projects.
  10. Hello, this module is great and I was wondering: Is it possible to use this module inside a template via API functions? Is it possible to set a cron job to automate the import? Or would you recommend for this job to install an package via composer and to write your own logic? I am looking forward for your suggestions. Regards, Andreas
  11. Flickity is my favorite slider at the moment, but if you use a framework like UIkit, there usually is slideshow component.
  12. You are a mind reader. Now the error is gone, thank you.
  13. Maybe it has been asked before, but when I have TracyDebugger disabled I get this error in the console of my developer tools: Could this be avoided by a try-catch block? It is not too important, but it would be great to not have this error. And I cannot mention enough how great your module is. It helped me a lot of times.
  14. As mentioned in the documentation of Slick, you need to add your scripts (jQuery and Slick) at the end of your closing body tag: Right now you add your scripts before. Usually it shouldn't matter, but it seems to be in this case.
  15. Hello @suntrop, have you considered using the fieldtype Map Marker for storing your coordinates? Maybe you already have your reasons why you choose the ProField Textareas. I am just curious. This fieldtype would be a better fit for your need. Also in case you have an active license, you could ask in the dedicated ProFields Textareas thread this question. As far as I know, language packs don't change any output on the front-end. Regards, Andreas
  16. Hello @ROLAND_JUNO As mentioned, just put your Google Analytics Tracking-Code before the closing </head> inside your template files. Depending on your template strategy it could be either in an include or a _main.php, so you don't have to put it in every template file. Regards, Andreas
  17. Just my opinion, but I don't quite understand whats the benefit to get rid of one dependency to immediately replace it with another dependency. I have no experience with VueJS or Angular yet, but as far as I can see, you would be completely dependent on one of those frameworks. In this case I'm maybe a little bit old school, but I like jQuery and also don't understand, why everybody wants to get rid of it as fast as possible. Also the comparison of ProcessWires API with jQuery was on of the first things, that got me interested. Luckily it is not our decision to decide.
  18. Hello @mike62, I haven't used Slick yet, but on the website it says: You are using jQuery 1.2.6. So maybe you should try an newer version of jQuery, because 1.2.6 is really old. Regards, Andreas
  19. Of course you are right. I should have looked closer at your code.
  20. Thanks @abdus and @adrian, I was able to grab the clear password with the Password:setPass hook and saved it into a session variable to pass it between my module functions. Of course I clear the session variable afterwards.
  21. Hello, can somebody tell me, if it is possible to get the clear password of an InputfieldPassword inside a module, before it is encrypted? I have made a custom module which sets the password of an Auth0User after the hook publishReady with a random generated password. When I try to get a clear password from a InputfieldPassword in this hook, it is of course already encrypted (which is of course good). But is there a hook before the encryption, so I could get it one time to send it to Auth0? If there is not such thing, could be another possibility to add a jQuery script to get the value directly from the DOM and save it somewhere temporarily? I know this might be an unusual question, but I would appreciate any feedback. Regards, Andreas
  22. That is the expected behavior of the session API variable. It would be best not to use the user variable, because it is a reserved variable. Better would be to just name it something like for example $name. If you get the post value of the input field by the same name after submitting the form, the value should only be outputted for only one page load.
  23. Sorry if I may disappoint you, but by syncing with Sequel Pro I just meant: Export the local database and import it on the remote server. Nothing intelligent and of course it doesn't work on live sites where users made changes in the meantime. In that case I think the core import/export module would be the best option, but I haven't used it really yet.
  24. I also would recommend to develop locally. I would go crazy if I had to wait a few seconds after every change. My deploying workflow is currently: Track all files inside site/templates with Git and push/pull them on the remote server via SSH. Sync all files inside site/modules and site/assets/files via Sublime SFTP or Transmit. Sync the database with Sequel Pro. But maybe some time I will try something fancy like a automated shell script.
  25. @Peter Knight Personally I prefer CodeKit, but I would recommend you to use npm to compile the files of UIkit used inside the AdminThemeUIkit as described in the README. This is the recommended way to compile UIkit. As @fbg13 mentioned I also added my stylings in the pw.less. It is really easy to override the variables of UIkit to make it look unique.
×
×
  • Create New...