Barry

Members
  • Content Count

    64
  • Joined

  • Last visited

Community Reputation

18 Good

About Barry

  • Rank
    Full Member
  • Birthday 07/03/1982

Contact Methods

  • Website URL
    http://AbsoluteB.com

Profile Information

  • Gender
    Not Telling
  • Location
    Netherlands

Recent Profile Visitors

3,099 profile views
  1. Barry

    No, being logged in or not makes no difference. These two lines of code run at the same time. It just seems like a nested selector won't work unless the page is viewed in a browser. I've managed to get it working with the following: $contact = $pages->get("salesforce_id^=$sfid"); $location = $pages->get("template='pageLocation', contact=$contact");
  2. Barry

    sorry, my original post may not be clear: $contact = $pages->get("salesforce_id^=$sfid"); $location = $pages->get("template='pageLocation', contact=[salesforce_id^='$sfid']"); the top line $contact returns a processwire ID whether the URL is called by salesforce or by my browser. $location does not return anything when salesforce calls it but returns a processwire ID when I call the URL in my browser.
  3. Barry

    Okay, so my code doesn't seem to like the following when not being loaded in the browser: contact=[salesforce_id^=$sfid]
  4. I have a page with a template that is purely intended for carrying out php tasks. This page/url is called when certain objects in SalesForce are saved. The URL is called with a few GET variables. To make sure that the URL with the GET variables is called, I write them to a log, and this works fine, except the php and ProcessWire code I've written doesn't execute. Only once I visit the exact same URL that was written to the log in my browser, then the php and ProcessWire code executes perfectly, no errors. I can't see any reason for this, and I'm not sure what to search for in order to sort this out. Can anyone give any ideas?
  5. Barry

    Is anyone using this module in combination with SendGrid? I had the module working til a few weeks ago and now I get a time out error that I can't connect to mail.sendgrid.net. Not sure what the exact settings need to be as Sendgrid isn't too clear on this as far as I can find.
  6. I edited this code a little and it worked perfectly! Thanks <?php namespace ProcessWire; $empties = $pages->findMany("template=record, textField=''"); $fulls = $pages->findMany("template=record, textField!=''"); $uniques = new PageArray(); $fieldValues = []; foreach ($fulls as $record) { if (in_array($record->textField, $fieldValues)) continue; $uniques->add($record); } $uniqueOrEmpty = $empties->import($uniques);
  7. I'm trying to write a value to a textarea via de API. I'm making use of the Multivalue Textformatter module which works great for when the field has multiple rows added via admin. But now I'm trying to add multiple lines to the textarea via the API and I cannot for the life of me figure, or find out how to do this. I'm adding "&#13;&#10;" to the end of of each new line. When I apply this value to a textarea in the template, this works fine, but when I $line = "this is a line"; $p->textarea = $line."&#13;&#10;" I just get "this is a line &#13;&#10;". This is the case with the "/n" and "<br>" as well. Turning on tinyMC doesn't help either as the output in the template is still the same. Turning on the HTML Encoder doesn't help either.
  8. yes, or, sorry, in Dutch or is of empty OR unique
  9. I'm trying to figure out how to create a selector that will find pages where a certain text field is either empty of unique. I have about 3500 records where the majority of have a specific field which is simply empty, there some records however that will have a certain value filled in this same field and some of these values are the same. I want to only select the first page which is found with this value and exclude the rest of these pages with the same value. Any ideas?
  10. Barry

    Turns out it was simpler that I thought, but I had to recreate the project folder and define the web hook again and it began pulling the data.
  11. I'm attempting to deploy my site via GIT from bitbucket through Runcloud. I've managed to connect the repo via a webhook and I'm able to pull whenever I commit from local, but I keep getting a "Targetted directory /home/runcloud/webapps/domainname is not a GIT directory inside Web Application thedjcompany" I've always deployed via a GUI but we've moved servers and I'm very experienced with GIT, nor do I have any experience with Runcloud, so I'm hoping someone here has some info and can point me in the right direction? I'm guessing that I have to initiate the GIT folder within the webapp folder itself but I wouldn't know the command line to get that started. Any info/advise would be very appreciated
  12. Barry

    I had that installed and it showed that Processwire was redirecting my page first tot a page with a get variable ?it= or something or other and then it would redirect to the homepage.
  13. Barry

    I should mention that I have ProCache installed but not activated at the moment though it was on at some point to test the site. But since the site needed some thorough development, so save time clearing the cache, I simply cleared it and turned it off. I did notice some extra rules in the htaccess because of this. Could that have been the cause?
  14. Barry

    But I was using standard ProcessWire htaccess, so it should have all been working at ProcessWire intended