Content: Blog

Release, Addons

Better Links in django CMS: Announcing django CMS Link 5.0

Fabian Braun

Nov. 20, 2024

We're thrilled to share the release of django CMS Link 5.0, a significant milestone that introduces a set of new features and improvements. Whether you're a developer looking for enhanced flexibility or a content editor searching for a smoother workflow, django CMS Link 5.0 delivers.

What’s New in django CMS Link 5.0?

Linkable Models: Smart, Flexible, and Customizable

With django CMS Link 5.0, linking to internal models has never been easier. By default, the plugin can automatically detect Django models that support internal links. Here's how it works:  

  • django CMS Page objects are regular link targets as you are used to, ensuring seamless integration
  • Other models are linkable if they have a registered admin with a search_fields attribute and a get_absolute_url() method to generate the URL for each instance.
  • By default, django CMS auto-detects all linkable models of a project. Prefer manual control? Use the DJANGOCMS_LINKABLE_MODELS setting to explicitly define linkable models.

This flexibility empowers developers to integrate links into virtually any model with minimal setup.  

Re-Usable Link Fields: A New Era of Simplicity

Version 5 introduces a reusable link field, form field, and widget, revolutionizing the way links are added in models and forms. The reusable widget simplifies the interface, allowing users to focus on adding links without unnecessary complications like a deviating user interface.  

Multi-Site Management Made Easy

Handling links in multi-site environments can be tricky, but django CMS Link 5.0 addresses this challenge. Site selectors are available for installs with more than one site. By avoiding redundant hostnames for URLs outside page placeholders such as aliases, you get cleaner, more accurate links.

Powerful internal API

A reusable endpoint now enables querying for available links, making integration with other apps a breeze. As a start, djangocms-text will offer the same links for its dynamic link feature both in text plugins and HTML fields.

Why Upgrade?

django CMS Link 5.0 is more than a plugin update—it’s a complete reimagination of how links are managed in django CMS. It emphasizes flexibility, compatibility, and ease of use, empowering developers and editors alike. 

Ready to upgrade? Visit the django CMS Link GitHub repository for full details, migration instructions, and more.  

Upgrade to django CMS Link 5.0 today and experience a new standard in content linking.

blog comments powered by Disqus

Do you want to test django CMS?

Try django CMS