One of the great things about Drupal's new media manager is the ability to easily see all the media you're using on your website. What if you want to replace one of those images or even more likely a PDF that needs to be updated? Well in this OSTip, I'm going to show you how. Let's go! Originally from Drupal.org aggregator https://ift.tt/30gAZXF
0 Comments
What Do Dolphins Eat? Lessons from How Kids Search Best of Whiteboard Friday https://t.co/pw7XrfI4aZ7/31/2020
Adding classes to Drupal Link field
I recently came across a situation where I had to add a class to a link field in a content type. Now, this can be done using contributed modules like Link Attributes widget or Advance Link Attributes. However, there was a small catch in the requirement. The extra class has to be added only for external URLs added via the Link field. Now, although updating the field widget to add an extra field for class seems to be a solution but it's not author-friendly when the users base are non-technical editors. So, instead of adding any new module or a new field widget, I ended up writing a small preprocess for the field to check if the field item URL is external then add the external class.
This can be achieved using JavaScript as well by checking all the href attributes of the field items on load, but should be avoided. It's always better to look out if Drupal is providing any API or hook to do what is intended. Usage of JavaScript for such purposes should be used as a last resort. malabya Thu, 07/30/2020 - 21:50 Drupal developmentOriginally from Drupal.org aggregator https://ift.tt/3fdsOjk Over 500,000 businesses leverage Drupal to launch their websites and projects. From NASA to Tesla, public and private institutions regularly rely on Drupal to launch large-scale websites capable of handling their development and visual needs. But, starting a Drupal project doesn’t guarantee success. In fact, 14% of all IT projects outright fail, 43% exceed their initial budgets, and 31% fail to meet their original goals! In other words, if you want to create a successful Drupal project, you need to prepare. Don’t worry! We’ve got your back. Here are 5 things to keep in mind when starting a Drupal-based project. 1. GATHER REQUIREMENTS FROM STAKEHOLDERS EARLY AND OFTENAccording to PMI, 39% of projects fail due to inadequate requirements. Believe it or not, requirement gathering is the single most important stage of project development. In fact, it’s the first step Drupal itself takes when pushing out new projects (see this scope document for their technical document project). Gathering requirements may sound easy, but it can be a time-consuming process. We recommend using SMART (Specific, Measurable, Agreed Upon, Realistic, Time-based) to map out your specific needs. If possible, involve the end-user during this stage. Don’t assume you know what users want; ask them directly. Internally, requirements gathering should rally nearly every stakeholder with hefty amounts of cross-collaboration between departments. You want to lean heavily on data, establish your benchmarks and KPIs early, and try to involve everyone regularly. The single biggest project mistake is acting like requirements are set-in-stone. If you just follow the initial requirements to a “T,” you may push out a poor project. You want to regularly ask questions, communicate issues, and rely on guidance from stakeholders and subject matter experts (SMEs) to guide your project to completion. 2. PLAN YOUR SDLC/WORKFLOW PIPELINEWe all have different development strategies. You may leverage freelancers, a best-in-class agency, or internal devs to execute your Drupal projects. Typically, we see a combination of two of the above. Either way, you have to set some software development lifecycle and workflow standards. This gets complex. On the surface, you should think about coding standards, code flow, databases, and repositories, and all of the other development needs that should be in sync across devs. But there’s also the deeper, more holistic components to consider. Are you going to use agile? Do you have a DevOps strategy? Are you SCRUM-based? Do you practice design and dev sprints? At Mobomo, we use an agile-hybrid development cycle to fail early, iterate regularly, and deploy rapidly. But that’s how we do things. You need to figure out how you want to execute your project. We’ve seen successful Drupal projects using virtually every workflow system out there. The way you work matters, sure. But getting everyone aligned under a specific way of working is more important. You can use the “old-school” waterfall methodology and still push out great projects. However, to do that, you need everyone on the same page. 3. USE SHIFT-LEFT TESTING FOR BUG AND VULNERABILITY DETECTIONDrupal is a secure platform. Of the four most popular content management systems, Drupal is the least hacked. But that doesn’t mean it’s impenetrable. You want to shift-left test (i.e., automate testing early and often in the development cycle). Drupal 8+ has PHPUnit built-in — taking the place of SimpleTest. You can use this to quickly test out code. You can perform unit tests, kernel tests, and functional tests with and without JavaScript. You can also use Nightwatch.js to run tests. Of course, you may opt for third-party automation solutions (e.g., RUM, synthetic user monitoring, etc.) The important thing is that you test continuously. There are three primary reasons that shift-left testing needs to be part of your development arsenal.
4. GET HYPER-FAMILIAR WITH DRUPAL’S APIIf you want to build amazing Drupal projects, you need to familiarize yourself with the Drupal REST API. This may sound like obvious advice. But understanding how Drupal’s built-in features, architecture, and coding flow can help you minimize mistakes and maximize your time-to-launch. The last thing you want to do is code redundantly when Drupal may automate some of that coding on its end. For more information on Drupal’s API and taxonomy, see Drupal API. We know! If you’re using Drupal, you probably have a decent idea of what its API looks like. But make sure that you understand all of its core features to avoid headaches and redundancies. 5. SET STANDARDSEvery development project needs standards. There are a million ways to build a website or app. But you can’t use all of those million ways together. You don’t want half of your team using Drupal’s built-in content builder and the other half using Gutenberg. Everyone should be on the same page. This goes for blocks, taxonomy, and every other coding need and task you’re going to accomplish. You need coding standards, software standards, and process standards to align your team to a specific framework. You can develop standards incrementally, but they should be shared consistently across teams. Ideally, you’ll build a standard for everything. From communication to development, testing, launching, and patching, you should have set-in-stone processes. In the past, this was less of an issue. But, with every developer rushing to agile, sprint-driven methodologies, it can be easy to lose sight of standards in favor of speed. Don’t let that happen. Agile doesn’t mean “willy-nilly” coding and development for the fastest possible launch. It still has to be systematic. Standards allow you to execute faster and smarter across your development pipeline. NEED SOME HELP?At Mobomo, we build best-in-class Drupal projects for brands across the globe. From NASA to UGS, we’ve helped private, and public entities launch safe, secure, and exciting Drupal solutions. Are you looking for a partner with fresh strategies and best-of-breed agile-driven development practices? Contact us. Let’s build your dream project — together. The post Must-Follow Considerations When Starting a Drupal-Based Project appeared first on . Originally from Drupal.org aggregator https://ift.tt/3gcQg1q Welcome to the last article of this series, which will take you through a set of Kubernetes objects that define the infrastructure of the sample Drupal site that we have been using. The previous article covered the GitHub Actions workflow that orchestrated the Docker image build, push, and deployment to a Kubernetes cluster. This article will demonstrate the Kubernetes setup. Originally from Drupal.org aggregator https://ift.tt/39BsVnB
Drupal key_value_expire Table is very large because of Honeypot Module
I had a very large key_value_expire table, even though Honeypot module had been uninstalled. Originally from Drupal.org aggregator https://ift.tt/2X5mUKz The new coronavirus (COVID-19) pandemic is more than a health crisis. As the infectious disease spreads across the world, it is leading to horrendous social, economic, and political crises that may last for the foreseeable future. As lockdowns, physical distancing restrictions, and other measures were implemented to curb the spread of the dangerous virus, it led to an unprecedented shift in how things are done. Specifically, it disrupted the normal work environment in almost every industry, including the IT industry. Companies that often relied on external IT support suddenly found their critical content and events pages outdated, as the external support team was overrun with requests from many other clients who needed their websites updated. So, if there is one thing that has become clear during this pandemic it is the need to be self-sufficient. You don’t need to be hiring someone each time you want to update the design of your web page, customize images, or make any content changes to your site. Why you need to know how to update your Drupal websiteUpdating your Drupal website is not rocket science. It’s something you can learn how to do on your own and avoid over-depending on your IT support staff, especially in times of crisis when reaching them is difficult. Here are three reasons why being able to update your Drupal website is important. 1. Keeps you in controlLearning how to update your website quickly without IT support will make you in control over its look and feel. You’ll no longer need to make frantic calls for your site to be updated to meet the ever-changing user expectations. With this level of control, you can unleash your inner creativity instantly and create whatever you want. So, whenever something unexpected happens, such as the ongoing COVID-19 pandemic, you’ll still ensure your site is up-to-date and performing optimally. 2. Saves costsLet’s face it: relying on an IT support team to be in charge of updating your site is expensive. If your website needs to be updated regularly, the costs can affect your bottom line, especially during the coronavirus pandemic when cash flow is limited. Knowing how to update your website will reduce the costs spent on hiring a third-party service. You can use the savings to improve your core business activities and gain a competitive edge in the marketplace. 3. Improves skillsAnother benefit of learning how to update your site is that it’ll improve your skills significantly. Updating your Drupal website is a skill that can be acquired easily with our Drupal Layout Builder. With the new skill, you’ll improve your capabilities to succeed in the current digital age. We all know how technology is rapidly advancing these days. So, if you can add this expertise to your skillset, you’ll position yourself for personal and professional success. How to update your Drupal website fast without IT supportAs earlier mentioned, knowing how to update your website is easy to learn. With our Drupal Layout Builder for Drupal 7, 8, and 9, you can create and update your websites without touching any line of code. DXPR offers an easy way to make improvements to your website without requiring IT support. It allows you to create and edit what you want lighting fast. DXPR Builder is built to offer the benefits of an enterprise-class CMS solution without the usual pain points. It comes with simple and easy to use drag-and-drop functionality that makes building and updating web pages hassle-free and rewarding. Many of our clients have been able to quickly update their website header, footer, homepage, or event pages, with a COVID-19 messages that stands out. Some clients have used our "Alert element" and other chose for more conspicuous "Jumbotron element". Alert element example:Jumbotron element example:ConclusionThe COVID-19 pandemic has taught us lessons that we’ll live with for a long time to come. For Drupal website owners, it has exposed the importance of knowing how to make updates without relying on third-party services. DXPR Builder has proved to be a viable solution to make the process of building and updating websites in Drupal fast, easy, and independent. Photo by Markus Spiske from Pexels Originally from Drupal.org aggregator https://ift.tt/2X8Y2BK
UX in the age of personalisation Tuba Ayyubi Wed, 07/29/2020 - 17:36
Personalization refers to the process of using the information provided by the user to provide a personalized experience to them according to their needs and preferences. This helps you in making your customers feel heard and market the right product to the right person at the right time. Why do we need to personalize?Let’s not confuse personalization with customization. Personalization provides experience based on the information provided by the user whereas customization gives the users liberty to custom-make a product or service. When you go to a website, say for shopping or maybe just surfing and you realize that the app or the website is interacting with you. This makes you like the brand and go back to them every time you have a similar requirement. This will make you feel special and more connected to the brand. Personalization is important because it creates a bond between the users and the brand and makes them loyal customers. If there is no personalized experience given to the users then the user might feel like he’s not being given much help from the brand even though it is. While personalization can be a big hit for your brand, context factors also make a lot of difference. The device the customer is using, whether in the location the person is in or even the time of the day matters a lot in personalization. Importance of personalized designPersonalization and design go hand in hand. If the UX of your brand is great and personalized for different kinds of users, you are good to go! Let’s look at some of the best practices for Personalized UX Design Show relevant recommendationsWhen providing personalized information, it is important to make sure that the information that you show the users is relevant and does not disturb the flow of the user experience. Many shopping applications show recommendations according to the search made by the users. This saves the user time and helps the user purchase more valuable. Myntra shows trending products to let the users know what is trending currently. This is a different way of recommending products.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
April 2023
Categories |