PWaddict

Members
  • Content count

    469
  • Joined

  • Last visited

Community Reputation

228 Excellent

About PWaddict

  • Rank
    Sr. Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,578 profile views
  1. Is there any difference between these? Aren't they doing exactly the same thing? if($page->template == 'admin') return; if($page->template->name == 'admin') return;
  2. To easily add rel="next" and rel="prev" tags for pagination in head section insert the following hook to your site/ready.php: $wire->addHookAfter('Page::render', function(HookEvent $event) { $page = $event->object; if($page->template == 'admin') return; $tags = ''; $config = wire('config'); if($config->urls->httpNext) { $tags .= "<link rel='next' href='{$config->urls->httpNext}'>"; } if($config->urls->httpPrev) { $tags .= "<link rel='prev' href='{$config->urls->httpPrev}'>"; } $event->return = str_replace("</head>", $tags . "</head>", $event->return); });
  3. PWaddict

    Try to install a fresh copy of PW to the server you have the issue and during installation PW will let you know if your server is properly configured.
  4. PWaddict

    When you moved the files on the server did you also moved the folders cache, logs & sessions from site/assets/ ? If yes then I suggest you to DELETE those folders. This could be the problem.
  5. PWaddict

    The Inputfield Dependencies page doesn't say anything about the published status so I guess it isn't possible. You might be able to do what you want with a hook.
  6. PWaddict

    Using this it properly works: $today = time(); $news_posts = $page->children("limit=10, news_date<=$today");
  7. Using the following selector I should be able to get today's and past posts but I'm only getting the past ones. $news_posts = $page->children("limit=10, news_date<=today"); If I change the operator to >= then I get today's and upcoming posts but why the <= doesn't display today's posts too?
  8. On the PW 3.0.104 version we get the field labels instead of the field names on "Missing required value", "Restored previous value" and "Page unpublished because field is required" error messages. More info on GitHub.
  9. On the PW 3.0.104 version we get the field labels instead of the field names on "Missing required value", "Restored previous value" and "Page unpublished because field is required" error messages. More info on GitHub.
  10. I forgot to update the topic. On the PW 3.0.104 version we get the field labels instead of the field names on "Missing required value", "Restored previous value" and "Page unpublished because field is required" error messages. More info on GitHub.
  11. PWaddict

    It should be src="https://www.youtube-nocookie.com/embed/abc123?feature=oembed&rel=0" in order to work. It seems that TextformatterVideoEmbedOptions module can't add the options to your custom TextformatterVideoEmbed module. Install the original TextformatterVideoEmbed module and you'll see that the "rel" will be added properly.
  12. PWaddict

    As I said above you can easily hide them by changing the "YouTube: Show Related Videos at the End" to 0 value. This adds the "rel=0" to the embed url which hides both pause and end related videos. I've already tried and it's working fine.
  13. PWaddict

    Can you show me a screenshot of the "ytp-pause-overlay"?
  14. PWaddict

    I think it would be easier to find that great tip if the topic moved to the Tutorials section.
  15. PWaddict

    Change the "YouTube: Show Related Videos at the End" to 0 value. It hides the related videos when you pause too.