Template upgrade from simplicity. Having a few issues...

Support desk for Multipurpose Quark Theme
GK User
Fri Dec 11, 2015 6:20 pm
Hi Guys, over the next few weeks I'm trying to slowly move my website to to the Quark theme. I have to say its beautiful :)

On a few of the pages of the website it doesn't appear to be working with K2? On the link below it doesn't load any of the sub cateorgys of this category. However on the old website it did. The first link is my development site and the second it the LIVE website. Would anyone be able to shed some light on why this is happening.

http://s541464765.websitehome.co.uk/park-guides
http://www.themeparkguide.biz/park-guides

Another small issue I've got is that on the about us page it contains the information I want it to display below the banner inside the banner module? Once again ill post the new and old links.

http://s541464765.websitehome.co.uk/about-2/legal-info
http://www.themeparkguide.biz/about-2/legal-info

Thanks in advance your all amazing!!
User avatar
Junior Boarder

teitbite
Sat Dec 12, 2015 12:07 pm
Hi

For category layout I'm afraid You will have to remove the template override to make it work since it was simply removed to meet designer's idea. Template override is in /html/com_content/category

I'm not entirely sure, since I haven't seen such behaviour yet, but please try to add a read more button between title and the content to separate it or maybe an empty <p></p> will work. I would need an access to Your site to check it and be 100% sure.
User avatar
Moderator

GK User
Tue Dec 15, 2015 2:35 pm
What is it I need to remove in there?? There's 7 files in there and they all have a lot of code in them.

Did you want me to dm you a log in and password?
User avatar
Junior Boarder

teitbite
Thu Dec 17, 2015 11:48 am
Hi

Depending of the type of Category layout You've choosen it will be default.php or blog.php file. Or are You using K2 articles ? If You are using K2 than the file to remove will be /html/com_k2/templates/default/category.php

You can PM me an access to FTP so I'll may try to copy the subcategory code from default component files.
User avatar
Moderator

teitbite
Sun Dec 20, 2015 3:51 pm
Hi

I've just visited Your website and this long text is coming from category description. If this supposed to go as a text than please simply move it to article and change link to this article instead of category. Whole category descriptin goes into header, so it's up to users how much text they wish to show there.
User avatar
Moderator

GK User
Thu Dec 24, 2015 5:39 pm
ah ok that would make sense as to why thats doing that then! Could you send me the code and ill add it into my website / change the file to reflect it to use your code? Or do you need to FTP account information
User avatar
Junior Boarder

teitbite
Sun Dec 27, 2015 6:50 pm
Hi

There is no need to change code here. Please simply make this page in a different way. Make a smaller description for category and show an article or a module as an article for content of this page.
User avatar
Moderator

GK User
Sun Dec 27, 2015 9:22 pm
Hi, thats cool no worries I'm gonna change the length of the description for items but how do I / we fixed the categories not appearing on the page? You said something about changing the code because its not set up to show them...
User avatar
Junior Boarder

teitbite
Tue Dec 29, 2015 12:45 pm
Hi

Och, yes. Sorry I forgot about the missing categories issue. Yes please send me an access to ftp so I'll copy this part of code from simplicity to quark.
User avatar
Moderator

GK User
Tue Dec 29, 2015 11:41 pm
I've sent you the details
User avatar
Junior Boarder

teitbite
Wed Dec 30, 2015 7:40 pm
Hi

Here is a missing code from file: /html/com_k2/templates/default/category.php

Code: Select all
            <?php if($this->params->get('subCategories') && isset($this->subCategories) && count($this->subCategories)): ?>
            <div class="itemListSubCategories">
                  <!--<h2><?php echo JText::_('K2_CHILDREN_CATEGORIES'); ?></h2> -->
                  <?php foreach($this->subCategories as $key=>$subCategory): ?>
                  <?php
               if( (($key+1)%($this->params->get('subCatColumns'))==0) || count($this->subCategories)<$this->params->get('subCatColumns') )
                  $lastContainer= ' subCategoryContainerLast';
               else
                  $lastContainer='';
            ?>
                  <div class="subCategoryContainer<?php echo $lastContainer; ?>"<?php echo (count($this->subCategories)==1) ? '' : ' style="width:'.(number_format(100/$this->params->get('subCatColumns'), 1)-0.1).'%;"'; ?>>
                        <div class="subCategory">
                              <?php if($this->params->get('subCatImage') && $subCategory->image): ?>
                              <a class="subCategoryImage" href="<?php echo $subCategory->link; ?>"> <img alt="<?php echo K2HelperUtilities::cleanHtml($subCategory->name); ?>" src="<?php echo $subCategory->image; ?>" /> </a>
                              <?php endif; ?>
                              <?php if($this->params->get('subCatTitle')): ?>
                              <h3> <a href="<?php echo $subCategory->link; ?>"> <?php echo $subCategory->name; ?> <span>
                                    <?php if($this->params->get('subCatTitleItemCounter')) echo ' ('.$subCategory->numOfItems.')'; ?>
                                    </span> </a> </h3>
                              <?php endif; ?>
                              <?php if($this->params->get('subCatDescription')): ?>
                              <?php echo $subCategory->description; ?>
                              <?php endif; ?>
                              <!-- <a class="button" href="<?php echo $subCategory->link; ?>"> <?php echo JText::_('K2_VIEW_ITEMS'); ?> </a> --></div>
                  </div>
                  <?php if(($key+1)%($this->params->get('subCatColumns'))==0): ?>
                  <div class="clr"></div>
                  <?php endif; ?>
                  <?php endforeach; ?>
            </div>
            <?php endif; ?>


Now subcategories are visible.
User avatar
Moderator

GK User
Wed Dec 30, 2015 8:58 pm
thats fantastic thank you for that! :) just one more question an i will disappear from the forums here...

On the news page it will load with the title of the item, date and the category its posted in but not the text within the item? Is that another thing that was taken out for the quark style?

http://s541464765.websitehome.co.uk/news
http://www.themeparkguide.biz/news
User avatar
Junior Boarder

teitbite
Fri Jan 01, 2016 4:57 pm
Hi

I have replaced /html/com_k2/templates/default/latest.php file in quark for the same file but from simplicity template.
User avatar
Moderator

GK User
Fri Jan 01, 2016 6:09 pm
great thank you for that! But for some reason now the "Categories List" which is a module set to appear in the side bar position no longer shows?
User avatar
Junior Boarder

teitbite
Sun Jan 03, 2016 11:58 am
Hi

Yes, I can see it, but I'm afraid it's either no content or sidebar. Sidebar module position is loaded inside the layout file for Quark and in a main template file for Simplicity. To make them work all together I would need to implements whole thing from start and I'm afraid we do not support such big jobs.
User avatar
Moderator

GK User
Sun Jan 03, 2016 4:03 pm
thats cool no worries I think I've just got it working thanks for your help with this all
User avatar
Junior Boarder

teitbite
Wed Jan 06, 2016 11:12 am
Hi

Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron