Ivan

Portfolio with extrafields display

2 posts in this topic

HI, how can I enable to display portolio with some extrafields in bt content showcase ore there is some other module to do so that can corausel or slide portfilo with its extrafieds?

Share this post


Link to post
Share on other sites

Hi Ivan

Please check if there is this line

$item->extra_fields = Bt_portfolioTablePortfolio::loadExtraFields($item->extra_fields,$item->catids);

in file /mod_bt_contentshowcase/classes/btportfolio.php

We get portfolio's extrafield data but doesn't use it in layout file.

So if you need you can show them with this code


<ul class="bt-extra-fields">
<?php
if(isset($row->extra_fields) && count($row->extra_fields)){
foreach($row->extra_fields as $ex){
echo '<li><span class="ex-label">' . $ex->name . '</span><span class="ex-value">' . $ex->value . '</span></li>';
}
}
?>
</ul>
[/CODE]

You must put this code inside this foreach statement

[CODE]<?php foreach( $list as $i => $row ): ?>[/CODE]

For example, you can put it below portfolio image by putting the code below this one

[CODE]<?php if( $row->thumbnail ): ?>
<?php if($row->thumbnail && $align_image == 'center') {?>
<div style="text-align:center">
<a target="<?php echo $openTarget; ?>"
class="bt-image-link<?php echo $modal? ' modal':''?>"
title="<?php echo $row->title;?>" href="<?php echo $modal?$row->mainImage:$row->link;?>">
<img <?php echo $imgClass ?> src="<?php echo $row->thumbnail; ?>" alt="<?php echo $row->title?>" style="width:<?php echo $thumbWidth ;?>px;" title="<?php echo $row->title?>" />
</a>
</div>
<?php } ?>
<?php endif ; ?>[/CODE]

Good luck.

Ivan likes this

Share this post


Link to post
Share on other sites