Skip to content

Consider adding a new property type "asset" or "asset_url" #215

@michael

Description

@michael

E.g. this would apply for the image node type in editable website.

https://github.com/michael/editable-website/blob/main/src/routes/create_session.js#L210-L222

Question is if this concept should be introduced in svedit or if its rather app-land. we just need a way to figure out which nodes are referencing assets. so we can track which asset is referenced where and when orphaned assets can be safely deleted.

Maybe it's more flexible to add "asset" as a possible property type. like the "src" attribute of image would be of type asset, because it points to a file. then we could reuse that mechanism for other files like mp3s or pdfs etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions