VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: gru1988 on April 04, 2012, 18:28:18 PM

Title: Display Category author
Post by: gru1988 on April 04, 2012, 18:28:18 PM
I try to show category author below category image.
Edit this file
components/com_virtuemart/views/category/tmpl/default

// Show Category ?>
<div class="category floatleft<?php echo $category_cellwidth $show_vertical_separator ?>">
<div class="spacer">
<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name ?>
<br />
<?php // if ($category->ids) {
echo $category->images[0]->displayMediaThumb("",false);
//} ?>

</a>
</br>
<?php
echo $category->metaauthor ?>

</h2>
</div>
</div>
<?php
$iCategory ++;


echo $category->metaauthor ?> DONT WORK!!!

When i try this

echo $this->category->metaauthor ?>

show "admin" for every category.

Any idea how to show category author???
Title: Re: Display Category author
Post by: John2400 on April 07, 2012, 09:59:34 AM
gru1988,

Could you expand upon this idea - as you could simply add a text in the category content text file and it would show up the top of each category-
without a hack?

* or is it related to the manufacturer ? or the person who is actually uploading to that particular category ? and then it might be a muliti - vendor option.

* since products can be placed in several categories then that would not be helpful -
Title: Re: Display Category author
Post by: PRO on April 07, 2012, 12:39:32 PM
Quote from: gru1988 on April 04, 2012, 18:28:18 PM


When i try this

echo $this->category->metaauthor ?>

show "admin" for every category.

Any idea how to show category author???

This should work,

whats in  the author field?