Jump to content

PWaddict

Members
  • Posts

    991
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by PWaddict

  1. Then I think I'm gonna post it as an issue on GitHub since non-superusers shouldn't see the field names.
  2. I know, that's why I'm asking how can I do it with a hook ?
  3. Check the following topic. You might be able to help to do it with a hook.
  4. 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)" : "";
  5. 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.
  6. It doesn't work. I guess this is not possible. I'll have to use "sort=name" or something similar.
  7. 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 } ?>
  8. 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 } ?>
  9. 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?
  10. Nevermind. I found the problem. I'm using the following hook: and forgot to add this fix:
  11. 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.
  12. 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)
  13. I uninstalled it cause I realized that I don't need it to achieve what I want but thanks for the info.
  14. 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 } } ?>
  15. 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 } ?>
  16. How to check if the current page from template-1 has been selected (using page field) from another page from template-2?
  17. When I try to save the page that includes one of the pair fields I'm getting the following error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\mysite\wire\core\Wire.php on line 1118Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0 Then I've updated my memory_limit to 512M and once again I'm getting this error: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\mysite\wire\core\Wire.php on line 1118Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
  18. I fixed it. The solution is posted in the GitHub issue.
  19. Yes the rule is: mycheckbox=1 Have you selected the "Unpublish the page" on Required field action under Advanced on the template? You save the page over and over with UNCHECKED checkbox and the page doesn't unpublished???
×
×
  • Create New...