Wie gebe ich einen Benutzer, der sich zuvor angemeldet hat, so wie er im ACI user-Folder eingetragen ist, aus
Ich möchte auf einem Begrüßungsbildschirm dann da stehen haben
Willkommen Boonody, es ist ***** Uhr
Danke

Hi!BoOnOdY hat geschrieben:Willkommen Boonody, es ist ***** Uhr
Code: Alles auswählen
<h3>Variante 1</h3>
<p tal:condition="python: user.getUserName() == 'Anonymous User'">
Willkommen, es ist <strong tal:content="python: DateTime().strftime('%H:%M:%S')">[uhrzeit]</strong> Uhr.
</p>
<p tal:condition="python: user.getUserName() != 'Anonymous User'">
Willkommen <tal:user tal:replace="python: user.getUserName().title()">[user]</tal:user>,
es ist <strong tal:content="python: DateTime().strftime('%H:%M:%S')">[uhrzeit]</strong> Uhr.
</p>
<h3>Variante 2</h3>
<p tal:define="username user/getUserName;
username python: test(username == 'Anonymous User', '', ' ' + username.title())"
>
Willkommen<span tal:replace="username">[user]</span>,
es ist <strong tal:content="python: DateTime().strftime('%H:%M:%S')">[uhrzeit]</strong> Uhr.
</p>
Hi!BoOnOdY hat geschrieben:nicht auch in eine DMTL Variable...