Caveat Emptor https://www.digett.com/ en Drupal Views Module Caveat https://www.digett.com/insights/drupal-views-module-caveat <span>Drupal Views Module Caveat</span> <div class="field field--name-field-teaser-image field--type-image field--label-hidden field__item"> <img src="/sites/default/files/styles/blog_card/public/default_images/post-placeholder.png?itok=XTq6XZRt" width="360" height="180" alt="" typeof="foaf:Image" /> </div> <span><span lang="" about="/users/luke" typeof="schema:Person" property="schema:name" datatype="">Luke</span></span> <span>Wed, 02/20/2008 - 12:00am</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Drupal's powerful Views module is something I use almost everyday. The Views module allows you to present content in many different ways by sorting and filtering content to suit your specific need.</p> <p>This time I was building a view for news content on a development site, when I stumbled across an interesting filter. I had already filtered by content type. I wanted news content only. I thought I was done, and was about to click 'Save' when I saw it there. The publish filter. "Hm...that sounds vaguely familiar...." I thought to myself as I added it. The caption said "Filter by whether or not the node is published. This is recommended for most Views!"</p> <p><a href="/imce/browse" onclick="imce.send('views-filter-choose_0.gif'); return false;" title="Add image to imceimage"><img src="/core/misc/icons/e32700/error.svg" alt="Image removed." width="16" height="16" title="This image has been removed. For security reasons, only images from the local domain are allowed." class="filter-image-invalid" /></a></p> <p>Suddenly it struck me that I hadn't filtered out unpublished content from this view, and several others as well. I had felt intuitively that Drupal's access control would handle that for me, but the Views module writes its own queries, thus bypassing Drupal's built-in access control. After pondering these things momentarily, I faintly remembered being warned about this in the past by a Drupal Guru I once knew. Somewhere along the way, I had just forgotten about this filter.</p> <p>This can present a somewhat insidious snag to a new Drupal developer, because you may create many views before you ever have unpublished content surface unexpectedly.</p> <p>The moral of the story is this: When you create a view, the first thing you should do is add a "Node:Published=Yes" filter. It is very easy to forget this important filter, so making this a habit is a good idea.</p> <p><a href="/imce/browse" onclick="imce.send('views-filter-set.gif'); return false;" title="Add image to imceimage"><img src="/core/misc/icons/e32700/error.svg" alt="Image removed." width="16" height="16" title="This image has been removed. For security reasons, only images from the local domain are allowed." class="filter-image-invalid" /></a></p> </div> <section> <h2>LEAVE A COMMENT</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=466&amp;2=comment_no_subject&amp;3=comment_no_subject" token="ejdwhlqTQX9nd36JhosH-DmMNaocBeOB435JAXBktKY"></drupal-render-placeholder> </section> <div class="sharethis-wrapper"><span st_url="https://www.digett.com/insights/drupal-views-module-caveat" st_title="Drupal Views Module Caveat" class="st_facebook_large" displayText="facebook"></span> <span st_url="https://www.digett.com/insights/drupal-views-module-caveat" st_title="Drupal Views Module Caveat" class="st_linkedin_large" displayText="linkedin"></span> <span st_url="https://www.digett.com/insights/drupal-views-module-caveat" st_title="Drupal Views Module Caveat" class="st_twitter_large" displayText="twitter"></span> <span st_url="https://www.digett.com/insights/drupal-views-module-caveat" st_title="Drupal Views Module Caveat" class="st_email_large" displayText="email"></span> </div> Wed, 20 Feb 2008 06:00:00 +0000 Luke 466 at https://www.digett.com Broken Organizations https://www.digett.com/insights/broken-organizations <span>Broken Organizations</span> <div class="field field--name-field-teaser-image field--type-image field--label-hidden field__item"> <img src="/sites/default/files/styles/blog_card/public/default_images/post-placeholder.png?itok=XTq6XZRt" width="360" height="180" alt="" typeof="foaf:Image" /> </div> <span><a title="View user profile." href="/about/mark-figart" lang="" about="/about/mark-figart" typeof="schema:Person" property="schema:name" datatype="">Mark Figart</a></span> <span>Tue, 07/17/2007 - 12:00am</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>So many organizations are broken. You know them, as you've probably tried to deal with one or two, at least, in the past week. I'm on my second phone call today with <a href="http://www.bluetie.com/">BlueTie,</a> trying simply to change the credit card to which my account gets billed monthly. What should be a one-minute on-line fix has already stretched into fifteen minutes, with no end in sight yet.</p> <p><a href="http://www.simplicato.com//">Simplicato</a> is one that's appeared in this blog before, so I won't even go there.</p> <p>Want an example among "traditional, old-style" firms? <a href="http://www.ewaldtractor.com/EWI/Home">Ewald Tracto</a>r, right here in Boerne. I called them last weekend to (1) see if they had spare mower blades in stock and to (2) find out what they charged for sharpening a set of blades. The parts guy couldn't find info on the blades, so he took my number and said he'd call me back. He never did. He did, however, attempt to transfer me to the service manager so that I could get an answer about the sharpening fee. The service manager was, however, out on the lot, so the parts guy asked me if I could call back "after while". What? Having paid these folks a fortune for a new mower only weeks before, I hope you can understand that I was a little frustrated that I was, in effect, being asked to guess when the service manager might be available later in the day. Whatever happened to "I'll take a message and have him call you back?"</p> <p>I thought my salesperson needed to know about this, even though I figured it was all probably just a coincidental series of small slip-ups on what was likely an extraordinarily busy day. By my salesperson's defensive and illogical response, it was pretty clear to me that he wasn't even really listening to what I was trying to tell him. I wasn't complaining for his sympathy. I just wanted someone to acknowledge that this wasn't handled very well so that my disappointing encounter would not be in vain. I wanted to help them! Indeed, I'm afraid my unpleasant experience that day might be a sign of systemic problems, not just some coincidental mix-ups.</p> <p>Alas, I'm afraid all of our organizations are, perhaps, broken to some extent. Fact it, it's difficult to provide the seemingly seamless high level of support I get every time I call American Express customer service. How do they do that?!! Even as a small organization, I know we don't always give our customers the feeling that we're doing everything we can to take care of them. But we're trying, and if anybody out there has feedback for us that might help us improve, let me be the first to say it would be most welcome. We need customers who are not afraid to tell us when we're doing something wrong, and I realize this describes a minority of your customers and mine.</p> <p>Treasure the squeaky wheel. You won't thrive without feedback, whether good or bad.</p> </div> <section> <h2>LEAVE A COMMENT</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=245&amp;2=comment_no_subject&amp;3=comment_no_subject" token="2gxQ546QeCJDlnvBlPy_xJzU2ZwcFF--yB4Jab-7MNU"></drupal-render-placeholder> </section> <div class="sharethis-wrapper"><span st_url="https://www.digett.com/insights/broken-organizations" st_title="Broken Organizations" class="st_facebook_large" displayText="facebook"></span> <span st_url="https://www.digett.com/insights/broken-organizations" st_title="Broken Organizations" class="st_linkedin_large" displayText="linkedin"></span> <span st_url="https://www.digett.com/insights/broken-organizations" st_title="Broken Organizations" class="st_twitter_large" displayText="twitter"></span> <span st_url="https://www.digett.com/insights/broken-organizations" st_title="Broken Organizations" class="st_email_large" displayText="email"></span> </div> Tue, 17 Jul 2007 05:00:00 +0000 Mark Figart 245 at https://www.digett.com