vanessa_adabra Posted June 15, 2022 Share Posted June 15, 2022 Hi, I have created an app that at the moment is private and shared through a zip file for testing purposes. What I want to do is to add an alert div before the configuration form (see example screenshot). The issue is that I am not finding any documentation regarding the different elements I can add to the page. Do you have any recommendations? Link to comment Share on other sites More sharing options...
knacky Posted June 16, 2022 Share Posted June 16, 2022 (edited) And where is the problem? You have a function for displaying content, the form getContent (). Add your own div to this feature. https://devdocs.prestashop.com/1.7/modules/creation/adding-configuration-page/ public function getContent() { $output = ''; $output .= '<div class="alert alert-danger" role="alert">'.$this->l('here is top alert message').'<div>'; return $output . $this->displayForm(); } Edited June 16, 2022 by knacky (see edit history) Link to comment Share on other sites More sharing options...
vanessa_adabra Posted June 16, 2022 Author Share Posted June 16, 2022 (edited) I found a workaround to add the feature I need directly in the configure file. Edited June 16, 2022 by vanessa_adabra rephrasing (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now