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.4.0 documentation
djangocms-frontend 2.4.0 documentation
  • Getting Started
    • Installation and Usage with Built-In Components
    • Simplified Component Creation with Templates
    • Building Custom Components With Form Classes
  • 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
    • Creating Components with Slots
    • 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
    • Settings
    • Models
    • Form widgets
    • Template filters
    • Template tags
    • Management commands
    • Running Tests
  • 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