What I'm trying to achieve is to have a module in the frontpage that
will list the authors alongside their bio's, and linked to their latest
article. I have set a special category that holds all the articles, and that category is what I set K2 module to display from.So, I'm trying to display, additionally to what it is displaying by default, within the K2 module the Author's description (or bio) as it appears on the user.php template page. I thought it would be as easy as copying from user.php the following relevant code into the K2 module template:$user = &JFactory::getUser();<?php if ($this->params->get('userDescription') && isset($this->user->profile->description)): ?> <p class="userDescription"><?php echo $this->user->profile->description; ?></p> <?php endif; ?>But end up with nothing. Does anyone have any idea or guidelines that can help me achieve this?Thank you!
will list the authors alongside their bio's, and linked to their latest
article. I have set a special category that holds all the articles, and that category is what I set K2 module to display from.So, I'm trying to display, additionally to what it is displaying by default, within the K2 module the Author's description (or bio) as it appears on the user.php template page. I thought it would be as easy as copying from user.php the following relevant code into the K2 module template:$user = &JFactory::getUser();<?php if ($this->params->get('userDescription') && isset($this->user->profile->description)): ?> <p class="userDescription"><?php echo $this->user->profile->description; ?></p> <?php endif; ?>But end up with nothing. Does anyone have any idea or guidelines that can help me achieve this?Thank you!