-
Posts
470 -
Joined
-
Last visited
-
Days Won
1
Posts posted by Gideon So
-
-
I have a repeater matrix field in which there is a repeater field that container a textarea field. How can I search text in the textarea??
I tried $pages->find("repeater_matrix_field.repaeter_field.textarea=%$q"), but return no results.
Any idea how to do it??
Gideon
-
LimWub,
Your code only shows the first 3.
Try this:
$Events = $pages->get('/Events/')->Events_repeat->find('limit=3,start=-3');
Gideon
-
Hi,
Sounds very interesting and useful to many.
Gideon
- 1
-
11 hours ago, adrian said:
@flod and @Gideon So - I just committed a new version which automatically adds the Repeaters parent to the list of branch exclusions. I would appreciate it if you could please check if this takes care of image uploads in repeaters without having to manually add it in the config settings.
Thanks!
Hi Adrian,
Confirmed this version fixed the problem.
Gideon
- 3
-
On 2017/1/11 at 8:51 PM, flod said:
I have the same problem with repeater also. The solution is exclude the repeater page under admin in the module settings.
Gideon
- 1
-
@Speed You are welcome. Even better to change the document root in your web server setting.
- 3
-
it is better to do it the other way. Upload the new site to a sub folder. After you test it, create a redirect in the original folder to redirect all the request to the new site.
- 1
-
The .htaccess file come with ProcessWire should work out of the box.
The only reason I can think of is that the web server doesn't allow you to override it's default setting values.
Do you have access right to the web server config??
-
I see. Thanks.
Gideon
-
Hi,
I found that it is not possible to insert a link with underscore in the sub-domain part of a url, for example, my_sundomain.mydomain.com.
Once save the page the link becomes "/".
Is it intentional or a bug??
Gideon
-
Welcome @handzain. This is a very friendly and helpful community. I believe you will get much help here like I did.
Gideon
- 2
-
- 2
-
Hi,
When upload a file with non ascii file name, all the characters get stripped. Is there any way to retain non ascii like Asian characters in file name??
Gideon
-
Hi,
As far as I know, no '+' sign in selector.
Gideon
-
Hi,
Can you make a screen shot to give us a little more info??
Gideon
-
Hi,
I think it should be $page->nameofthefield->title and $page->nameofthefield->value
Gideon
-
Oooppps. Too many errors today. Didn't notice it until now. Thanks for reminding me.
Edited.
Gideon
-
Hi BitPoet,
I did think the same but I have no access to the client's database.
I come with another way, make a custom login form to one of the page and login from the page. Then go back to the admin page.
Thanks for your quick reply and help anyway.
Gideon
-
Hi,
I accidentally set the admin template to show 404 page when user have no access right. Then I cannot access the login page anymore.
Anyway I can roll back the setting??
Gideon
-
Hi LostKobrakai,
It works as expected. Hope this thread help someone in the future.
Big thanks to you two.
Gideon
-
On 7/10/2016 at 0:34 PM, BitPoet said:
Is imagefield set to return a single image? This looks like you're accessing the data from a Pagefiles object. In that, case, this should work:
echo $site->pages->get(pageid)->imagefield->first()->httpUrl;
Hi Bitpoet,
Eventually you are right. In multi-instance environment, you need to call the first object even the limit of the image filed is set to 1.
Maybe this is a bug in multi-instance support.
Gideon
- 1
-
Hi,
Yes. You can see it $site = new ProcessWire('/path/to/the/site/','url.of.the.site');
I tried to set the field both automatic and one.
By the way $site->pages->get(pageid)->httpUrl works.
Gideon
-
Hi BitPoet,
Yes. The limit to this field is 1. So I think my syntax is right.
Gideon
-
Hi,
I tried multi-instance and found that I cannot load image from other installation with $image->httpUrl.
<?php $site = new ProcessWire('/path/to/the/site/','url.of.the.site'); echo $site->pages->get(pageid)->imagefield->httpUrl; ?>
This return nothing.
<?php $site = new ProcessWire('/path/to/the/site/','url.of.the.site'); echo $site->pages->get(pageid)->imagefield->url; ?>
This only return the page path like site/assets/files/pageid/
I am using PW 3.0.33
Any ideas??
Gideon
Search repeater in repeater matrix
in General Support
Posted
Correct a typo here doesn't help much. ??
Gideon