What about trying the function you used twice? The inner function must be parsed first...
Code:
<?php echo $this->replaceInsertTags('{{insert_article::' . $this->replaceInsertTags('{{user::username}}') . '}}'); ?>
I'm assuming the page you show the content on is protected, so a user will always be logged in? In that case a more memory/time efficient way would be:
Code:
<?php
$this->import('FrontendUser');
echo $this->replaceInsertTags('{{insert_article::' . $this->FrontendUser->username . '}}');
?>
Or even more efficient:
Code:
<?php
$this->import('FrontendUser');
echo $this->replaceInsertTags(ltrim($this->getArticle($this->FrontendUser->username, false, true)));
It doesn't matter where you put this code, either in the template or the php file. Both are parsed as php.
ps, I'm unable to test if the code is correct atm... Please let me know if you had any trouble, or success!
Bookmarks