VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: marvays on March 24, 2021, 09:38:35 am

Title: category name outside the category page
Post by: marvays on March 24, 2021, 09:38:35 am
Hi. I've been solving a problem for a long time and I don't know what to do. therefore please help.

I need to display the VM category name in the module.

So I will remove the category page from the code:
Code: [Select]
<?php if (!empty($this->category->category_name)) { ?>
<h1><?php echo vmText::_($this->category->category_name); ?></h1>
<?php ?>

And I have to edit it and display it in my own module. How?
Title: Re: category name outside the category page
Post by: pinochico on March 24, 2021, 10:14:01 am
We develop own custom VM Category Header module and add above category view after hidden category name in category view:

Look at this:
https://www.archivbox.cz/archivace-papirovych-dokumentu