Keyword

Display Extra Fields in 2nd & 3rd column of table

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago - 11 years 3 months ago #115524 by Krikor Boghossian
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
        <?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
  • Justin Place's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #115525 by Justin Place
Hi Krikor,

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #115526 by Krikor Boghossian
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.

More
11 years 2 weeks ago #115527 by laweffect
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

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

More
10 years 11 months ago #115528 by Odin Mayland

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


Powered by Kunena Forum