Jump to content

bernhard

Members
  • Posts

    4,008
  • Joined

  • Last visited

  • Days Won

    133

bernhard last won the day on October 14

bernhard had the most liked content!

Contact Methods

  • Website URL
    https://www.baumrock.com

Profile Information

  • Gender
    Male
  • Location
    Vienna, Austria
  • Interests
    Sports

Recent Profile Visitors

16,837 profile views

bernhard's Achievements

Hero Member

Hero Member (6/6)

5.5k

Reputation

12

Community Answers

  1. I can just say that I'm still having this issue as well...
  2. @dotnetic does your module still work? Or do we have any better options in late 2021? πŸ™‚
  3. And not to forget URL hooks: https://processwire.com/blog/posts/pw-3.0.173/#making-short-urls-of-all-blog-posts
  4. Ah, I think I understand now! You want to hide the input for page title and name and want to auto-generate those? Should the user be able to edit them later on page edit?
  5. Can you please describe the exact use case? What is the user expected to do? What page title or name should be generated when and why?
  6. What is your plan to make the page name unique? Do you want to add the page id or such?
  7. Mine was also πŸ˜„ This helped me and may also help others: https://youtu.be/EeCNlB7v08I?t=161
  8. I've never done that myself but you could also do a get request to that page automatically on save: <?php $wire->addHookAfter("Pages::saved(template=yourtemplate)", function($event) { $page = $event->arguments(0); (new WireHttp())->get($page->httpUrl); }); This might slow down saving the page for the client, but it would create all image variations for website visitors and you'd not need to define all the image variations in the hook or keep your template and the hook in sync... Happy to hear how that worked!
  9. $rm = $modules->get('RockMigrations'); $rm->createField('demo_page', 'page', [ ... ]) $rm->createField('demo_repeater', 'repeater', [ 'repeaterFields' => [ 'demo_page', ], ]); Something like that?
  10. No hurry as long as the next update will have this change in place so nothing breaks on my end πŸ™‚
  11. @David Karich could you please modify the js script a little so that we can set the page id of the tracked page manually as function parameter? The example of the docs can then be simplified a lot from this: $(function(){ if($('a.news_tag').length > 0) { $('a.news_tag').each(function(){ var tPID = $(this).data("pid"); if(tPID) { $(this).on("click", function(){ $.post(location.pathname.replace(/\/?$/, '/') + 'phcv1', {pid: tPID}); }); } }); } }); To something like that (untested): $(document).on('click', 'a[data-pid]', function(e) { let pid = $(e.target).data('pid'); if(pid) PHC.track(pid); }); PS: The reason why I need this is I'm using barba.js for page transitions so I need to send page tracking manually after each transition and the <body> tag is not updated from one page to the other meaning that automatic tracking via body[data-phc] does not work...
  12. ok then $page->getUnformatted('file_field')->addFromUrl(...) would also work πŸ™‚
  13. Wouldn't it be better to do the $page->of(...) inside the addFromUrl method?
  14. From a conversation with ryan I think to remember that /site/assets is supposed to be writable while /site/templates is not. https://processwire.com/docs/start/structure/files/ does not state the latter one but it confirms my first point.
  15. My opinion: Great work. I was impressed πŸ™‚ Only thing was after I clicked skip intro I got a strange sound and was not able to turn that off. No mute button or the like... a page refresh made the annoying sound go away.
Γ—
Γ—
  • Create New...