<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by xpersonas on Medium]]></title>
        <description><![CDATA[Stories by xpersonas on Medium]]></description>
        <link>https://medium.com/@justin.neel?source=rss-9f4ee83972d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by xpersonas on Medium</title>
            <link>https://medium.com/@justin.neel?source=rss-9f4ee83972d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:28:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@justin.neel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Unpublish Your Drupal Event Nodes]]></title>
            <link>https://medium.com/xpersonas-drupal-development/unpublish-your-drupal-event-nodes-e93660961f7a?source=rss-9f4ee83972d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e93660961f7a</guid>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[drupal-planet]]></category>
            <category><![CDATA[scheduling]]></category>
            <dc:creator><![CDATA[xpersonas]]></dc:creator>
            <pubDate>Fri, 07 Jul 2017 21:40:59 GMT</pubDate>
            <atom:updated>2017-07-20T16:29:29.903Z</atom:updated>
            <content:encoded><![CDATA[<p>One of my pet peeves is searching for a local event and finding details for that event… 3+ years ago.</p><p>Many Drupal sites feature some sort of event type node. It’s really anything with a start date, and likely, an end date. The problem is, most developers don’t take into account whether or not that content should live on once the end date has come and gone.</p><blockquote>Perhaps, in some instances, keeping that content on your site makes sense. In most cases though, it does not.</blockquote><p>For instance, my 3 year old was really into dinosaurs. I knew there was a dinosaur exhibit coming to town, but I didn’t quite remember the name. Searching online provided quite a few local results. And many of those results were for events in the past.</p><h3>Examples</h3><p>Discover the Dinosaurs (06/21/2014)<em><br></em><a href="http://www.evansvilleevents.com/home/events/discover-the-dinosaurs/">http://www.evansvilleevents.com/home/events/discover-the-dinosaurs</a><br><em>(event has since been unpublished!)</em></p><p>DISCOVER THE DINOSAURS ROARS INTO EVANSVILLE! (12/14/2012)<br><a href="http://www.evansvilleevents.com/home/2012/12/discover-dinosaurs-roars-evansville/">http://www.evansvilleevents.com/home/2012/12/discover-dinosaurs-roars-evansville</a><br><em>(event has since been unpublished!)</em></p><p>Dino Dig! (06/02/2015)<a href="http://www.cmoekids.org/events/community-events/dino-dig"><br>http://www.cmoekids.org/events/community-events/dino-dig</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*ip77XO3pcnfKL5GflwcBdw.png" /><figcaption>Event from 2 Years Ago</figcaption></figure><p>Discover the Dinosaurs Unleashed (02/18/????)<br><a href="http://www.evansvilleliving.com/event/discover-the-dinosaurs-unleashed">http://www.evansvilleliving.com/event/discover-the-dinosaurs-unleashed</a></p><p>Sometimes sites will even have past events ranking higher in search results than upcoming events.</p><blockquote>There’s a whole other blog post I could write about how useful it is to have the year accompanying the day and month on web content — particularly tech blog posts. Was this written in February of this year or 2006? How can I know?!?</blockquote><h3>The Drupal Solution</h3><p>For Drupal sites, there’s a relatively easy fix. It requires a small custom module and the contributed <a href="https://www.drupal.org/project/scheduler">Scheduler</a> module.</p><p>The Scheduler module is simple and great. Simply enable it for your content type, and enable, at the very least, the unpublish setting. Once that is set up, create a custom module and invoke the hook_entity_presave() function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/23501dbc20c538cab3ac1ceadbb77576/href">https://medium.com/media/23501dbc20c538cab3ac1ceadbb77576/href</a></iframe><p>This code is pretty self explanatory. All I’m doing is checking to be sure it’s an event node type that’s being saved, and if so, find the start and end date values to be used when setting the “unpublish_on” field.</p><p>You’ll of course have to make sure your node type and field names match up.</p><p>Once that’s set up, any time an event is saved, your node is scheduled to unpublish one day after the end date.</p><p>If you have a Drupal 7 site, this same idea can be applied. The code in the hook_entity_presave() will be a bit different.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9465a63eb9b7829b9ca7096bffea2b4f/href">https://medium.com/media/9465a63eb9b7829b9ca7096bffea2b4f/href</a></iframe><p>I wish I could start a massive movement to help clean up web content that should have been unpublished or removed long ago. Until then, hopefully this article finds a few devs so that they can ensure their site isn’t one of those sending out poor results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e93660961f7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/xpersonas-drupal-development/unpublish-your-drupal-event-nodes-e93660961f7a">Unpublish Your Drupal Event Nodes</a> was originally published in <a href="https://medium.com/xpersonas-drupal-development">xpersonas drupal development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple MailChimp Module for Drupal 8]]></title>
            <link>https://medium.com/xpersonas-drupal-development/simple-mailchimp-module-for-drupal-8-5f2692cceb6f?source=rss-9f4ee83972d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f2692cceb6f</guid>
            <category><![CDATA[mailchimp]]></category>
            <category><![CDATA[drupal-planet]]></category>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[xpersonas]]></dc:creator>
            <pubDate>Fri, 07 Jul 2017 18:45:40 GMT</pubDate>
            <atom:updated>2017-07-20T16:29:42.994Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="https://www.drupal.org/project/simple_mailchimp">Simple MailChimp</a> module for Drupal 8 intends to be the easiest way to add MailChimp integration to your site.</p><p>There is already a MailChimp module for Drupal, of course. There are several of them.</p><ul><li><a href="https://www.drupal.org/project/mailchimp">MailChimp</a></li><li><a href="https://www.drupal.org/project/webform_mailchimp">Webform MailChimp</a></li><li><a href="https://www.drupal.org/project/mailchimp_ecommerce">MailChimp E-Commerce</a></li><li>and more…</li></ul><p>The main MailChimp module itself does a lot…</p><blockquote>The MailChimp module allows users to manage email marketing efforts through MailChimp’s service. The module supports the creation and sending of campaigns, management of email lists and individual subscribers, and offers standalone subscribe and unsubscribe forms.</blockquote><p>The problem with these modules is that they either do too much, or they are too specific in their use case. What I often need on my sites, more than anything else, is just a checkbox at the bottom of a form that will allow me to subscribe users to my MailChimp list if they choose to do so. Most likely, I need a checkbox at the bottom of many forms.</p><p>I don’t need to manage campaigns, lists, etc. from within my Drupal site. I just need a checkbox. Maybe a few options (MailChimp groups), but that’s it. <strong>And, again,I need it on all forms</strong>. I need it on my subsciption form of course, but I also need it on warranty registrations, user registrations, webforms, or any other form that may be included with my site.</p><p>This is where the <a href="https://www.drupal.org/project/simple_mailchimp">Simple MailChimp</a> module comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*yZ2XmZgyBx4x9z4VQ8FeHw.png" /><figcaption>Example form with “group” options.</figcaption></figure><p>Again, this module is not meant in any way to be as robust as the <a href="https://www.drupal.org/project/mailchimp">MailChimp</a> module. You can’t manage subscribers. You can’t work with lists. It simply gives you the ability to add a checkbox for subscribing to a single MailChimp list, and also allows a field for one interest group option.</p><p>To configure this module, you will need your MailChimp API key, list ID, and a mapping of fields. See screenshot below. Under “Enabled Forms” you would enter one Drupal form id per line, and then map the email field (and other fields) to the appropriate merge fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*A1vaABRIFdknKEOJy0-afw.png" /></figure><p>Simple MailChimp supports most MailChimp field types:</p><ul><li>text</li><li>zip_code</li><li>number</li><li>address</li><li>date</li><li>phone</li><li>birthday</li><li>website</li></ul><p>The idea of this module is to be simple. It does not make any assumptions. It does not provide any public facing forms. It’s simply for adding a checkbox to existing forms.</p><p>Download <a href="https://www.drupal.org/project/simple_mailchimp">Simple MailChimp</a> and try it out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f2692cceb6f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/xpersonas-drupal-development/simple-mailchimp-module-for-drupal-8-5f2692cceb6f">Simple MailChimp Module for Drupal 8</a> was originally published in <a href="https://medium.com/xpersonas-drupal-development">xpersonas drupal development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Password Reveal for Drupal 8]]></title>
            <link>https://medium.com/xpersonas-drupal-development/simple-password-reveal-for-drupal-8-d80600e4efaa?source=rss-9f4ee83972d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d80600e4efaa</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[drupal-planet]]></category>
            <dc:creator><![CDATA[xpersonas]]></dc:creator>
            <pubDate>Fri, 07 Jul 2017 18:06:32 GMT</pubDate>
            <atom:updated>2017-07-20T16:30:07.334Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.drupal.org/project/simple_password_reveal">Simple Password Reveal</a> alters password fields on user login and user edit forms to <strong>show plain text by default</strong>, while<strong> </strong>also adding a checkbox for concealing the password as needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOHChgAaDVkHm17Q9CDPjA.png" /></figure><p>Rather than creating friction for a user to show a password every time by clicking a checkbox, the password is revealed by default. In my own experience, I generally prefer password fields to be plain text almost all the time. It’s only when in public or during a presentation that I want to conceal passwords. And I’m not the only one…</p><ul><li><a href="https://www.lukew.com/ff/entry.asp?1941">LukeW | Showing Passwords on Log-In Screens</a></li><li><a href="https://uxplanet.org/designing-ux-login-form-and-process-8b17167ed5b9">Designing UX Login Form and Process</a></li></ul><p>There is another module that provides similar functionality. However, <a href="https://www.drupal.org/project/simple_password_reveal">Simple Password Reveal</a> takes a different approach than the <a href="https://www.drupal.org/project/password_toggle">Password Toggle</a> module. They use javascript to add a checkbox to each password field in any and all forms. They also have a Drupal 7 version.</p><p>This module attempts to keep things simple by concentrating solely on the <strong>user login</strong> and <strong>user edit</strong> pages. If you need this feature on custom forms, on forms loaded by ajax, or for a Drupal 7 site then this module may not be for you.</p><p><a href="https://www.drupal.org/project/simple_password_reveal">Simple Password Reveal</a> also uses form alters to add one checkbox per form, rather than one checkbox per input. So, for example, when you are on the user edit page you have three password fields — current password, new password, and confirm password. Rather than having a checkbox for each password field, this module only has one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vYugqN3N01akVXhmP8E9rA.png" /></figure><p>Download <a href="https://www.drupal.org/project/simple_password_reveal">Simple Password Reveal</a> and try it out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d80600e4efaa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/xpersonas-drupal-development/simple-password-reveal-for-drupal-8-d80600e4efaa">Simple Password Reveal for Drupal 8</a> was originally published in <a href="https://medium.com/xpersonas-drupal-development">xpersonas drupal development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drupal’s Simple Style Guide Module]]></title>
            <link>https://medium.com/xpersonas-drupal-development/drupals-simple-styleguide-fdbcaab36cfc?source=rss-9f4ee83972d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdbcaab36cfc</guid>
            <category><![CDATA[drupal-planet]]></category>
            <category><![CDATA[style-guides]]></category>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[xpersonas]]></dc:creator>
            <pubDate>Thu, 08 Jun 2017 14:32:26 GMT</pubDate>
            <atom:updated>2017-07-20T16:30:22.735Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.drupal.org/project/simple_styleguide">Simple Style Guide</a> was created to be a fully flexible style guide for Drupal developers and site builders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95abtCnBExy651JV_dZloA.png" /></figure><p>I’ve been using style guides for a while now. I can’t imagine developing any site without one, regardless of size. The idea behind this module was to enable devs and site builders to create a fully functional, living, style guide with only the elements you want and nothing more.</p><p>What I wanted was the ability to create one in a fast, effecient manner. No elements are required. No elements are added by default. And all this funcationality is fully accessible to site builders without having to write a single line of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pb7tsayCKW-fxfQmnUd67g.png" /><figcaption>Style Guide Settings</figcaption></figure><p><strong>Default Patterns</strong><br>You can choose from a set of very basic default patterns such as headings, text, lists, blockquote, horizontal rules, table, alerts, breadcrumbs, forms, buttons, and pagination. Chosen elements will appear on the style guide page. Choose as many default options as you like, or choose none.</p><p><strong>Color Palette</strong><br>You also have the ability to create a color palette by adding a hex color code, a class name, and usage descriptions (if desired).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGR5rVWp51NzG3xMRi4puQ.png" /><figcaption>Live Example of a Color Palette</figcaption></figure><p><strong>Custom Patterns</strong><br>You can also create custom patterns. Custom patterns can be any chunk of html that you want. There are no restrictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWqc-7QbdNh6b6qbf9VUGQ.png" /><figcaption>Add Any Custom Patterns</figcaption></figure><p>With these tools, I hope you will be able to create a very flexible style guide/pattern library. To view a live example of a working style guide, you can check out this page:</p><p><a href="https://eisforeveryone.com/simple-styleguide?utm_source=medium.com&amp;utm_campaign=Simple%20Styleguide%20Blog%20Post">https://eisforeveryone.com/simple-styleguide</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdbcaab36cfc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/xpersonas-drupal-development/drupals-simple-styleguide-fdbcaab36cfc">Drupal’s Simple Style Guide Module</a> was originally published in <a href="https://medium.com/xpersonas-drupal-development">xpersonas drupal development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SncRedisBundle on Platform.sh]]></title>
            <link>https://medium.com/@justin.neel/sncredisbundle-on-platform-sh-8e27dadec98e?source=rss-9f4ee83972d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e27dadec98e</guid>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[symfony]]></category>
            <dc:creator><![CDATA[xpersonas]]></dc:creator>
            <pubDate>Wed, 15 Mar 2017 19:15:01 GMT</pubDate>
            <atom:updated>2017-03-15T22:07:57.206Z</atom:updated>
            <content:encoded><![CDATA[<p>This is my experience in getting redis to work with a Symfony 3 site on <a href="https://platform.sh/">Platform.sh</a> using the <a href="https://github.com/snc/SncRedisBundle">SncRedisBundle</a>.</p><h3>Configure Your Platform.sh Environment</h3><p>First, in order to make redis available on your platform.sh environment you have to modify your <em>platform.app.yaml</em> file and your <em>services.yaml file</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/629d0f0b9df047b47a02749f2f8c4895/href">https://medium.com/media/629d0f0b9df047b47a02749f2f8c4895/href</a></iframe><p>As you can see, I have added redis to the runtime extensions key. I have also added a new relationship for redis under the relationships key.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb1fa6f46dd3a4e1adef52165788a407/href">https://medium.com/media/fb1fa6f46dd3a4e1adef52165788a407/href</a></iframe><p>Here I’ve simply set up the rediscache service that I referenced in my .platform.app.yaml file.</p><p>So far, there’s nothing ground breaking here. You can get most of this from the platform.sh documentation found here:</p><p><a href="https://docs.platform.sh/configuration/services/redis.html">Redis · Platform.sh Documentation</a></p><p>However, I needed a little more information. The next step in the documentation tells you that you can then use the service in a configuration file of your application with something like:</p><pre>$container-&gt;setParameter(&#39;redis_host&#39;, $relationships[&#39;redis&#39;][0][&#39;host&#39;]);</pre><p>However, you’ll want to note that $relationships[&#39;redis&#39;][0][&#39;host&#39;] returns just the host name redis.internal and not redis://redis.internal like you will need. To accommodate this, I set up my <em>parameters_platform.php</em> file like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0665a0f0bba2f4b027380f707ef56aa/href">https://medium.com/media/d0665a0f0bba2f4b027380f707ef56aa/href</a></iframe><p>The key here is to preface your redis_host parameter with redis://.</p><h3>Push What You Have</h3><p>At this point, it’s probably a good idea to commit and push your code to a platform.sh environment to verify that you have redis set up and running. If you don’t notice any errors during build, you should also take a look at your deploy log on that particular environment to ensure something didn’t go wrong that you aren’t aware of. You can find the deploy log at `/var/log/deploy.log` on any platform.sh environment.</p><p>If you are error free, then try running the redis-cli to ensure redis is running.</p><pre># the platform.sh docs show this command<br>redis-cli -h rediscache.internal -p 6379</pre><pre># however, redis.internal is the address I&#39;m given<br>redis-cli -h redis.internal -p 6379</pre><p>If all goes well you’ll be given a new prompt with something like:</p><pre>redis.internal:6379&gt;</pre><p>If things don’t go well, you’ll have something like this:</p><pre>Could not connect to Redis at rediscache.internal:6379: Name or service not known<br>not connected&gt; exit</pre><p>At the redis-cli prompt, try running the following command:</p><pre>redis.internal:6379&gt; keys *</pre><p>With nothing set up and configured, you should get an empty response:</p><pre>redis.internal:6379&gt; keys *<br>(empty list or set)</pre><h3>Configure Your Symfony Application</h3><p>If you are using doctrine as I am, you’ll want to configure it to use redis as the cache driver.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff3e3b976bd906c79ca1cbf2d3817628/href">https://medium.com/media/ff3e3b976bd906c79ca1cbf2d3817628/href</a></iframe><p>From here, you can enable the SncRedisBundle like you would any bundle by adding it to your <em>composer.json</em> and <em>AppKernel.php</em> files. You’ll also want to add a <em>redis_host</em> parameter to your <em>parameters.yml.dist</em> file. You’ll be replacing this parameter dynamically on platform.sh so it doesn’t matter what you set it to. For example, I have it set to <em>redis://127.0.0.1:6379</em> for my local redis server.</p><h3>Before You Build</h3><p>Before you build, there are a few things to know.</p><p><strong>You can’t flush the cache during the build process.</strong></p><p>There are multiple scenarios that trigger this, and if it occurs too early, it will fail. This is because redis is not configured and ready yet.</p><p>You’re build and deploy hooks will look different than mine, but running something like assets:install in your build hook will result in an error.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e4029128cda5da7690fcae14a7214d6/href">https://medium.com/media/2e4029128cda5da7690fcae14a7214d6/href</a></iframe><p>Depending on your version of Symfony, there are likely some scripts in your composer.json you’ll want to remove too.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/315244a766648cc7a522368523b65dff/href">https://medium.com/media/315244a766648cc7a522368523b65dff/href</a></iframe><p>I had to remove the clearCache and installAssets commands in order to get my build process to work correctly. You may need to do the same.</p><p>Commit and push your changes. Again, monitor your build log as it’s building. After the build is complete, log into the environment and check the deploy log. If everything is clean, it’s time to see if Redis is actually working.</p><h3>Is it Working?</h3><p>Now the big question is… are things working the way we expect?</p><p>Log in with the redic-cli</p><pre>redis-cli -h redis.internal -p 6379</pre><p>Flush the redis cache to ensure that it’s empty…</p><pre>redis.internal:6379&gt; flushall</pre><p>Run the keys command again to verify that redis is empty…</p><pre>redis.internal:6379&gt; keys *</pre><p>If redis is empty as expected, visit a page that you know will use redis for caching. Then, run the keys command again.</p><p>If all went well, you should see a list of keys returned. If not, something isn’t configured correctly. Platform.sh offers great support. You can submit a ticket, talk to them via live chat, or even join their Slack channel. Getting this set up correctly was no easy task, and they were very helpful throughout the whole process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e27dadec98e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>