feel free to keep it strictly simple...

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

  1. /**
  2. * @param string $sType The css-'class' type off the message: success, error, positiv, whatever.
  3. * @param array|string $sMessage Any Message array | string.
  4. * @param string $sRedirect Any redirect (URL), mostly the current page itself.
  5. * @param int $iRedirectTime The redirect time. Keep in mind that this are js-milliseconds!
  6. * 3000 are 3 sec! A value like -1 means no timeout; stand still.
  7. * @param string $sTemplateName Any name of the .lte file in folder DEFAULT_TEMPLATE."/frontend/core/
  8. *
  9. */
  10. displayFEMessage(
  11. string $sType ="success",
  12. array|string $aMessage=[],
  13. string $sRedirect="",
  14. int $iRedirectTime = -1,
  15. string $sTemplateName = "message.lte"
  16. );
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