-
Posts
991 -
Joined
-
Last visited
-
Days Won
3
Everything posted by PWaddict
-
The suggested costs from that website is probably for another earth and definitely not the one we are living in!
-
You're right. I replaced "published" with "added" and it's even better cause now the unpublished ones are getting sorted properly too. Thank you. What AOS means?
-
I just test it and it works great. I replaced "saved" with "published" otherwise everytime my client will edit the pages sorting will applied. So for PW 3.0.46+ no need this module.
-
I'm gonna test this soon. How can I apply it only to 1 or 2 specific templates?
-
So I can't use this module on a production site? What if I unpublish the children?
-
Examples of large sites, particularly government, desperately needed
PWaddict replied to Margie's topic in Getting Started
Even a bank is using ProcessWire Checkout the International Bank of Azerbaijan. -
@horst If the CroppableImage3 field is inside a repeater the hover on predefined Crops isn't working.
-
To get the correct locales for YOUR server (each server might use different ones) just use the below code. <pre><?php passthru("locale -a"); ?></pre> It will show you a list with all locales installed on your server.
-
Yes the repeater items (shows_date) have the following dates: 3 Aug 2017 9 Aug 2017 4 Sep 2017 15 Sep 2017 So with this selector: shows_date>=today it should display all the dates except the first one (3 Aug 2017) but nothing gets displayed. It's like that the today selector isn't working on repeaters EDIT: I replaced the "today" selector with today's hardcoded unix timestamp and it worked So here is the solution: $today = strtotime("today"); $dates = $page->shows_dates_repeater->find("shows_date>=$today, sort=shows_date");
-
@Zeka I followed your example but it doesn't work. I want to get all the upcoming dates from the current's page repeater: <?php if(count($page->shows_dates_repeater)) { $dates = $page->shows_dates_repeater->find("shows_date>=today, sort=shows_date"); foreach($dates as $date) { ?> <?= $date->getFormatted("shows_date") ?> <?php } } ?> I get nothing with the above code, not even an error. If I change the shows_date field operator to < then I get all the dates (past & upcoming).
-
You can use jquery to remove the text.
-
@szabesz I'm using a page reference field "countries.title"on name format for children without problem. What is your page field value type? I have it on "Single page Page or boolean false when none selected". Have you tried with ONLY set_part_image.title on the name format to see if it works? Make sure that you're using the template's Name format for children and NOT the Automatic Page Name Format of a Page Table.
- 100 replies
-
- 3
-
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
I did that and it auto replace the slashes properly but at the same time it erased my translations strings. But that was already happening before editing the public function saveTextdomain().
-
Same problem.
-
You should load your css file from within <head> cause currently you get quickly a version of the pages without css before the css is loaded.
-
How to echo the lowest value from a Page Table?
PWaddict replied to PWaddict's topic in General Support
Ok got it. I had to access children of children. The $release is from another foreach loop where I'm getting the page's children and with the below code I'm getting the children of children with only one and lowest value from a float field. <?php foreach($release->children("limit=1, sort=pad_price") as $p) { ?> <?= $cart->renderPriceAndCurrency($p->pad_price) ?> <?php } ?> -
Nice! Do you have to change your module version from 1.2.1 to 1.2.2 to appear on ProcessWire Upgrades?
-
@Wanze Just sent you a pull request. Thank you.
-
How to echo only one value (the lowest one) of a float field from a Page Table?
-
I've tested the new 3.0.68 version and the problem still exists. I have to manually replace the slashes.
-
You're right. Both parts of the problem are caused by the core. Can you please forward it to @ryan so maybe he can fix it on the next dev release?
-
403 - forbidden message when filling url field
PWaddict replied to fabjeck's topic in General Support
I had the same problem. Everything was fine on XAMPP but not on the live server. The reason is that on the server there is an apache module installed called mod_security. Add the following code on top of your .htaccess file and the problem will be fixed. <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> -
How to remove the seconds from %X time format?
PWaddict replied to PWaddict's topic in Multi-Language Support
The %X format doesn't work very well for some locales in a combination with %p format but there is a far better and easier way to get the correct time format without the seconds on each locale. With the following method you can control all of the time outputs from all your datetime fields from just 1 field under each language! Create a text field and name it: time_format. Add the time_format field on the system's language template (Setup > Templates > Filters > Show system templates). Go to each of your languages under Setup > Languages and add their strftime format on the time_format field. For example if the language locale is en_US.utf8 then the time format should be %l:%M %P if the locale is fi_FI.utf8 the time format should be %H.%M and so on. Add the following code to your _init.php: $time_format = $user->language->time_format; and add this code on your templates you want to output the time from your datetime field: <?= strftime($time_format, $page->getUnformatted("your_datetime_field")) ?> DONE -
How to remove the seconds from %X time format?
PWaddict replied to PWaddict's topic in Multi-Language Support
Unfortunately this code isn't working for all locales cause for example in Finland they use dots (.) instead of colons (:). I will check all the locales and adjust the code soon.