- Posts: 10
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Adding author name to more... container in category view (links count)
Adding author name to more... container in category view (links count)
- Chris Rowinski
-
Topic Author
- Offline
- New Member
Less
More
14 years 2 months ago #93859
by Chris Rowinski
Adding author name to more... container in category view (links count) was created by Chris Rowinski
Subject says it all, trying to add the authors name to the links count in category view. I've set 20 links to appear below the Leading, Primary and Secondary articles.
The links only contain the article title though... Anyone know how to add an author right next to the article title there?
Thanks!
The links only contain the article title though... Anyone know how to add an author right next to the article title there?
Thanks!
Please Log in or Create an account to join the conversation.
- Chris Rowinski
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
14 years 2 months ago #93860
by Chris Rowinski
Replied by Chris Rowinski on topic Adding author name to more... container in category view (links count)
anyone?
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
Less
More
- Posts: 198
14 years 2 months ago #93861
by Terry Britton
Replied by Terry Britton on topic Adding author name to more... container in category view (links count)
In the backend in item view options under the appropriate category set author to show. I don't use that layout, but should work.
Please Log in or Create an account to join the conversation.
- Chris Rowinski
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
14 years 2 months ago #93862
by Chris Rowinski
Replied by Chris Rowinski on topic Adding author name to more... container in category view (links count)
thanks Terry, unfortunately, the backend doesn't have any options for the links that are displayed beneath the item category view...
Please Log in or Create an account to join the conversation.
- Terry Britton
-
- Offline
- Elite Member
Less
More
- Posts: 198
14 years 2 months ago #93863
by Terry Britton
Replied by Terry Britton on topic Adding author name to more... container in category view (links count)
In category_items_links.php right after the closing </h3> add the following:
<?php echo $this->item->author->username; ?>
or
<?php echo $this->item->author->name; ?>
depending on the format you want.
<?php echo $this->item->author->username; ?>
or
<?php echo $this->item->author->name; ?>
depending on the format you want.
Please Log in or Create an account to join the conversation.
- Chris Rowinski
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
14 years 2 months ago #93864
by Chris Rowinski
Replied by Chris Rowinski on topic Adding author name to more... container in category view (links count)
thanks Terry! worked like a charm, much appreciated!
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Adding author name to more... container in category view (links count)