There is a fantastic low-level API in Drupal called the Typed Data API. It is fantastic and provides a great way to handle data representation via a schema and validate that data's values. The Typed Data API is the foundation for the Entity API. Entities are composed of fields that are composed of properties, and each step is tied into the Typed Data API.
Originally from Drupal.org aggregator https://ift.tt/31dcz4C
0 Comments
Allow users to register for events, buy products in combined cart through Drupal Commerce mark.armstrong 2021-12-30 - 07:37
Combining the power of Drupal Commerce with the flexibility of CiviEvent, Skvare’s team of experts developed the Commerce CiviCRM Event Registration module allowing website managers to build a storefront that includes both events and merchandise. In the example above, a website offers classes and books through its commerce store. With Drupal Commerce, website managers can easily sell products and, through CiviEvent, users can register and pay to attend events. With the Commerce CiviCRM Event Registration module, both can be done through one interface, simplifying the build and making the entire process better for end-users. Following installation and setup instructions for using Drupal Commerce for CiviCRM event registration provided by Skvare’s developers, customers can add any event listed in the commerce store to their cart. Customers also can add other products from the store such as class materials, custom shirts, or parking passes — anything commerce — to their cart. This allows end-users to see everything in a single cart and follow one checkout process to purchase products, pay event fees and register for events. The best part for website managers is because this uses CiviEvent, the end-user is registered for the event in CiviCRM where scheduled jobs can send email reminders, be added to groups for future fundraising efforts, or be granted access to special web pages just for attendees. The Commerce CiviCRM Event Registration Drupal module developed by the team of experts at Skvare brings two great tools together making website management easier and improving user experience. Learn more about how Skvare’s team of Drupal and CiviCRM experts help organizations better deliver on their missions when their technology does more. Originally from Drupal.org aggregator https://ift.tt/3qIeQhc This topic came up a while ago when Acquia was looking to introduce Soft Purge as an option for their Acquia purge module in Drupal (N.B. not to be confused by the Fastly Drupal module). There appears to be some confusion about what Fastly Soft Purge is, when it is useful, and how to use it. This post will help clear this topic up. What is Fastly Soft Purge?In Varnish, to force a miss for an object in cache you have a couple of options
So the main difference with Fastly Soft Purge is that the object persists in cache, and can be used in a stale context. This can prove to be extremely useful. When is Fastly Soft Purge useful?I would say Fastly Soft Purge should be used in 99.99% of all purges. There are extremely limited situations in which I would recommend Fastly Instant Purge:
It boils down to making a whoopsie really, and I would imagine the vast majority of your purges should (hopefully) not fall into these categories. Having a stale object is cache is useful as it:
How to use Fastly Soft PurgeJust because you execute a purge to Fastly does not mean you will instantly get any benefit, you also need to combo this with some "Stale Content Options" to which I will go through. If you are using the Fastly Drupal module, Soft Purge is configured like so: And as for Stale Content Options, you need to ensure that both "Stale while revalidate" and "Stale if error" are enabled. These are some basic tuning for the values as well: If you are not using Drupal (or using the Acquia purge module), then you can always set the above HTTP headers manually. See the Fastly documentation on this. Wait, I want to learn moreIf you want to go deeper in Varnish (what powers Fastly), and how objects, TTL, stale and grace (stale-while-revalidate) are involved, please see their documentation. There is also this excellent graphic to which explains how an object goes from fresh to stale GotchasIf you use Fastly shielding (which you probably should), then there is the potential for soft purged content on the edge PoP to end up being re-cached as fresh ?. See the Fastly documentation on this. There is a VCL snippet to mitigate this: If you are not already using Fastly shielding, and you care about caching, and cache hit rates, you should really start to look at this. The benefits far outweigh the tiny edge cases. P.S. if you are not already using the Fastly purge auth snippet, get this installed ASAP. By not doing this, a bad actor is able to purge any single URL on your site, in an instant fashion. This could create a DoS. CommentsIf you have any other pro tips when it comes to soft purging in Fastly, please let me know. Originally from Drupal.org aggregator https://ift.tt/3EzkZ3Z
Today we are talking about Layout Builder vs Paragraphs. Topics
Nic Laflin - www.nLighteneddevelopment.com @nicxvan John Picozzi - www.epam.com @johnpicozzi Stephen Cross - @stephencross MOTWLinkit Linkit provides an easy interface for internal and external linking with wysiwyg editors by using an autocomplete field. Linkit has by default support for nodes, users, taxonomy terms, files, comments and basic support for all types of entities. Originally from Drupal.org aggregator https://ift.tt/32vc4U7
Popular Design News of the Week: December 20 2021 December 26 2021 https://t.co/WdSCth0Huh12/26/2021
2021 was an eventful year for the Drupal community. In April, we celebrated Drupal's 20th anniversary and participated in a month-long Drupal Fest. We also launched Discover Drupal and other initiatives to make Drupal more inclusive. We marked the end of life of Drupal 8 and the growth of Drupal 9 adoption with it. And as the Drupal Association launched Drupal's certification program, we saw the growing maturity of the Drupal ecosystem and solidifying of Drupal's role in the enterprise space. So if you slept through 2021 and want to know what you missed, here are the highlights! Celebrating Drupal's 20th AnniversaryOn January 15, 2001, Dries Buytaert released Drupal 1.0.0. What started as a project of an individual developer in a university dorm evolved into an innovative digital platform used by some of the biggest organizations around the world. Drupal's 20th anniversary was celebrated throughout 2021. In his blog, in January, Dries reminisced about the early days of Drupal and also shared three "birthday wishes" for the platform:
Fun fact: 2021 is also the 20th anniversary of Wikipedia and the 30th anniversary of both Linux and the World Wide Web. A big year for open source celebrations, indeed! Drupal 8 End of Life and the Easiest Upgrade EverWhen Drupal 8 was released in November 2015, it brought some high-impact changes and improvements. However, in November 2021, six years after its launch, Drupal 8 reached end of life. It means the Drupal community stopped supporting it with security updates, to leave more time to focus on improvements to Drupal 9. The good news is that upgrading to Drupal 9 is fairly straightforward. It's similar to a feature upgrade (like upgrading from Drupal 8.8 to 8.9), with a couple of extra steps. The upgrade documentation is available on Drupal.org. So if you haven't already upgraded, now is the best time to get started! A Big Year for Drupal 9 MigrationsSpeaking of Drupal 9, we at Evolving Web have worked on several large-scale Drupal 7 to 9 migrations since the release of Drupal 9 in June 2020. If you're still using Drupal 7, you should know that Drupal 9 offers some major improvements: a more streamlined user experience for content editors and administrators, an API-first approach, better multilingual functionality out-of-the-box, more built-in features for content modelling and site-building, improvements to accessibility, and a more sophisticated framework for caching to improve page-loading time. Drupal 9 also opens the door to many additional features that will be released in the near future. In 2021, Evolving Web led several successful Drupal 7 to 9 migration projects and supported teams taking on large-scale migrations themselves. One example is our collaboration with the University of Waterloo. We helped the university's web services team plan their migration of 950+ websites from D7 to D9. In 2021, our team built a set of migrations, which Waterloo U is using to systematically move the bulk of their web content to their new Drupal 9 platform. Like many universities, Waterloo is taking advantage of Drupal's Layout Builder to give their content editors more flexibility in building pages. Our work helped the university automatically migrate their content to Layout Builder without site owners having to recreate each page from scratch manually. In 2021, we solidified Evolving Web's remote training program. In addition to our public learning pathways, we also provided many teams with private Drupal training, emphasizing accelerating their migration to Drupal 9. For example, in early 2021, my talented colleagues Kevin Porras, Dharizza Espinach and Franz Vanderline put together a training program for McGill University's Web Service Group, giving them the skills and knowledge to migrate approximately 1,000 websites and 500,000 distinct pieces of content from Drupal 7 to Drupal 9. "We knew enough to know we had a significant challenge ahead to get up to speed from Drupal 7 to 9. That's why we looked for expert trainers, and now we're comfortable working with and migrating content to our Drupal 9 environments."- Matt Corks, Senior Web Developer Analyst with Information Technology Services, McGill University Drupal Events: Keeping the Community StrongAlthough the pandemic is still a challenge, 2021 included many opportunities for the Drupal community to connect and share. At DrupalCon North America, Dries shared his perspective on the future of Drupal and the roadmap for Drupal 10. The Evolving Web team was present at many community events: presenting, training, and contributing. We were able to attend events around the world since they were all virtual: DrupalCon Europe, Drupal GovCon in DC (where we discussed Drupal's role in the future of content management), MidCamp in Chicago and DrupalCamps in Costa Rica, Colorado, Oslo, and New York. We love having the chance to connect with so many Drupalers and to get various perspectives from people using Drupal in different ways and contexts. Drupal Also Means DiversityDiversity and inclusion were clearly important to the Drupal community in 2021. The community came together to hold the very first Drupal Diversity & Inclusion (DDI) Camp, hosted by Drupal Diversity & Inclusion (DDI). This team of Drupalists provides a safe space to discuss diversity and support underrepresented people in the tech industry. We also launched Discover Drupal, an initiative that provides training and mentoring to underrepresented people interested in starting a career in Drupal. It aims to remove some of the barriers the underrepresented students face when starting their careers in open source. Evolving Web is proud to be a founding training partner of Discover Drupal and is excited to see the program grow in 2022. We also helped create a community-led training curriculum for newcomers to Drupal. "Get Started with Drupal" training events were held at three Drupal camps, and the curriculum is available to anyone to use at their own events. Join the Drupal Event Organizers Slack to get help setting up a training at your next event. A Focus on AccessibilityAccessibility was another big topic for Drupal in 2021. Our team has had many conversations around building more accessible experiences with Drupal. We believe today's web designers and developers have a much clearer notion of what accessibility is about. As my colleague Firat Ikiler says, building accessibility through Drupal means not falling into the trap of blindly applying rules from some list of best practices. As more and more projects require to be accessible and Drupal supports better accessibility out-of-the-box, the community as a whole is better equipped to deliver accessible experiences than ever before. You can learn more about how Drupal helps you build accessible websites from this presentation at DrupalCamp Colorado. Promote Drupal: The Power of the BrandWhile Drupal has been very successful as a platform and a community, it's also a global brand with a diverse set of ambassadors around the world who use and support Drupal every day. However, there are some distinct challenges to building a brand for an open source project. Promote Drupal is an initiative that aims at growing Drupal's adoption and creating better marketing materials for decision-makers. This year, our group focused on creating personas for Drupal evaluators based on user research and creating targeted materials for Drupal.org that demonstrate the benefits for Drupal to these distinct groups of users. We also started creating more material about Drupal's strategic initiatives to better communicate the innovative features on the roadmap for Drupal 9 and 10. Watch out to see the results of this work on Drupal.org in 2022! Promote Drupal is always looking for new volunteers. So if you're a marketer, designer, or writer who loves Drupal, get in touch so we can start collaborating. What's Coming Up in the New Year?The most important event for Drupal in 2022 will be Drupal 7's end of life in November. We know that many organizations plan to migrate from Drupal 7 to Drupal 9. And with Drupal 7 behind us, future versions of Drupal will become less critical, and we'll see a greater emphasis on continuous improvement through feature releases. With that said, the launch of Drupal 10 is currently planned for June. According to Dries Buytaert, upgrading from Drupal 9 to 10 will follow the same "easy upgrade" approach we saw for upgrading from Drupal 8 to 9. In 2022, we expect to see major developments in new features in Drupal core, including Automatic Updates, Decoupled Menus, and continued improvement to the Drupal admin UI. We're excited about Drupal's new default theme Olivero and the great impression it will make on first-time Drupal users. Finally, we can't wait to see our fellow Drupalers at DrupalCon North America next April. We'll be offering our Migrations training there, and I'll be presenting on the Future of content management and using Drupal as a content strategy platform. Assuming that the pandemic doesn't alter our plans, we hope to get a chance to see you there in person. We look forward to contributing to Drupal in 2022 and wish you all the best for the new year! ?? Need support to migrate your website to Drupal 9? Download our D9 migration eBook now! + more awesome articles by Evolving Web Originally from Drupal.org aggregator https://ift.tt/3yX5npD |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
April 2023
Categories |