Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
djangocms-frontend 2.1.0 documentation
djangocms-frontend 2.1.0 documentation
  • Getting Started
    • Using Built-In Bootstrap 5 Components
    • Building Template Components
    • Building Custom Frontend Components
  • Built-in Components
    • Common plugin settings
    • Grid plugins
    • Pre-built component plugins
    • Headings and table of contents
  • How-to guides
    • How to use frontend plugins as components in templates
    • How to Use Inline Editing with Custom Frontend Components
    • How to add your own frontend plugin
    • How to extend built-in components
    • How to add the tab editing style to your custom plugins
    • How to create a theme app
    • Migrating from djangocms-bootstrap4
    • How to migrate other plugin packages
    • How to add internal link targets outside the CMS
  • Reference
  • Index
Back to top
View this page

How to add internal link targets outside the CMSΒΆ

As of version 2 of djangocms-frontend, the link/button plugin builds upon the LinkFormField of djangocms-link. djangocms-link uses Django admin to autodetect linkable models. This means that any model that has a get_absolute_url() method and a search_fields attribute in its ModelAdmin will be available as an internal link target.

The DJANGOCMS_FRONTEND_LINK_MODELS setting in djangocms-frontend before version 2 does not have any effect anymore.

See the README file of djangocms-link for more information.

Next
Reference
Previous
How to migrate other plugin packages
Copyright ©
Made with Sphinx and @pradyunsg's Furo