Barry

Members
  • Content count

    60
  • 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

2,871 profile views
  1. 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.
  2. sorted, had to write "/r/n" and it worked.
  3. 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);
  4. 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.
  5. yes, or, sorry, in Dutch or is of empty OR unique
  6. 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?
  7. 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.
  8. 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
  9. 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.
  10. 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?
  11. But I was using standard ProcessWire htaccess, so it should have all been working at ProcessWire intended
  12. I placed the following rules at the very top of the htaccess RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.thedjcompany\.nl [NC] RewriteRule ^(.*)$ http://thedjcompany.nl/$1 [L,R=301] RewriteCond %{ENV:HTTPS} !on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] also removing the RewriteEngine On which was lower down in the htaccess and now it all works
  13. I'm trying to direct all pages from their www and http versions to their non www https versions but I'm experiencing some really strange redirecting behaviour instead. When I uncomment the http to https lines in the htaccess, I get a too many redirects error on my site I thought that Processwire by default redirected from www to non www? When I apply the following line after the Processwire directives RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] The redirecting seems to work fine but for some reason many of the pages redirect to the homepage. I don't know if its a factor but I have jumplinks and multi-language installed and running. I've removed all custom rules from the htaccess just so that people see the pages they click on from search engines, but I'm hoping this can be resolves quick. Ideas?
  14. embarrassed to admit that after some thorough digging, I found if($page->template = 'pageGeo'){ instead of with == which was messing up everything.
  15. I've tested this and $page->name and title and url all work fine. My homepage template doesn't have any other custom fields besides the already mentioned footer_nav