-
Posts
999 -
Joined
-
Last visited
-
Days Won
3
Everything posted by PWaddict
-
I've just upgrade it to the new version. I selected my thumbnail predefined crop and then I cropped a new area of the thumbnail but NONE of the variations removed. What I'm doing wrong?
-
Hello! I'm using the following code to ajaxify my website with HTML5 History. It works great with back/forward broswer's buttons but how can I make it load ONLY new pages with scrollTop(0); ? If the back/forward broswer's buttons pressed it should use the saved scroll position as it's currently happens. $(function(){ var replacePage = function(url) { $.ajax({ url: url, type: 'get', dataType: 'html', success: function(data){ var dom = $(data); var title = dom.filter('title').text(); var html = dom.filter('.ajax-container').html(); $('title').text(title); $('.ajax-container').html(html); } }); } $(document).on('click', 'a:not(.external)', function(e){ history.pushState(null, null, this.href); replacePage(this.href); e.preventDefault(); }); $(window).bind('popstate', function(){ replacePage(location.pathname); }); });
-
Your images field name is images not myphoto. That's the problem.
-
Maybe you're accidentally hiding the image with CSS?
-
In a website I'm building where I have CroppableImage3 field (Maximum files allowed = 1 and Formatted value = Automatic) inside a repeater here is how I'm displaying the image (thumbnail). <?php foreach($page->team_members_repeater as $team_member) { $photo = $team_member->team_member_photo->getCrop("thumbnail"); ?> <img width="<?= $photo->width ?>" height="<?= $photo->height ?>" src="<?= $photo->url . "?v=" . $photo->mtime ?>" alt="<?= $team_member->team_member_name ?>"> <?php } ?>
-
Sorry for my mistake. I'm sure with your example op will understand much better how to do it.
-
@ryanC Here is how you can do that: <?php foreach($page->your_repeater_field as $image) { echo "<img src='$image->your_image_field->url'>"; } ?>
-
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.
- 101 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.