Search
Other Content Templater questions
Forum

Name of user

Marco van Bergeijk's Avatar Marco van Bergeijk
Hello,

I use Joomla as a portal for associations. When a user creates an article, a template is loaded that the user then completes and saves. I would like each article to begin with "Dear [first name]. In place of first name, I would like the (first) name of the logged in user to be displayed when reading the article. Is this possible?

Thanks,
Marco
Peter van Westen's Avatar Peter van Westen ADMIN
If this is something you want on every single article, I would recommend you place this in a template override for the article view. So leave it out of the article content itself.

You could even see if your template supports a module position above the article content (or create it). And then place this dynamic text in a module using php via Sourcerer, for instance.
Please post a rating at the Joomla! Extensions Directory
Marco van Bergeijk's Avatar Marco van Bergeijk
Thanks! Do I need the paid version of Sourcerer the realise this?
Peter van Westen's Avatar Peter van Westen ADMIN
No, you can do this with the free version.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription