Skip to content
Tech Suppo
Menu
  • News
  • Review
  • Blog
Menu

How to implement ENT in your radio RSS feed

Posted on August 26, 2021

After a few nights, I have successfully implemented the Easy News Topics (ENT) tags in my Radio Userland RSS feed. It wasn’t as easy as I thought it would be. It involved rummaging through my blog’s Radio.root file and improving my skills in UserTalk, Radio Userland’s programming language. But mostly I leaned on the shoulders of giants to do this, Dave Winer and Matt Mower in particular.

ENT is an extension of the RSS2.0 specification. Its objective is to allow the categorization of RSS elements in topics. After reading about ENT and writing one of my first articles on RSS topics, I decided that I wanted to implement ENT in my weblog. After an initial search, I came across an article by Dave Winer called “How to Extend the Radio RSS Generator.” This introduced me to 3 new “callbacks” that allow radio developers to modify their RSS feeds. The callbacks are: writeRssNamespace, writeRssChannelElement, writeRssItemElement. The first one that I implemented successfully was the namespace. I did this as follows:

YOU CAN ALSO READ:   Windows 11 adjusts display refresh rate to conserve laptop battery

1. Open your Radio.root.2 file. Dig into user.radio.callbacks. 3. Double click on writeRssNamespace, then rename “item # 1” to “ent.” 4. Enter the linked script here 5. Click “Compile.”

That was relatively easy. The implementation of the element elements turned out to be more complicated, particularly since the elements have attributes and are nested. It took me a while to get familiar with the UserTalk syntax, not being a programmer by trade. I stumbled a bit and got to a point where I almost had the script right. Then I came across Matt Mower’s conversation with Dave Winer and things finally fell into place. Here is my code for the writeRssItemElement script, the same process as above.

But wait, there is more. Because ENT tags are nested, there is one more part of the script you need to perform: modifying writeRssFile. But thankfully Matt Mower, one of the ENT authors, has already done the work – right-click here to download the script. Open it in your Radio app and it will automatically save to Radio.root’s workspace. Then you need to copy it to the following location:system.verbs.builtins.radio.weblog.writeRssfile

YOU CAN ALSO READ:   How to safely install Windows 11 inside Windows 10 using Hyper-V virtualization

By the way, as a side note, writeRssfile is just one of the many very clever scripts built into Radio. It’s amazing how much data is on Radio.root, once you’ve skimmed it. It’s a testament to the amount of work Dave Winer must have put into building Radio Userland, so I sympathize with his recent posts about paid software developers.

Anyway, that’s basically it for ENT implementation stage 1 in my Radio RSS feed. Stage 2 is to put some worthwhile data in my theme tags; I currently only have dummy data there. Ideally, I want to dynamically generate a topic word or phrase for each weblog post, based on the post content and / or title. But I guess this is where k-collector comes in. So that’s my next project, finding out about k-collector and putting some meaningful data in my shiny new ENT tags 🙂

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Huawei introduced the TalkBand B7 bracelet with a removable screen that turns into a Bluetooth headset
  • Geely has announced the Boyue Cool crossover to replace the Atlas. Full debut in April
  • Huawei FreeBuds 5 Headphones with Hybrid Noise Canceling and Spatial Sound unveiled
  • Huawei introduced the MatePad 11 (2023) tablet with a twist – a special version with frosted glass
  • Chery introduced the Arrizo 8 sedan in Russia. On sale this year
  • Huawei P60 Flagship Series Gets Innovative Cameras and Two-Way Satellite Communication
  • small weight and thickness, satellite communication and up to 1 TB of memory
  • Huawei Watch Ultimate unveiled, perfect competitor to Apple Watch Ultra
  • WhatsApp has released a new application for Windows: with video calls and faster downloads
  • Russia has developed a system to search for people, animals and vehicles from the air




Credits

  • Contact Us
  • CCPA
  • DMCA
  • Privacy Policy
  • Terms of Use
©2023 Tech Suppo | Design: Newspaperly WordPress Theme
Go to mobile version