News:

Looking for documentation? Take a look on our wiki

Main Menu

CategorIES layout shows empty content

Started by adriespo, September 19, 2014, 13:29:55 PM

Previous topic - Next topic

adriespo

Hi,

on J 2.5.24 VM 2.6.10 I have a strange problem.

I created a Joomla menu link as Virtuemart Single Category with Top Level Category and Categories Layout.

So the link formed is index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&categorylayout=categories&Itemid=49

But the showed page is blank that is the content is blank but the web page is loaded with menus and all. Simply no content in the main content area.

I see that in the categories.php the call $this->category->haschildren is 1 but the first $this->category->children is empty. So the foreach never start.

I. E.

if ($this->category->haschildren) { //this is 1
...
if ($this->category->children) { //this is empty
foreach ( $this->category->children as $category ) {
  //this never start



----


Any idea? I have none.

Thanks!

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

adriespo

Thanks for answering!

Quote from: jenkinhill on September 20, 2014, 11:02:43 AM
Is this an update from an old VM version?

Yes, it is.

Quote from: jenkinhill on September 20, 2014, 11:02:43 AMIf so then this may apply: http://forum.virtuemart.net/index.php?topic=120433

Yes, indeed I followed verbatim the first way I. E. I created a Joomla menu link as Virtuemart Single Category with Top Level Category and Categories Layout.