Position "cart"

GK User
Tue Jul 01, 2014 1:00 pm
how can I make the module position "cart" as a normal position without animation?
User avatar
Junior Boarder

GK User
Wed Jul 02, 2014 8:38 am
Cart is a built-in template for cart purpose only and there is no way to make it work like regular module position. Probably easier way is to add new module position in the place where cart is published using this tutorial » How to add a new module position ? – GavickPro Documentation
User avatar
Platinum Boarder

GK User
Wed Jul 02, 2014 2:23 pm
Like this?

default.php
Code: Select all
    <header id="gkHeader"<?php if(!$this->API->modules('breadcrumb')) : ?> class="nobreadcrumb"<?php endif; ?>>
       <div id="gkHeaderTop">
          <div class="gkPage">
            <?php if($this->API->modules('topnav')) : ?>
            <div id="gkTopMenu">
               <jdoc:include type="modules" name="topnav" style="<?php echo $this->module_styles['topnav']; ?>" />
            </div>
            <?php endif; ?>
                 
            <?php if($this->API->modules('kontakt')) : ?>
               <jdoc:include type="modules" name="kontakt"
               style="<?php echo $this->module_styles['kontakt']; ?>" />
            </div>
            <?php endif; ?>
            
                <?php if($this->API->modules('search')) : ?>
                <i class="gk-icon-search" id="gkSearchBtn"></i>
                <?php endif; ?>
         </div>
      </div>   


templateDetails.xml
Code: Select all
                    <position>header</position>
               
               <position>kontakt</position>

                   

                    <!-- STANDARD Module Positions -->

                    <position>sidebar</position>


gk.const.php
Code: Select all
   'topnav' => 'none',
   'kontakt' => 'gk_style',
   
   'mainbody' => 'gk_style',


My module "kontakt" is present, but there is nothing displayed on the website.
User avatar
Junior Boarder

GK User
Thu Jul 03, 2014 7:15 am
The code looks fine. Did you publish any module on 'kontakt' position already? If yes could you provide me URL to website so I can look at generated HTML?
User avatar
Platinum Boarder

GK User
Thu Jul 03, 2014 7:18 am
Yess. its on http://walter-financial.ch Startsite
User avatar
Junior Boarder

GK User
Fri Jul 04, 2014 1:24 pm
Hmm... I don't see any additional code in template source code, maybe it is stupid issue but did you assign the custom module to all pages? If yes probably I need to llok at your files.
User avatar
Platinum Boarder

GK User
Fri Jul 04, 2014 1:29 pm
I have you sent the data as PM
User avatar
Junior Boarder

GK User
Mon Jul 07, 2014 7:53 am
You don't provide me FTP details so I can't check the translation file - please provide me this additional details.
User avatar
Platinum Boarder

GK User
Wed Jul 09, 2014 12:48 pm
Code: Select all
<jdoc:include type="modules" name="kontakt"
               style="<?php echo $this->module_styles['kontakt']; ?>" />
            </div>


This
Code: Select all
</div>
is wrong here because there is no opening tag. I've removed it and module is visible.
User avatar
Platinum Boarder


cron