Widgets in HTML Object
Autor: Andre Doman
Visitado 1906,
Followers 1,
Compartido 0
When I use the html object, according to the help, there are widgets that I can use eg. login. I do not see that in the odject.
Where do I find these widgets.
I would like to display the detail of the person that logged in in the heading.
Thanks
Andre
Publicado en
Hi André,
thank you for your message.
Please find the Login & Logout Object: https://market.websitex5.com/en/objects/live-preview/331c1bf7-12ef-43d8-b329-352d615dfec
Please let me know if I can be of further help. Kind regards.
Autor
Thanks for the feedback. I am using this already. What I would like to do is to display the user that is logged in on a page or in the header.
Thanks for the support.
Helo André
Unfortunatly there is no widget that show's you the logged in name of the person that has logged in.
It is a nice IDEA, so maybe create an IDEA post for Incomedia to create such an object?
You can find all objects in step4 pages, then top right manage, update the next screen and you will find all widget's. After closing the management screen you can filter with the pulldown top right after you have installed the widget in the management screen ou can find these then.
The widgets in the html object have moved to the above mentionend place and are already a long time gone from the html object.
see also: http://help.websitex5.com/en/v16/pro/gestione_oggetti.htm
Best Regards,
André
Il codice è questo.
<?php
$qblog = $_SERVER['PHP_SELF'];
if (strpos($qblog, '/blog/') !== false || strpos($qblog, '/cart/') !== false)
$qpath = '../';
else
$qpath = '';
require_once($qpath . "res/x5engine.php");
$pa = Configuration::getPrivateArea();
$user = $pa->whoIsLogged();
if ($user)
echo "Benvenuto <b>".$user['realname']."</b>";
?>
Lo inserisci dove vuoi che si veda il nome, in oggetto html. Essendo codice Php le pagine che lo contengono devono essere php. Se lo metti nell'header tutto il sito deve essere con pagine solo pop.
ciao
Autor
Thanks to all.