Keyword

Removing hyperlink from "Author Alias" field

More
10 years 9 months ago #122223 by John
Hi everyone,

First time here so apologies if this has already been answered. When I create a new article, I fill out the author's name in the "Author Alias" field of the Author publishing status section, and for some reason it hyperlinks the name on the website. The hyperlink just takes you to back to the homepage. So how do I remove the hyperlink?

I've included an attachment to specify the section I am referring to.

Thanks
Attachments:

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #122224 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Removing hyperlink from "Author Alias" field
Hello John,

This sounds like an issue with your overrides.

Eg. in item.php the code should be:
<?php if($this->item->params->get('itemAuthor')): ?>
				<!-- Item Author -->
				<span class="itemAuthor sideItemBlock">
					<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>&nbsp;
					<?php if(empty($this->item->created_by_alias)): ?>
					<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
					<?php else: ?>
					<?php echo $this->item->author->name; ?>
					<?php endif; ?>
				</span>
				<?php endif; ?>

Make sure you are not missing the alias check (<?php if(empty($this->item->created_by_alias)): ?>)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #122225 by John
Hi Krikor,

Thanks for this. I'll have one of the web developers take a look at it, and hopefully this will solve our issue.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum