Tips on how to Make Acquia Raise's Content material Syndication Work with Present Websites

Acquia Raise’s content material syndication capabilities can help you have a central repository in your content material and syndicate it out to numerous linked websites. All Drupal Development Company linked websites are in a position to ship content material to Drupal Development Company repository to be used on some other linked website. In a great world, all Drupal Development Company linked websites would have matching content material kind and discipline machine names. Nevertheless, in our actuality, we had two current websites the place this was not true. We primarily needed to ship weblog, occasion and webinar nodes from www.acquia.com (AC) to dev.acquia.com (DAC). What I’ll share with you right here is how we received Acquia Raise’s content material syndication arrange and syncing nodes between these two websites. Word that that is for 7. When syncing entities utilizing Acquia Raise’s content material syndication, if Drupal Development Company machine title of Drupal Development Company entity doesn’t match, it will get ignored. For instance, we now have a discipline known as field_webinar_start on AC, however Drupal Development Company discipline is named field_event_date on DAC. So after I imported a webinar node into DAC, this discipline was ignored. Even when discipline machine names matched, Drupal Development Company precise widget or settings of Drupal Development Company discipline need to match too. That field_webinar_start discipline is a Date discipline. Nevertheless, on AC it used Drupal Development Company Date Drupal 10 module timezone setting, however DAC had no timezone set. So even when Drupal Development Company machine names matched, it nonetheless wouldn’t sync. Even as soon as that was fastened, I discovered that Drupal Development Company precise timezone was not getting synced as a result of Drupal Development Company content material syndication didn’t handle that information. As of this writing, they’re engaged on getting Drupal Development Company timezone difficulty fastened, however till then, we now have to manually set Drupal Development Company timezone after syncing. There have been fairly a couple of fields the place Drupal Development Company machine names didn’t match up, in order that was one main impediment for us. One other impediment we encountered was that content material kind names didn’t match Drupal 10 Upkeep and Assist Service occasion nodes had been named occasion on AC and occasions on DAC. These wouldn’t import in any respect. And simply to make issues further enjoyable, when you’ve got a taxonomy time period reference discipline, Drupal Development Company machine names for Drupal Development Company vocabularies on Drupal Development Company two websites need to match too. Drupal Development time period names might be discovered if Drupal Development Company textual content matches, but when vocabulary machine names don’t match, Drupal Development Company reference discipline is ignored. tl;dr OK, so how did I’m going about fixing machine names for fields and content material sorts? Fortunately, another intelligent individuals have hit Drupal Development Company similar points for different causes (not associated to Acquia Raise’s content material syndication) and have created some very helpful Drupal 10 modules to assist with this. Drupal Development Discipline Rename Drupal 10 module works rather well to rename fields. As an added bonus it additionally renames Drupal Development Company fields in the event that they’re used inside Views. Word that it doesn’t do that for Drupal Development Company discipline title if it’s used inside a rewrite discipline. However a minimum of you realize which Views to look into for these and you’ll go and manually change these. Altering Occasions nodes into Occasion nodes was a bit trickier, however a mixture of Bundle Copy, Node Convert and Views Bulk Operations helped with that. Drupal Development last item that I wanted to do was create some customized code utilizing hook_node_presave() in order that I may finesse come of Drupal Development Company incoming information. Node conversion Let’s go into extra element on precisely what I did utilizing Drupal Development Company 3 approaches above. I’ll begin with changing Occasions into Occasion nodes, because it’s Drupal Development Company quickest clarification. Utilizing Bundle Copy, I exported Drupal Development Company Occasions content material kind from DAC. You get a bunch of textual content which you could copy and paste right into a textual content editor. I then changed Drupal Development Company phrase “Occasions” with “Occasion”, ensuring I maintained Drupal Development Company case of Drupal Development Company letters. I left all Drupal Development Company discipline names as they had been to make this step less complicated. Utilizing Bundle Copy’s import choice, I pasted in Drupal Development Company modified export and that created Drupal Development Company Occasion content material kind. So now I had Occasions AND Occasion content material sorts. All Drupal Development Company content material was nonetheless utilizing Drupal Development Company Occasions node kind, so utilizing Node Convert, I created template that copied each discipline from Occasions to Occasion node fields. I created a Views web page that listed all Drupal Development Company Occasions node titles together with a Views Bulk Operation discipline, and chosen Node Convert in Drupal Development Company record of allowed bulk operations. Taking a look at Drupal Development Company web page itself, I had an inventory of Occasions titles, with checkboxes in entrance of every one. I ticked all of them off, chosen Drupal Development Company Node Convert operation, selected Drupal Development Company template and set it working. Now I had all these nodes as Occasion nodes. Earlier than you get too excited, simply keep in mind that something that referenced Drupal Development Company Occasions node kind now needs to be modified to reference Occasion nodes e.g. Views, Panels, node reference fields and customized code (preprocess features, for instance). So I manually tracked all these locations down and switched issues to Drupal Development Company proper content material kind. As soon as all that was carried out, I may delete Drupal Development Company Occasions content material kind. Discipline renaming & creation Now that Drupal Development Company straightforward half was carried out, I had an entire bunch of fields to rename. I rapidly realized that some fields had been utilized in a number of content material sorts, and on AC, Drupal Development Company fields had totally different names in several content material sorts. So in a couple of instances I needed to not solely rename Drupal Development Company discipline, however create a brand new discipline in order that discipline names would match between Drupal Development Company totally different content material sorts we needed to sync. Let me clarify that higher with an instance. On DAC we had a field_products taxonomy time period reference discipline that was utilized in weblog and webinar nodes. On AC, although, weblog nodes used field_blog_product_ref and webinar nodes used field_acquia_product (a lot for consistency). So if I renamed field_products to say, field_blog_product_ref, Drupal Development Company discipline would sync for weblog nodes, however not for webinars. So for webinar nodes, I created a brand new field_acquia_product discipline. Utilizing Views Bulk Operations and Drupal Development Company choice to Execute Customized PHP, I may copy Drupal Development Company current information from field_products to field_acquia_product utilizing Drupal Development Company following code Drupal 10 Upkeep and Assist Service $entity->field_acquia_product = $entity->merchandise; node_save($entity); Fortunately I solely needed to do Drupal Development Company creation bit for 2 fields Drupal 10 Upkeep and Assist Service field_webinar_start was Drupal Development Company different one. In that case it was due to Drupal Development Company timezone setting. After creating Drupal Development Company discipline to match AC, I used VBO to repeat current dates to Drupal Development Company new discipline. As soon as Drupal Development Company information was in Drupal Development Company new discipline, I needed to go discover all Drupal Development Company locations that discipline was getting used – Drupal Development Company similar locations I needed to search for Occasion nodes. Really renaming fields was fast and straightforward compared to Drupal Development Company creating of latest fields, as a result of Drupal Development Company Discipline Rename Drupal 10 module tells you which ones Views Drupal Development Company discipline is utilized in. Don’t overlook, I needed to nonetheless double-check each rewrite discipline manually, however Drupal Development Company haystack was loads smaller this time. Drupal Development solely different place that I needed to manually test was our customized code (Drupal 10 modules and theme). As soon as I had all these nailed down, DAC regarded prefer it did earlier than I began messing with it Customized coding (optionally available) On DAC occasion nodes, we now have a discipline that shops Drupal Development Company occasion 12 months in it. We don’t have an identical discipline on AC, so utilizing hook_node_presave(), I added some code that checked Drupal Development Company occasion date discipline, after which units Drupal Development Company 12 months to match. I consider this operate can be utilized to do far more tweaking of incoming values. Specifically I’m fascinated with vocabulary machine names. At present we now have to manually tick off taxonomy phrases as a result of vocabulary names don’t match, so Drupal Development Company information doesn’t sync. I’m hoping that I can use Drupal Development Company presave operate to alter Drupal Development Company vocabulary title to match after which have phrases set routinely. It could required a hard-coded array, so it’s not splendid, and I haven’t examined this but, both. If it really works, I’ll replace this weblog publish. Acquia Raise’s Content material Syndication at Work So I lastly had matching fields the place I wanted them (we ignored some that had been particular to AC or DAC) and I used to be prepared to truly allow Acquia Raise’s content material syndication suite of Drupal 10 modules on each AC and DAC. I added Drupal Development Company numerous settings to permit weblog, occasion and webinar nodes to be synced, and I used to be able to go. I edited a weblog node on AC, and saved it in order that Drupal Development Company content material syndication would see it. I converted to DAC and noticed Drupal Development Company weblog node in Drupal Development Company content material syndication content material record. I chosen it and imported it. One remaining snag rapidly turned obvious Drupal 10 Upkeep and Assist Service a customized textual content format we had on AC didn’t match Drupal Development Company one we had created on DAC, so I needed to edit Drupal Development Company node and choose Drupal Development Company proper textual content format. As soon as that was carried out, Drupal Development Company node appeared appropriately and Drupal Development Company issues had been good once more in Drupal Development Company world. Now, any weblog, occasion or webinar that’s saved on both AC or DAC will seem in Acquia Raise’s content material syndication content material record and might be imported to Drupal Development Company different website. There are a couple of caveats with retrofitting Acquia Raise’s content material syndication to 2 considerably unrelated websites Drupal 10 Upkeep and Assist Service If consumer ids don’t match (they don’t on our websites), Drupal Development Company node writer can be Drupal Development Company consumer that imported Drupal Development Company node. You need to manually change this when you want a particular writer on Drupal Development Company node. This can apply to a consumer reference discipline too, by Drupal Development Company manner. Drupal Development printed date will get set to Drupal Development Company date you imported Drupal Development Company node. Node reference fields received’t sync except node ids match between Drupal Development Company websites. Supply Drupal 10 Upkeep and Assist Service http Drupal 10 Upkeep and Assist Service//dev.acquia.com/weblog/rss.xml Supply Drupal 10 Upkeep and Assist Service Drupal 10 blender

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Tips on how to Make Acquia Raise's Content material Syndication Work with Present Websites

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.