Skip to main content
16
results
Andrew Fletcher
This code is from Drupal 9 back-end for a React front-end via REST API. Working through the output for recently viewed pages... the code structure: <?php namespace Drupal\custom\Plugin\GetData\paragraph; use Drupal\custom\Plugin\GetData\ContentBase; use Drupal\custom\Plugin\GetData\ParagraphTrait; use Drupal\node\Entity\Node; /** * Provides Recent view pages data. * * @GetData( * id = "recent_view_pages", * title = @Translation("Recent view pages Data"), * ) */ class...
Andrew Fletcher
I'm writing these steps primarily for myself as a reference.  However, if...
Andrew Fletcher
Well for me it is very slow.  Recently, I upgraded from CentOS 6 to Centos...
Andrew Fletcher
Working in Laravel, I needed to loop through an array and know whether the...
Andrew Fletcher
Setting up the mail configuration in October CMS is a quick progress....
Andrew Fletcher
To connect to your CPanel hosted server via SSH OSX, please follow these steps: Generate your SSH key Log in to your CPanel account.  As first you will have to generate an SSH key pair in cPanel -> SSH/Shell Access Complete the details in the Generate new SSH key pair form First name Last name Email Password - take note of the password you used to generate the key as you will use it shortly Allowed IP address  Copy the private key from cPanel and save it into...
Andrew Fletcher
I had an issue where logging in from the app disconnected.  The error that...
Andrew Fletcher
Common commands Themes and plugins have similar command lines.  So rather...
Andrew Fletcher
At times while developing in October CMS, you will perform a step that kills the...
Andrew Fletcher
Using October CMS to migrate your site and update the tables with the plugins...
Andrew Fletcher
I had an instance where I needed to move content from a plist to the server database.  To achieve this step, I added a few lines of code where the plist was called and added a call to the API so the data would be on the server. The original code appeared as: class ContactsSource { static var contacts: [Contact] { let data = try! PlistLoader.array(fromFile: "ContactsDB", ofType: "plist") return data.compactMap { Contact(dictionary: $0) } } }I needed to access...
Andrew Fletcher
Overview To update ejabberd you need to remove it, then re-install with the...
Andrew Fletcher
The starting point is to read through and follow the notes outlined on the...
Andrew Fletcher
To add Erlang repository that also includes the public key for verifying signed...
Andrew Fletcher
Adding a pem file to secure ejabbered on the server for chat connection. Getting...