VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: sajtfokus on December 26, 2012, 05:09:22 AM

Title: Not showing header in VM categories layout - Joomla 2.5
Post by: sajtfokus on December 26, 2012, 05:09:22 AM
Hi,

I don't have header in Categories layout, but I do have h1 header in Category layout (all settings are the same). I have already checked radio button in Page display options --- "Show page headings", and tried to enter something below in the "Page heading" box, but nothing seems to work.

Any suggestion?
Thanks! :)
Title: Re: Not showing header in VM categories layout - Joomla 2.5
Post by: vinmax on December 26, 2012, 13:41:41 PM
Quote from: sajtfokus on December 26, 2012, 05:09:22 AM
Hi,

I don't have header in Categories layout, but I do have h1 header in Category layout (all settings are the same). I have already checked radio button in Page display options --- "Show page headings", and tried to enter something below in the "Page heading" box, but nothing seems to work.

Any suggestion?
Thanks! :)

Hi,

Go to the components-> com_vertuemart -> views -> categories -> tmpl-> defaulst.php

Find Remove/comment the bellow lines

62 to 72 lines

Place this lines there

// Category Link
                $caturl = JRoute::_ ('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id);

                // 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>
                        </h2>
                    <>
                <>

This works well.

Thanks
http://shoeg.in (http://shoeg.in), http://maxartkiller.in (http://maxartkiller.in)
Title: Re: Not showing header in VM categories layout - Joomla 2.5
Post by: sajtfokus on December 29, 2012, 06:41:13 AM
Thanks winmax for your reply!

Sorry, I wasn't clear enough with my question. I want to see my category name as H1 tag. I see that h1 tag in category layout, but not in Categories layout. I don't have problem with displaying H2 tags though.
Title: Re: Not showing header in VM categories layout - Joomla 2.5
Post by: sajtfokus on January 08, 2013, 13:10:22 PM
Anyone???
Title: Re: Not showing header in VM categories layout - Joomla 2.5
Post by: vinmax on January 08, 2013, 21:47:27 PM
Try this code as following my above post


// Category Link
                $caturl = JRoute::_ ('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id);

                // Show Category
                ?>
                <div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
                    <div class="spacer">
                        <h1>
                            <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>
                        </h1>
                    </div>
                </div>
Title: Re: Not showing header in VM categories layout - Joomla 2.5
Post by: sajtfokus on January 08, 2013, 22:09:50 PM
Still not working :(

I've just found out that besides headers in categories layout, custom page title and category description are not working aswell. I just have pictures of subcategories lined-up at the top of the page, nothing else.