-
Posts
1,065 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Zeka
-
-
Hi.
I can't figurate out is it a bug or I miss something
$selector = '(template=catalog_category|product), (id=1430|1530|1443|1528|1442|1441|1440|1527|1529|1439|1438|1437|1436|1531|1523|1522|1435|1433|1434)'; $some_pages = $pages->find($selector); $some_pages->has('id=1417') // true
Then on the page with ID 1417
$page->matches($selector) // false
As you can see that the page with ID 1417 is found by the selector, but do not match it.
-
-
2
-
-
@usualCommission Have you enabled "Allow page numbers" in template settings?
-
1
-
-
Hi.
In different modules, I have seen these two ways how default data is set
static public function getDefaultData() { return array( "test" => "test" ); } // first way public function __construct() { foreach (self::getDefaultData() as $key => $value) { $this->$key = $value; } } // second way public function __construct() { foreach (self::getDefaultData() as $key => $value) { $this->set($key, value); } }
Could somebody please explain what is the difference between them?
-
x-power-by-header probably is the most accurate method to detect PW. For WP you can just search by image path 'wp-content/uploads'
https://publicwww.com/websites/wp-content%2Fuploads/ - 1000000 of results and I think that it is maximum for publicwww.
-
-
Actually, I don't think that your IP got changed. This type of error is shown when PW cannot verify session for some reason and 0.0.0.0 goes from this line
-
2
-
-
-
In some of the PW modules I have seen nice built-in docs, but unfortunately, I can't remember in which one.
As far as I know, 'InputfieldMarkup' is often used for that, maybe there are some other approaches?
-
@kongondo Happy to hear that a lot of work has been done already. How do you see real terms of initial release? 3-5 month?
-
1
-
-
-
-
@Robin S Wow, so fast! Thanks.
-
2
-
-
As far as I see the module doesn't update connected fields when pages with "connected" fields are cloned via ProcessPageClone. Do you think is it possible to handle this scenario?
P.S. Obviously, in this scenario "owner" operator is more suitable.
-
2
-
-
-
@quickjeff You can exclude some unneeded parents by using selectors like
$breadcrumbs = page()->parents('template=catalog_category|home')->append(page());
@Robin S Wow, thanks for the hint. Didn't know about it.
-
1
-
-
By default in CKeditor: Enter = p, Ctrl + Enter = br.
Have you actually tried something like https://ckeditor.com/old/forums/Support/trying-use-br-instead-p ?
-
-
function visitorgroup($which = null) { $ip = wire('session')->getIP(); $int = ip2long($ip); $group = ($int % 2) ? 'a' : 'b'; if(is_null($which)) return $group; return $group == $which; } if($page->id == 1 && $page->page2use4homepage) { if(visitorgroup('a')): $page = $page->page2use4homepageoption1; elseif: $page = $page->page2use4homepageoption2;
-
1
-
-
Measure clicks to "Call to action" buttons you can by using Google Analytics Events.
There an example of simple A\B testing plugin from Kirby's forum https://getkirby.com/docs/cookbook/a-b-testing. It would be easy to rewrite it for Processwire.
If you want to do some kind of AB testing than you should also take care of returned visitors as they should see the same version of the page that they saw on the first visit.
-
4
-
-
I'm not sure that you can use this type of construction for sorting.
Take a look at Ryan's comment https://github.com/processwire/processwire-issues/issues/263#issuecomment-304285290
-
2
-
-
@Krlos If I'm not mistaken to get pagefileSecure working you should restrict guest access to the template where your PDFs are stored.
-
1
-
-
@Krlos Did you block access by guest role for that template?
-
@BitPoet Before posting my answer I have made tests with and without using $sanitizer->selectorValue. In this exact case, the page wasn't found after sanitizing of the string "谢师宴 11am-1pm, Test服务奖 service award".
$page->matches and $pages->find inconsistency
in General Support
Posted
@LostKobrakai It's not the first time when I met that something works with memory and not DB. Maybe the dumb question, but is there some way to determine it? (I guess the answer will be like - read source code ? ).