Jump to content

PWaddict

Members
  • Posts

    997
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by PWaddict

  1. 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.
  2. 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.
  3. Can you show me a screenshot of the "ytp-pause-overlay"?
  4. I think it would be easier to find that great tip if the topic moved to the Tutorials section.
  5. Change the "YouTube: Show Related Videos at the End" to 0 value. It hides the related videos when you pause too.
  6. Then I think I'm gonna post it as an issue on GitHub since non-superusers shouldn't see the field names.
  7. Isn't possible with a hook?
  8. I know, that's why I'm asking how can I do it with a hook ?
  9. Check the following topic. You might be able to help to do it with a hook.
  10. Changing the Inputfield.php 1461 line with the following it displays the field label. How can I do it with a hook? $text .= $this->name ? " ($this->label)" : "";
  11. Page field value type: Multiple pages PageArray Input field type: AsmSelect I decided to output all content from the page field without using a selector. Thank you all for trying to help.
  12. Yep, it doesn't work.
  13. It doesn't work. I guess this is not possible. I'll have to use "sort=name" or something similar.
  14. Removing the selector from the loop it outputs the content on the correct manual sort order BUT I only need to output the content with the selector "category=1474". <?php foreach($page->my_page_field as $mpf) { ?> ... <?php } ?>
  15. Using the below code for outputting content from a page field it doesn't get the manual sort order from the backend. What am I doing wrong? <?php foreach($page->my_page_field("category=1474, sort=sort") as $mpf) { ?> ... <?php } ?>
  16. On 25 May the Data Retention will take effect on Google Analytics. If I understand correctly the module reads aggregated data and it will not affected by the Data Retention. Can someone please confirm it?
  17. Nevermind. I found the problem. I'm using the following hook: and forgot to add this fix:
  18. I'm trying to change the order of pages inside PageTable field with manual drag and drop but when I save the page the sort isn't saved.
  19. Currently we get the field's name on the error messages which is perfect for superusers but I would like to make them more user friendly for non-superusers by displaying the field's label instead of name. So this: Missing required value (news_text) Should be changed to this for non-superusers: Missing required value (Text)
  20. I uninstalled it cause I realized that I don't need it to achieve what I want but thanks for the info.
  21. It seems that I just forgot to use the foreach for it to work $related_page = $pages->find("template=template-2, mypagetable=$page"); if(count($related_page)) { foreach($related_page as $rp) { ?> <a href="<?= $rp->url ?>">Related Page</a> <?php } } ?>
  22. I'm trying to get the url from the selected page by using the following code on template-1 but I'm getting the url from the current page of template-1. $related_page = $pages->find("template=template-2, mypagetable=$page"); if(count($related_page)) { ?> <a href="<?= related_page->url ?>">Related Page</a> <?php } ?>
×
×
  • Create New...