News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Display Category author

Started by gru1988, April 04, 2012, 18:28:18 PM

Previous topic - Next topic

gru1988

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???

John2400

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 -

PRO

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?