- Posts: 15920
COMMUNITY FORUM
Display Extra Fields in 2nd & 3rd column of table
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
11 years 4 months ago - 11 years 3 months ago #115524
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Display Extra Fields in 2nd & 3rd column of table
<?php if(isset($this->item->extraFields->EXTRAFIELDALIASHERE->value)): ?>
This line tells to execute the code after that if there is an extrafield So i would put the author profile in that check.
PS. the link for the author and the name of the author is
This line tells to execute the code after that if there is an extrafield So i would put the author profile in that check.
PS. the link for the author and the name of the author is
<?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; ?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Justin Place
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 69
11 years 4 months ago #115525
by Justin Place
Replied by Justin Place on topic Re: Display Extra Fields in 2nd & 3rd column of table
Hi Krikor,
I've tried to add that code, however the extrafield does not appear linked.
I've tried to add that code, however the extrafield does not appear linked.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 3 months ago #115526
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Display Extra Fields in 2nd & 3rd column of table
Look for any typos in your code, also make sure your extrafield alias is not empty.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- laweffect
- Offline
- Junior Member
Less
More
- Posts: 23
11 years 2 weeks ago #115527
by laweffect
Replied by laweffect on topic Re: Display Extra Fields in 2nd & 3rd column of table
I think I can follow the above - however I'm struggling to know where exactly in the <?php foreach($this->leading as $key=>$item): // the following edits are now in category_item ?>
Where exactly does the code go following <?php foreach($this->leading as $key=>$item): within the category_item.php file?
Thanks a lot
Where exactly does the code go following <?php foreach($this->leading as $key=>$item): within the category_item.php file?
Thanks a lot
Please Log in or Create an account to join the conversation.
- Odin Mayland
- Offline
- Platinum Member
Less
More
- Posts: 404
10 years 11 months ago #115528
by Odin Mayland
Replied by Odin Mayland on topic Re: Display Extra Fields in 2nd & 3rd column of table
We opted not to use tables, but instead used ul li
www.modernmagic.com/blog/joomla-technical-support/k2-table-like-list-in-category-view.html
www.modernmagic.com/blog/joomla-technical-support/k2-table-like-list-in-category-view.html
Please Log in or Create an account to join the conversation.