Display FE Message
Since L* 7.4.0 the L*frontend (-class) holds a static method to display any messages/warnings/whatever in the frontend.
This documentation may not be accurate
To customize the layout you can place a copy of
~/upload/templates/lepsem/templates/message.lte
inside the root of the frontend-template e.g.:
~/upload/templates/your_frontend-template/frontend/core/message.lte
You can use other names as "message.lte" (default) inside the method; see line 16 below the following.
Params - call
- /**
- * @param string $sType The css-'class' type off the message: success, error, positiv, whatever.
- * @param array|string $sMessage Any Message array | string.
- * @param string $sRedirect Any redirect (URL), mostly the current page itself.
- * @param int $iRedirectTime The redirect time. Keep in mind that this are js-milliseconds!
- * 3000 are 3 sec! A value like -1 means no timeout; stand still.
- * @param string $sTemplateName Any name of the .lte file in folder DEFAULT_TEMPLATE."/frontend/core/
- *
- */
- displayFEMessage(
- string $sType ="success",
- array|string $aMessage=[],
- string $sRedirect="",
- int $iRedirectTime = -1,
- string $sTemplateName = "message.lte"
- );
See also
Marker (since L* 7.2.0)
last edit: 07. Apr 2025 CEST 21:09:09
LEPTON_frontend::displayFEMessage
Display a (separate) message in the frontend.
// example given
$aMessage = ['header','text1']
LEPTON_frontend::displayFEMessage(
"success", // Type, e.g. 'error', 'warning', 'notice' ...
$aMessage, // Array within the text
LEPTON_URL."/page/start.php", // redirect url
5000, // in milliseconds (js)! 5000 means 5 sec.; -1 means: stand still
"message_custom.lte" // A custom *.lte file
);
last edit: 07. Apr 2025 CEST 21:00:50