0.x
  • User Guide
  • Developer Guide
  • Cookbooks
  • Best Practices
  • Reference
    • Modules
    • Actions
      • Actions
      • Admin
      • Modules (Admin)
      • Backup
      • Config
      • Development
      • Dialogs
      • DOM Elements
      • Editor
      • Events
      • Forms
      • JavaScript
      • Log
      • Mailing list
      • Notifications
      • Page handling
      • Predicates and Connections
        • dialog_predicate_new
        • link
        • unlink
      • Resources
      • Search
      • Sessions
      • Signals
      • Templates
      • User
    • Controllers
    • All dispatch rules
    • Filters
    • Models
    • Services
    • Builtin Tags
    • Custom Tags
    • Validators
    • Directory structure
    • Icons
    • Notifications
    • Installation requirements
    • Global configuration
    • Site configuration
    • The Status site
    • Command-line
    • Transport
    • Troubleshooting
    • EDoc reference
  • Glossary
Zotonic
  • Docs »
  • Reference »
  • Actions »
  • Predicates and Connections »
  • link
  • Edit on GitHub

link¶

  • Module: mod_admin

Add an edge between two resources. Used in the admin.

The edge is selected with either:

  • the argument edge_id
  • the arguments subject_id, predicate, object_id

For instance:

{% button
    text="Add"
    class="btn"
    action={
        link
        subject_id=id
        predicate="contains"
        object_id=other_id
        action={
            reload
        }
    }
%}

Other arguments:

  • element_id
  • edge_template
  • action - actions executed after linking

See also

unlink

Todo

Extend documentation

Next Previous

© Copyright 2009–2017, The Zotonic Project (zotonic.com). Revision 5a5a6ce5.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: 0.x
Versions
latest
stable
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.