-
Posts
991 -
Joined
-
Last visited
-
Days Won
3
Everything posted by PWaddict
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
Install this module. -
Is it possible to hook into message render function
PWaddict replied to Juergen's topic in General Support
Then I think I'm gonna post it as an issue on GitHub since non-superusers shouldn't see the field names. -
Is it possible to hook into message render function
PWaddict replied to Juergen's topic in General Support
Isn't possible with a hook? -
Is it possible to hook into message render function
PWaddict replied to Juergen's topic in General Support
Please check this topic: -
[SOLVED] How to display field's label on error messages?
PWaddict replied to PWaddict's topic in General Support
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)" : ""; -
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.
-
Yep, it doesn't work.
-
It doesn't work. I guess this is not possible. I'll have to use "sort=name" or something similar.
-
No.
-
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 } ?>
-
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 } ?>
-
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?
-
[SOLVED] Is manual drag and drop sort BROKEN for PageTable fields?
PWaddict replied to PWaddict's topic in General Support
Nevermind. I found the problem. I'm using the following hook: and forgot to add this fix: -
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)
-
I uninstalled it cause I realized that I don't need it to achieve what I want but thanks for the info.
-
[SOLVED] How to check if page is selected from another page?
PWaddict replied to PWaddict's topic in General Support
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 } } ?> -
[SOLVED] How to check if page is selected from another page?
PWaddict replied to PWaddict's topic in General Support
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 } ?> -
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
-
[SOLVED] Required only if with required field action issue
PWaddict replied to PWaddict's topic in General Support
It has been properly fixed. More info here. -
[SOLVED] Required only if with required field action issue
PWaddict replied to PWaddict's topic in General Support
I fixed it. The solution is posted in the GitHub issue. -
[SOLVED] Required only if with required field action issue
PWaddict replied to PWaddict's topic in General Support
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???