Skip to content

Create a before_render() method for panels? #3

@cahna

Description

@cahna

luminary.panels.ngx and luminary.panels.db hack around the include_helper(...) method to provide what essentially amounts to behavior that could be more-elegantly provided in a before_render() method built into luminary.panels.base.

So far, this has only been used to fetch some type of data to be set as the panel's subtitle. Are there any other reasons to implement a before_render panel method? Should title and subtitle be implemented as methods instead (that way actions can be taken to dynamically set (sub)titles)? Or titles/subtitles could be allowed to be either a string or function, and behavior could be determined by type? Think on this...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions