top menu joomla HORIZONTAAL

Status
Niet open voor verdere reacties.
Hoi Jeroen,
Je moet in de <div id="topmenu"> de <div class="moduletable"> even veranderen in <div class="moduletable-nav">, dan gaat het meteen goed.
Waar dat in de Joomla-interface zit weet ik niet, want ik ken Joomla niet van dichtbij.
 
Laatst bewerkt:
Hoi cssHunter... Hartelijk dank !!!
Ik heb joomla ookzelf moeten ervaren, ik zal kijken waar ik dat kan vinden

U bent echt een topper als het gaat op opmaak

Bedankt
 
Beste ssHunter

HTML:
<?php
/**
 * @version          $Id: index.php 20196 2011-01-09 02:40:25Z ian $
 * @package          Joomla.Site
 * @copyright        Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license          GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;
error_reporting('E_ALL');
$path = $this->baseurl.'/templates/'.$this->template;

JHTML::_('behavior.framework', true);


// get params

$app        = JFactory::getApplication();
$templateparams    = $app->getTemplate(true)->params;
$showLeftColumn = ($this->countModules('left'));
$showRightColumn = ($this->countModules('right'));
$showuser3 = ($this->countModules('user3'));
$showuser4 = ($this->countModules('user4'));
$showuser5 = ($this->countModules('user5'));
$showuser6 = ($this->countModules('user6'));
$showuser8 = ($this->countModules('user8'));
$showuser9 = ($this->countModules('user9'));
$showuser10 = ($this->countModules('user10'));
$showFeatured = ($this->countModules('user2'));
$showNew = ($this->countModules('new'));
$showSpecials = ($this->countModules('specials'));

if (isset($_GET['view'])) {$opt_content = $_GET['view'];} else {$opt_content="no_content";}
if (isset($_GET['layout'])) {$Edit = $_GET['layout'];} else {$Edit="no_edit";}
if (isset($_GET['option'])) {$option = $_GET['option'];}

$menus      = &JSite::getMenu();
$menu      = $menus->getActive();
$pageclass   = "";

if (is_object( $menu )) : 
$params1 =  $menu->params;
$pageclass = $params1->get( 'pageclass_sfx' );
endif; 
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
  <head><script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-37090962-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>




<jdoc:include type="head" />
<link href='http://fonts.googleapis.com/css?family=Oswald&v1' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=News+Cycle' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $path ?>/css/position.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $path ?>/css/layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $path ?>/css/print.css" type="text/css" media="Print" />
<link rel="stylesheet" href="<?php echo $path ?>/css/virtuemart.css" type="text/css"  />
<link rel="stylesheet" href="<?php echo $path ?>/css/products.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $path ?>/css/personal.css" type="text/css" />
<style>
.img-indent , #right .module , .main {
 behavior:url(<?php echo $path ?>/PIE.php);
}
</style>
<!--[if lt IE 8]>
    <div style=' clear: both; text-align:center; position: relative; z-index:9999;'>
        <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0" &nbsp;alt="" /></a>
    </div>
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo $path ?>/javascript/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="<?php echo $path ?>/javascript/slides.min.jquery.js"></script>
<script type="text/javascript" src="<?php echo $path ?>/javascript/jquery_carousel_lite.js"></script>
<script type="text/javascript" src="<?php echo $path ?>/javascript/jquery.jqzoom-core.js"></script>
<script type="text/javascript" src="<?php echo $path ?>/javascript/jquery.equalheights.js"></script>
<script type="text/javascript" src="<?php echo $path ?>/javascript/jqtransform.js"></script>
<script type="text/javascript" src="<?php echo $path ?>/javascript/cookie.js"></script>
<script type="text/javascript" src="<?php echo $path ?>/javascript/script.js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(window).load(function(){
 // hide #back-top first
 $j("#back-top").hide();
 // fade in #back-top
 $j(function () {
  //$j(window).scroll(function () {
  // if ($j(this).scrollTop() > 200) {
   // $j('#back-top').fadeIn();
   //} else {
   // $j('#back-top').fadeOut();
  // }
 // });
  // scroll body to 0px on click
  $j('#back-top a').click(function () {
   $j('body,html').animate({
    scrollTop: 0
   }, 800);
   return false;
  });
 });
});

$j(document).ready(function() {

    $j(function(){
       $j('#select-form').jqTransform({imgPath:'<?php echo $path ?>/images/'}).css('display','block');
    });
    if($j(".category-title ").length){
    $j(".category-title").equalHeights()}
    if($j(".product-box").length){
    $j(".product-box").equalHeights()}
    if($j(".column").length){
    $j(".column").equalHeights()}
    if($j(".column2").length){
    $j(".column2").equalHeights()}
    if($j(".product-box").length){
    $j(".product-box").equalHeights()}
});
$j(document).ready(function(){
  $j(function() {
  var offset = $j(".cart").offset();
  var topPadding = 135;
  $j(window).scroll(function() {
  if ($j(window).scrollTop() > offset.top) {
  $j(".cart").stop().animate({marginTop: $j(window).scrollTop() - offset.top + topPadding});
  }
  else {$j(".cart").stop().animate({marginTop: 0});};});
  });

  $j('.module_social,.module_new h3 , .module_login h3').each(function() {
    var hd = jQuery(this).html();
    var index = hd.indexOf(' ');
    if(index == -1) {
      index = hd.length;
    }
    $j(this).html('<em>' + hd.substring(0, index) + '</em>' + hd.substring(index, hd.length));
  });

  });     
    
$j(document).ready(function() {
  var vmcartck = $j('.vmCartModule');
  vmcartck.top = vmcartck.offset().top;
  vmcartck.left = vmcartck.offset().left;
  $j('.cart-click').click(function() {
      var el = $j(this);
      var imgtodrag = $j('.product-image:first');
      if (!imgtodrag.length) {
        elparent = el.parent();
        while (!elparent.hasClass('spacer')) {
          elparent = elparent.parent();
        }  
        imgtodrag = elparent.find('img.browseProductImage');
      }
      if (imgtodrag.length) {
        var imgclone = imgtodrag.clone()
          .offset({ top: imgtodrag.offset().top, left: imgtodrag.offset().left })
          .css({'opacity': '0.7', 'position': 'absolute' , 'height':'150px' , 'width': '150px','z-index': '1000'})
          .appendTo($j('body'))
          .animate({
            'top': vmcartck.top+10,
            'left': vmcartck.left+30,
            'width':55,
            'height':55
          },400, 'linear');
        imgclone.animate({
          'width': 0,
          'height': 0
        });
      }
  });              
});
$j(document).ready(function() {
  var vmcartck = $j('.vmCartModule');
  vmcartck.top = vmcartck.offset().top;
  vmcartck.left = vmcartck.offset().left;
  $j('.cart-click2').click(function() {
      var el = $j(this);
      var imgtodrag = $j('#carousel li.current  .productimage , .productimage2');
      
      if (imgtodrag.length) {
        var imgclone = imgtodrag.clone()
          .offset({ top: imgtodrag.offset().top, left: imgtodrag.offset().left })
          .css({'opacity': '0.7', 'position': 'absolute' , 'height':'150px' , 'width': '150px','z-index': '1000'})
          .appendTo($j('body'))
          .animate({
            'top': vmcartck.top+10,
            'left': vmcartck.left+30,
            'width':55,
            'height':55
          },400, 'linear');
        imgclone.animate({
          'width': 0,
          'height': 0
        });
      }
  });              
});  
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php
$menu = &JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
    $body_class = 'first';
}else{
    $body_class = 'all';
}
?>
<body class="<?php echo $body_class." ".$pageclass;?>">
<div class="body-top">
  <div class="main">
    <div id="header">
        <div id="logo">
          <a href="<?php echo $this->baseurl ?>"><img alt="" src="<?php echo $path ?>/images/logo.png" /></a>
        </div>
        
        <div class="head-row">
          <div class="relative">
            <?php if ($showuser3) : ?>
              <div id="topmenu">
                <jdoc:include type="modules" name="user3" style="xhtml" />
              </div>
            <?php endif; ?>
            <?php if ($showuser4) : ?>
              <div id="search">
                <jdoc:include type="modules" name="user4" style="xhtml" />
              </div>
            <?php endif; ?>
          </div>
        </div>
        <?php if ($showuser5) : ?>
                <div class="currency">
                    <jdoc:include type="modules" name="user5" style="xhtml" />
                </div>
                <?php endif; ?>
                 <?php if ($showuser6) : ?>
                <div class="cart">
                    <jdoc:include type="modules" name="user6" style="xhtml" />
                </div>
                <?php endif; ?>
                 
                <jdoc:include type="modules" name="user10" style="xhtml" />
        <jdoc:include type="modules" name="user7" style="xhtml"/>
    </div>  
    <!-- END header -->
  <div id="content">
  <jdoc:include type="modules" name="user8" style="user"/>
      <div class="wrapper2">
        <?php if ($showLeftColumn): ?>
        <div id="left">
          <div class="wrapper2">
            <div class="extra-indent">
              <jdoc:include type="modules" name="left" style="left" />
            </div>
          </div>
        </div>
        <?php endif; ?>
        <?php if ($showRightColumn) : ?>
        <div id="right">
          <div class="wrapper">
            <div class="extra-indent">
              <jdoc:include type="modules" name="right" style="user" />
            </div>
          </div>
        </div>
        <?php endif; ?>
        <div class="container">
        <?php if (($showFeatured ) && ($option!="com_search") ) { ?>
          <?php if ($this->getBuffer('message')) : ?>
            <div class="error err-space">
              <jdoc:include type="message" />
            </div>
          <?php endif; ?>
          <jdoc:include type="modules" name="user2" style="user" />
        <?php } else { ?>
          <?php if ($this->getBuffer('message')) : ?>
            <div class="error err-space">
              <jdoc:include type="message" />
            </div>
          <?php endif; ?>
          <div class="content-indent">
            <jdoc:include type="component" />
          </div>
        <?php }; ?>
      </div><div class="clear"></div>
    </div>
    <jdoc:include type="modules" name="new" style="new" />
  </div>
  <div class="clear"></div>
    <div id="foot">
     <?php if ($showuser9) : ?>
    <div class="wrapper">
      <jdoc:include type="modules" name="user9" style="new" />
    </div>  
    <?php endif; ?>
      <div class="space">
        <div class="wrapper">
          <div class="footerText">
            <jdoc:include type="modules" name="footer" />
            <?php
              if ($menu->getActive() == $menu->getDefault())  { ?>
              
              <?php  }
            ?>

          </div>
        </div>
      </div>
    </div>
    <p id="back-top">
      <a href="#top"><span></span></a>
    </p>
  </div>
  
</div>  
</body>0
</html>

Ik kan hem ook niet vinden
of moet ik in css rommelen?
 
Hoi Jeroen,
Ik zie staan:
HTML:
<?php if ($showuser3) : ?>
    <div id="topmenu">
        <jdoc:include type="modules" name="user3" style="xhtml" />
    </div>
<?php endif; ?>
Dan lijkt met dat het in de module "user3" moet staan; vermoedelijk heet deze: user3.xhtml
  • Het zit in elk geval niet in een css-bestand, want de <div class="moduletable-nav"> moet in de html-code van het topmenu staan.
    De css van die class zelf staat ergens in een stylesheet, en dat staat er al correct in.
Met vriendelijke groet,
CSShunter
 
beste Css Hunter;
hartelijk dank voor uw duidelijke voorbeeld
ik heb deze regeltjes uiteraad gevonden, maar kan nu verder met het zoeken naar het door uw gegeven advies, Bedankt

Ik kan de volgende files wijzigen;

Template Master Files
Edit main page template
Edit error page template
Edit print view template


ik zal kijken of ik een xhtml bestand kan vinden bedankt

Met vriendelijke groet: Jeroen
 
bedoelt u dit stukje??

<div class="head-row">
<div class="relative">
<?php if ($showuser3) : ?>
<div id="topmenu">
<jdoc:include type="modules" name="user3" style="xhtml" />
</div>
<?php endif; ?>

ik kan geen xhtml bestanden vinden namelijk
 
Ja, dat stukje bedoelde ik.
Daarin wordt verwezen naar een module met de naam "user3".
  • In die module staat <div class="moduletable">, en dat moet dan veranderd worden in: <div class="moduletable-nav">, want met deze class wordt de horizontale stijl van het topmenu geregeld.
Als die module niet "user3.xhtml" heet, dan heet hij waarschijnlijk anders.
Maar hoe Joomla z'n modules noemt, en hoe je daar in kunt komen, weet ik niet.

  • Misschien weet iemand anders dat?
Met vriendelijke groet,
CSShunter
 
ja ik ben pzoek gegaan met google maar ik kom niet echt verder

Bedankt

Vriendelijke groet; Jeroen
 
hartelijk dank !!!

maar toch wil het niet echt lukken...

kijk morgen wel weer eens een keer

Bedankt Jeroen
 
Class Suffix: This field can contain a suffix that will be applied to the CSS classes for the Menu styles of this page. This allows individual Menu styling with relative ease. For example, if the suffix .foo is entered here, all CSS code elements in the CSS file within the Template for Menu styles will have .foo added to them. table.moduletable becomes table.moduletable.foo. Separate entries would then need to be added in the CSS file of the Template, for each corresponding difference.

Module Class Suffix: This field can contain a suffix that will be applied to the CSS classes for the Module styles of this page. This allows individual Modules styling with relative ease. For example, if the suffix .foo is entered here, all CSS code elements in the CSS file within the Template for Modules will have .foo added to them. Separate entries would then need to be added in the CSS file of the Template, for each corresponding difference.



Hier staat wat ik moet doen...
Maar het wil niet lukken....

Weet u wat ik precies moet moet invullen...

Menu Tag ID
Menu Class Suffix moduletable-nav <<<<<<
Target Position
Alternative LayoutDefault
Module Class Suffix moduletable-nav <<<<<<
CachingUse Global No caching
Cache Time
 
Status
Niet open voor verdere reacties.

Nieuwste berichten

Terug
Bovenaan Onderaan