Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to show a header message for datatables #12146

Merged
merged 3 commits into from Oct 4, 2017

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 3, 2017

As a plugin developer it would be useful to be able to configure a message that should be shown above a datatable. Current configuration only allows to define a message to be shown below in the footer.

As datatables can be quite long (e.g. when chosen to display > 25 entries) the footer message might not visible at first glance.

@sgiehl sgiehl added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Needs Review PRs that need a code review labels Oct 3, 2017
@sgiehl sgiehl added this to the 3.2.0 milestone Oct 3, 2017
@@ -363,6 +363,11 @@ class Config
public $show_ecommerce = false;

/**
* Stores an HTML message (if any) to display above the datatable view.
*/
public $show_header_message = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a little message to show_header_message and show_footer_message that content needs to be escaped properly as both print it raw?

Be also good to have this in developer changelog

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done :)

@tsteur
Copy link
Member

tsteur commented Oct 3, 2017

Looks good to merge if tests look alright.

@sgiehl sgiehl merged commit fc0f1e7 into 3.x-dev Oct 4, 2017
@sgiehl sgiehl deleted the dtheadermessage branch October 4, 2017 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants