Skip to main content

Welkom bij Joomla!NL

Om alle mogelijkheden van dit forum te kunnen gebruiken, moet je je eerst registreren.

Vermeld in iedere vraag duidelijk:
  1. De versie van Joomla! 3.X die je gebruikt
  2. De volledige url van je website indien mogelijk.
  3. De versie van de extensie waar de vraag over gaat.

opgelost Module posities omwisselen

Module posities omwisselen

05 jul 2016 20:34
#1
Ik gebruik een Template met bovenin een main nav positie en daaronder een slider positie. Nu wil ik deze twee graag omdraaien zodat de slider boven het menu komt te staan. hoe moet ik dit in CSS/html aanpassen en waar?
  • robbiewet
  • robbiewet's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 46

Module posities omwisselen

05 jul 2016 20:37
#2
Met een beetje geluk (is afhankelijk van de gebruikte template) kan je dat aanpassen in de index.php van je template.
Groetjes, Astrid
Gebruik de zoekfunctie van dit forum voordat je een nieuwe vraag plaatst.
Vragen uitsluitend via dit forum.
yndi.nl - kvk 17157725
Is je vraag beantwoord? Dan kan je het draadje zelf sluiten .
Wil je Joomla!NL steunen? Dat kan met een donatie.
  • Astrid
  • Astrid's Profielfoto
  • Moderator + Technisch team
  • Moderator + Technisch team
  • Berichten: 37559

Module posities omwisselen

05 jul 2016 21:50
#3
het gaat om de template "kent". www.vve-ruysdaelgebouw.nl
  • robbiewet
  • robbiewet's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 46

Module posities omwisselen

05 jul 2016 22:12
#4
En heb je de index.php al bekeken dan?
Groetjes, Astrid
Gebruik de zoekfunctie van dit forum voordat je een nieuwe vraag plaatst.
Vragen uitsluitend via dit forum.
yndi.nl - kvk 17157725
Is je vraag beantwoord? Dan kan je het draadje zelf sluiten .
Wil je Joomla!NL steunen? Dat kan met een donatie.
  • Astrid
  • Astrid's Profielfoto
  • Moderator + Technisch team
  • Moderator + Technisch team
  • Berichten: 37559

Module posities omwisselen

05 jul 2016 22:24 - 05 jul 2016 22:29
#5
Ja dat wel maar snap er niets van wat ik moet aanpassen. hier hierbij even een kopietje van de code geplakt
Code:
<?php /** * Author Dan Partac * Copyright (C) 2005 - 2012 Dan Partac. All rights reserved. * @license commercial */ // No direct access. defined('_JEXEC') or die; JLoader::import('joomla.filesystem.file'); JHtml::_('bootstrap.framework', true); // get template params $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; $doc = JFactory::getDocument(); $siteName = $app->getCfg('sitename'); $layout = $this->params->get('layout'); $color = $this->params->get('templatecolor'); $themetype = $this->params->get('themetype'); $pattern = $this->params->get('pattern'); $tools = $this->params->get('tools'); $font = $this->params->get('font_selection'); $hidecontent = $this->params->get('hide_content'); $colorPath = JPATH_SITE .'/templates/'. $this->template .'/themes/' . $color . '/css/style.css'; $ga = $this->params->get('ga'); $responsive = $this->params->get('templateresponsive','1'); $mainmenu = $this->params->get('mainnavigation', 'mainmenu'); //networking $facebooknetworking = $this->params->get('facebook_networking'); $twitternetworking = $this->params->get('twitter_networking'); $rssnetworking = $this->params->get('rss_networking'); //contact $phone = $this->params->get('telephone'); $mail = $this->params->get('mail'); //share // share count $list = array( $this->params->get('facebook_share'), $this->params->get('twitter_share'), $this->params->get('google_share'), $this->params->get('pinterest_share') ); $shcount = array_sum($list); $shcount = array_reduce( $list, function($counter, $value) { return $counter + ($value == '1'); }, 0 ); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="ltr" > <head> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-80259117-1', 'auto'); ga('send', 'pageview'); </script> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/> <meta name="HandheldFriendly" content="true" /> <meta name="apple-touch-fullscreen" content="YES" /> <?php if ($font != "none" ) : ?> <?php require_once JPATH_BASE .'/templates/'. $this->template . '/tools/fonts.php'; ?> <?php endif ; ?> <jdoc:include type="head" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/reset.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/bootstrap.min.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/print.css" media="print" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/typography.css" media="all" /> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <?php if ($color == "default" ) : // load default theme ?> <link id="styleswitcher" type="text/css" rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/themes/default/css/style.css" media="all" /> <?php endif; if ($color !== "default" && file_exists($colorPath) ) : // load another theme ?> <link id="styleswitcher" type="text/css" rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/themes/<?php echo $color; ?>/css/style.css" media="all" /> <?php endif ; ?> <?php if ($responsive == "1" ) : // load default theme ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template-responsive.css" media="only screen and (max-width:1000px)" /> <?php endif ; ?> <?php if (($layout !== 'full' && $tools !== 'disable') || ($layout && $tools == 'disable')) : ?> <?php require_once JPATH_BASE .'/templates/'. $this->template . '/tools/layouts.php'; ?> <?php endif ; ?> <!--[if IE 8]> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie8only.css" rel="stylesheet" type="text/css" /> <![endif]--> <?php if ($tools != 'disable') : ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/cookie.js"></script> <?php endif ; ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/swiper.min.js"></script> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jqscripts.js"></script> <?php if( $shcount > 0 ) : ?> <?php require_once JPATH_BASE .'/templates/'. $this->template . '/tools/sharingjs.php'; ?> <?php endif ; ?> <?php if ($ga != null ): ?> <script type="text/javascript"> <?php echo $ga; ?> </script> <?php endif ; ?> </head> <body class="<?php echo $themetype .' '. $pattern; ?>"> <div id="site-wrapper" class="wrap"> <?php if ($tools != 'disable') : ?> <?php require_once JPATH_BASE.'/templates/'. $this->template . '/tools/panel.php'; ?> <?php endif ; ?> <?php if ($mail != '' || $phone != ''): ?> <?php $htb = 'htb' ?> <div id="topbar" class="main"> <div class="main-inner clearfix"> <div class="today clearfix"> <?php //echo JText::_("TODAY_IS"). ': '; echo "<p class=\"typo-icon icon-cal\">"; echo "<span class=\"icon\">&nbsp;</span>"; echo "<span class=\"day\">".JText::_(date ('l')).", </span>"; echo "<span class=\"date\">".JText::_(date ('d'))." </span>"; echo "<span class=\"month\">".JText::_(date ('F')).", </span>"; echo "<span class=\"year\">".JText::_(date ('Y'))."</span>"; echo "</p>"; ?> </div> <div id="contact"> <?php if ($phone != '') { ?> <ul style="float: left; margin-right: 10px;" class="typo-list list-phone"> <li>&nbsp;<span class="icon">&nbsp;</span>Telefoon: <strong><?php echo $phone; ?></strong></li> </ul> <?php } ?> <?php if ($mail != '') { ?> <ul style="float: left;" class="typo-list list-mail"> <li>&nbsp;<span class="icon">&nbsp;</span>Email: <strong><?php echo $mail; ?></strong></li> </ul> <?php } ?> </div> </div> </div> <?php endif; ?> <div id="header" class="main <?php echo @$htb; ?>"> <div class="main-inner clearfix"> <h1 class="logo" id="site-logo"> <a href="<?php echo $this->baseurl; ?>/" title="<?php echo $siteName; ?>"></a> </h1> <?php if ($this->countModules('search')): ?> <div id="search"> <jdoc:include type="modules" name="search" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('topmenu')): ?> <div id="topmenu"> <jdoc:include type="modules" name="topmenu" style="raw" /> </div> <?php endif; ?> </div> </div> <div id="mainnav-wrapper" class="main"> <div class="mainnav main-inner clearfix"> <?php if($this->countModules('login')) : ?> <a href="#" id="openlogin" title="<?php echo JText::_('LOGIN_BUTTON'); ?>">Open/Close</a> <?php endif; ?> <?php if($this->countModules('feedback')) : ?> <a href="#" id="openfeedback" title="<?php echo JText::_('FEEDBACK_BUTTON'); ?>">Open/Close</a> <?php endif; ?> <?php if ($facebooknetworking != '' || $twitternetworking != '' || $rssnetworking != '') : ?> <div id="top-social"> <ul class="social-icons"> <?php if ($facebooknetworking != '') : ?><li><a class="facebook" href="<?php echo $facebooknetworking; ?>">&nbsp;</a></li><?php endif; ?> <?php if ($twitternetworking != '') : ?><li><a class="twitter" href="<?php echo $twitternetworking; ?>">&nbsp;</a></li><?php endif; ?> <?php if ($rssnetworking != '') : ?><li><a class="rss" href="<?php echo $rssnetworking; ?>">&nbsp;</a></li><?php endif; ?> </ul> </div> <?php endif; ?> <?php require_once JPATH_BASE.'/templates/'. $this->template . '/tools/menu.php'; ?> </div> </div> <?php if($this->countModules('login')) : ?> <div id="login-wrapper"> <div id="login-wrapper-div"> <div id="dnp-login"> <jdoc:include type="modules" style="xhtml" name="login" /> </div> <!-- <a href="#" id="openlogin" title="<?php echo JText::_('LOGIN_BUTTON'); ?>">Open/Close</a> --> </div> </div> <?php endif; ?> <?php if($this->countModules('feedback')) : ?> <div id="feedback-wrapper"> <div id="feedback-wrapper-div"> <div id="dnp-feedback"> <jdoc:include type="modules" style="xhtml" name="feedback" /> </div> <!-- <a href="#" id="openfeedback" title="<?php echo JText::_('FEEDBACK_BUTTON'); ?>">Open/Close</a> --> </div> </div> <?php endif; ?> <?php if ($this->countModules('slider')): ?> <div id="slideshow"> <jdoc:include type="modules" name="slider" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('top-portfolio')): ?> <?php $topht = 'ht';?> <?php $ct = 'ct';?> <div id="top-portfolio" class="main"> <div class="main-inner clearfix"> <jdoc:include type="modules" name="top-portfolio" style="dnpxhtml" /> </div> </div> <?php endif; ?> <?php if ($this->countModules('top-1') || $this->countModules('top-2') || $this->countModules('top-3') || $this->countModules('top-4')): ?> <?php //counting stuff $topmodules = $this->countModules('top-1 + top-2 + top-3 + top-4'); if ($topmodules >= 4) {$topclass = "4";} else if ($topmodules < 4) {$topclass = $topmodules;} ?> <?php if ( $this->countModules('top-portfolio') || ($this->countModules('top-1') || $this->countModules('top-2') || $this->countModules('top-3') || $this->countModules('top-4')) ) { $ht = "ht"; } ?> <div id="top-wrapper" class="main spotlight columns-<?php echo $topclass .' '. @$topht; ?>"> <div class="main-inner"> <?php if ($this->countModules('top-1')): ?> <jdoc:include type="modules" name="top-1" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('top-2')): ?> <jdoc:include type="modules" name="top-2" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('top-3')): ?> <jdoc:include type="modules" name="top-3" style="dnpxhtml" /> <?php endif ; ?> <?php if ($this->countModules('top-4')): ?> <jdoc:include type="modules" name="top-4" style="dnpxhtml" /> <?php endif ; ?> </div> </div> <?php endif ; ?> <?php if ($hidecontent != 'enable'): ?> <div id="main-wrapper" class="main"> <div class="main-inner clearfix"> <?php if ($this->countModules('position-5')): ?> <div class="left <?php echo $ht; ?>" id="left" > <jdoc:include type="modules" name="position-5" style="dnpxhtml" /> </div> <?php endif; ?> <?php if ($this->countModules('position-5') && !$this->countModules('position-7')) { $mainClass = "hl"; } else if (!$this->countModules('position-5') && $this->countModules('position-7')) { $mainClass = "hr"; } else if ($this->countModules('position-5') && $this->countModules('position-7')) { $mainClass = "hl hr"; } else if (!$this->countModules('position-5') && !$this->countModules('position-7')) { $mainClass = ""; } ?> <div id="content" class="<?php echo $mainClass .' '. $ht .' '. @$ct; ?>"> <?php if ($this->countModules('content-top')): ?> <div id="content-top"> <jdoc:include type="modules" name="content-top" style="dnpxhtml" /> </div> <?php endif; ?> <div class="component-wrapper"> <jdoc:include type="message" /> <?php if ($this->countModules('left-inner')): ?> <div class="left-inner" id="left-inner" > <jdoc:include type="modules" name="left-inner" style="dnpxhtml" /> </div> <?php endif; ?> <jdoc:include type="component" /> </div> <?php if ($this->countModules('content-bottom')): ?> <div id="content-bottom"> <jdoc:include type="modules" name="content-bottom" style="dnpxhtml" /> </div> <?php endif; ?> </div> <?php if ($this->countModules('position-7')): ?> <div class="right <?php echo $ht; ?>" id="right" > <jdoc:include type="modules" name="position-7" style="dnpxhtml" /> </div> <?php endif; ?> </div> </div> <?php endif ; ?> <?php if ($this->countModules('bottom-portfolio')): ?> <div id="bottom-portfolio" class="main"> <div class="main-inner clearfix"> <jdoc:include type="modules" name="bottom-portfolio" style="dnpxhtml" /> </div> </div> <?php endif; ?> <?php if ($this->countModules('bottom-1') || $this->countModules('bottom-2') || $this->countModules('bottom-3') || $this->countModules('bottom-4') ) : ?> <?php $pathwayhb = 'hb'; $botmodules = $this->countModules('bottom-1 + bottom-2 + bottom-3 + bottom-4'); if ($botmodules >= 4) {$botclass = "4";} else if ($botmodules < 4) {$botclass = $botmodules;} ?> <div id="bottom-wrapper" class="main spotlight columns-<?php echo $botclass; ?>"> <div class="main-inner clearfix"> <?php if ($this->countModules('bottom-1')): ?> <jdoc:include type="modules" name="bottom-1" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('bottom-2')): ?> <jdoc:include type="modules" name="bottom-2" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('bottom-3')): ?> <jdoc:include type="modules" name="bottom-3" style="dnpxhtml" /> <?php endif ; ?> <?php if ($this->countModules('bottom-4')): ?> <jdoc:include type="modules" name="bottom-4" style="dnpxhtml" /> <?php endif ; ?> </div> </div> <?php endif ; ?> <?php if ( $this->countModules('breadcrumbs') || $shcount > 0 ): ?> <div id="pathway" class="main <?php echo $pathwayhb; ?>"> <div class="main-inner clearfix"> <jdoc:include type="modules" name="breadcrumbs" style="raw" /> <?php if( $shcount > 0 ) : ?> <ul class="sharelist"> <?php require_once JPATH_BASE.'/templates/'. $this->template . '/tools/sharing.php'; ?> </ul> <?php endif; ?> <div class="top-link"> <a id="gototop" href="#site-wrapper" title="<?php echo JText::_('TOP_DESC')?>">&nbsp;</a> </div> </div> </div> <?php endif; ?> <?php if ($this->countModules('footer') || $this->countModules('footernav')): ?> <div id="footer-wrapper" class="main"> <div class="main-inner"> <div id="footer"> <jdoc:include type="modules" name="footer" style="raw" /> </div> <div id="footernav"> <jdoc:include type="modules" name="footernav" style="raw" /> </div> </div> </div> <?php endif ; ?> </div> <jdoc:include type="modules" name="debug" /> </body> </html>

Edit Jelle: Ik heb de code tussen codetags geplaatst, volgende keer graag zelf doen.
  • robbiewet
  • robbiewet's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 46

Module posities omwisselen

05 jul 2016 22:31
#6
Hallo,

Dus even de mainnav div omwisselen met de slideshow div.
Groeten, Jelle
Voordat je een vraag post, gebruik eerst de zoekfunctie van ons forum eens.
Vragen uitsluitend via dit Forum.
Is je vraag opgelost? Dan kan je hem zelf sluiten .
Wil je Joomla!NL steunen? Dat kan met een donatie.
  • Jelle
  • Jelle's Profielfoto
  • Algemeen Moderator
  • Algemeen Moderator
  • Berichten: 13636

Module posities omwisselen

05 jul 2016 22:36
#7
Ah ha ok gevonden. alleen bij de oude staat de slider over de gehele breedte van de pagina maar nu in de nieuwe niet meer
  • robbiewet
  • robbiewet's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 46

Module posities omwisselen

06 jul 2016 09:57
#8
Zo te zien heb je ergens in je "Kent" template gekozen voor Wrap-rounded in plaats van Full Width. Als ik op hun demo-site kijk wordt de slider met die keuze ook 980px breed.


Deze afbeelding is verborgen voor gasten.
Login of registreer om deze te zien.
  • rovel
  • rovel's berichtenfoto
  • Bekend met Joomla!NL
  • Bekend met Joomla!NL
  • Berichten: 117

Module posities omwisselen

06 jul 2016 17:59
#9
Jkiot maar als ik bij de oude index.php kijk loopt de foto netjes tot aan de rand van het frame. nu (ook al geef ik de slider een breedte van 1000px) heb ik zowel links als recht een witte rand.
  • robbiewet
  • robbiewet's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 46

Module posities omwisselen

06 jul 2016 18:18
#10
Het kan niet dat door het verplaatsen van een module je hele template zich opeens anders gedraagt. Dus ik zou opnieuw beginnen en kijken wat je anders zou kunnen doen. Het zou kunnen dat je een div teveel of te weinig meegekopieerd hebt, maar ik vind de oorzaak die rovel aangeeft wel heel aannemelijk.
Groetjes, Astrid
Gebruik de zoekfunctie van dit forum voordat je een nieuwe vraag plaatst.
Vragen uitsluitend via dit forum.
yndi.nl - kvk 17157725
Is je vraag beantwoord? Dan kan je het draadje zelf sluiten .
Wil je Joomla!NL steunen? Dat kan met een donatie.
  • Astrid
  • Astrid's Profielfoto
  • Moderator + Technisch team
  • Moderator + Technisch team
  • Berichten: 37559

Module posities omwisselen

06 jul 2016 18:27 - 06 jul 2016 19:40
#11
Ik zal wel iets verkeerd gekopiert hebben. de oude code staat hierboven in een eerdere post en hieronder is de nieuwe..
Code:
<?php /** * Author Dan Partac * Copyright (C) 2005 - 2012 Dan Partac. All rights reserved. * @license commercial */ // No direct access. defined('_JEXEC') or die; JLoader::import('joomla.filesystem.file'); JHtml::_('bootstrap.framework', true); // get template params $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; $doc = JFactory::getDocument(); $siteName = $app->getCfg('sitename'); $layout = $this->params->get('layout'); $color = $this->params->get('templatecolor'); $themetype = $this->params->get('themetype'); $pattern = $this->params->get('pattern'); $tools = $this->params->get('tools'); $font = $this->params->get('font_selection'); $hidecontent = $this->params->get('hide_content'); $colorPath = JPATH_SITE .'/templates/'. $this->template .'/themes/' . $color . '/css/style.css'; $ga = $this->params->get('ga'); $responsive = $this->params->get('templateresponsive','1'); $mainmenu = $this->params->get('mainnavigation', 'mainmenu'); //networking $facebooknetworking = $this->params->get('facebook_networking'); $twitternetworking = $this->params->get('twitter_networking'); $rssnetworking = $this->params->get('rss_networking'); //contact $phone = $this->params->get('telephone'); $mail = $this->params->get('mail'); //share // share count $list = array( $this->params->get('facebook_share'), $this->params->get('twitter_share'), $this->params->get('google_share'), $this->params->get('pinterest_share') ); $shcount = array_sum($list); $shcount = array_reduce( $list, function($counter, $value) { return $counter + ($value == '1'); }, 0 ); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="ltr" > <head> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-80259117-1', 'auto'); ga('send', 'pageview'); </script> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/> <meta name="HandheldFriendly" content="true" /> <meta name="apple-touch-fullscreen" content="YES" /> <?php if ($font != "none" ) : ?> <?php require_once JPATH_BASE .'/templates/'. $this->template . '/tools/fonts.php'; ?> <?php endif ; ?> <jdoc:include type="head" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/reset.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/bootstrap.min.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/print.css" media="print" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" media="all" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/typography.css" media="all" /> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <?php if ($color == "default" ) : // load default theme ?> <link id="styleswitcher" type="text/css" rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/themes/default/css/style.css" media="all" /> <?php endif; if ($color !== "default" && file_exists($colorPath) ) : // load another theme ?> <link id="styleswitcher" type="text/css" rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/themes/<?php echo $color; ?>/css/style.css" media="all" /> <?php endif ; ?> <?php if ($responsive == "1" ) : // load default theme ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template-responsive.css" media="only screen and (max-width:1000px)" /> <?php endif ; ?> <?php if (($layout !== 'full' && $tools !== 'disable') || ($layout && $tools == 'disable')) : ?> <?php require_once JPATH_BASE .'/templates/'. $this->template . '/tools/layouts.php'; ?> <?php endif ; ?> <!--[if IE 8]> <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie8only.css" rel="stylesheet" type="text/css" /> <![endif]--> <?php if ($tools != 'disable') : ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/cookie.js"></script> <?php endif ; ?> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/swiper.min.js"></script> <script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jqscripts.js"></script> <?php if( $shcount > 0 ) : ?> <?php require_once JPATH_BASE .'/templates/'. $this->template . '/tools/sharingjs.php'; ?> <?php endif ; ?> <?php if ($ga != null ): ?> <script type="text/javascript"> <?php echo $ga; ?> </script> <?php endif ; ?> </head> <body class="<?php echo $themetype .' '. $pattern; ?>"> <div id="site-wrapper" class="wrap"> <?php if ($tools != 'disable') : ?> <?php require_once JPATH_BASE.'/templates/'. $this->template . '/tools/panel.php'; ?> <?php endif ; ?> <?php if ($mail != '' || $phone != ''): ?> <?php $htb = 'htb' ?> <div id="topbar" class="main"> <div class="main-inner clearfix"> <div class="today clearfix"> <?php //echo JText::_("TODAY_IS"). ': '; echo "<p class=\"typo-icon icon-cal\">"; echo "<span class=\"icon\">&nbsp;</span>"; echo "<span class=\"day\">".JText::_(date ('l')).", </span>"; echo "<span class=\"date\">".JText::_(date ('d'))." </span>"; echo "<span class=\"month\">".JText::_(date ('F')).", </span>"; echo "<span class=\"year\">".JText::_(date ('Y'))."</span>"; echo "</p>"; ?> </div> <div id="contact"> <?php if ($phone != '') { ?> <ul style="float: left; margin-right: 10px;" class="typo-list list-phone"> <li>&nbsp;<span class="icon">&nbsp;</span>Telefoon: <strong><?php echo $phone; ?></strong></li> </ul> <?php } ?> <?php if ($mail != '') { ?> <ul style="float: left;" class="typo-list list-mail"> <li>&nbsp;<span class="icon">&nbsp;</span>Email: <strong><?php echo $mail; ?></strong></li> </ul> <?php } ?> </div> </div> </div> <?php endif; ?> <div id="header" class="main <?php echo @$htb; ?>"> <div class="main-inner clearfix"> <h1 class="logo" id="site-logo"> <a href="<?php echo $this->baseurl; ?>/" title="<?php echo $siteName; ?>"></a> </h1> <?php if ($this->countModules('search')): ?> <div id="search"> <jdoc:include type="modules" name="search" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('topmenu')): ?> <div id="topmenu"> <jdoc:include type="modules" name="topmenu" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('slider')): ?> <div id="slideshow"> <jdoc:include type="modules" name="slider" style="raw" /> </div> <?php endif; ?> </div> </div> <div id="mainnav-wrapper" class="main"> <div class="mainnav main-inner clearfix"> <?php if($this->countModules('login')) : ?> <a href="#" id="openlogin" title="<?php echo JText::_('LOGIN_BUTTON'); ?>">Open/Close</a> <?php endif; ?> <?php if($this->countModules('feedback')) : ?> <a href="#" id="openfeedback" title="<?php echo JText::_('FEEDBACK_BUTTON'); ?>">Open/Close</a> <?php endif; ?> <?php if ($facebooknetworking != '' || $twitternetworking != '' || $rssnetworking != '') : ?> <div id="top-social"> <ul class="social-icons"> <?php if ($facebooknetworking != '') : ?><li><a class="facebook" href="<?php echo $facebooknetworking; ?>">&nbsp;</a></li><?php endif; ?> <?php if ($twitternetworking != '') : ?><li><a class="twitter" href="<?php echo $twitternetworking; ?>">&nbsp;</a></li><?php endif; ?> <?php if ($rssnetworking != '') : ?><li><a class="rss" href="<?php echo $rssnetworking; ?>">&nbsp;</a></li><?php endif; ?> </ul> </div> <?php endif; ?> <?php require_once JPATH_BASE.'/templates/'. $this->template . '/tools/menu.php'; ?> </div> </div> <?php if($this->countModules('login')) : ?> <div id="login-wrapper"> <div id="login-wrapper-div"> <div id="dnp-login"> <jdoc:include type="modules" style="xhtml" name="login" /> </div> <!-- <a href="#" id="openlogin" title="<?php echo JText::_('LOGIN_BUTTON'); ?>">Open/Close</a> --> </div> </div> <?php endif; ?> <?php if($this->countModules('feedback')) : ?> <div id="feedback-wrapper"> <div id="feedback-wrapper-div"> <div id="dnp-feedback"> <jdoc:include type="modules" style="xhtml" name="feedback" /> </div> <!-- <a href="#" id="openfeedback" title="<?php echo JText::_('FEEDBACK_BUTTON'); ?>">Open/Close</a> --> </div> </div> <?php endif; ?> <?php if ($this->countModules('top-portfolio')): ?> <?php $topht = 'ht';?> <?php $ct = 'ct';?> <div id="top-portfolio" class="main"> <div class="main-inner clearfix"> <jdoc:include type="modules" name="top-portfolio" style="dnpxhtml" /> </div> </div> <?php endif; ?> <?php if ($this->countModules('top-1') || $this->countModules('top-2') || $this->countModules('top-3') || $this->countModules('top-4')): ?> <?php //counting stuff $topmodules = $this->countModules('top-1 + top-2 + top-3 + top-4'); if ($topmodules >= 4) {$topclass = "4";} else if ($topmodules < 4) {$topclass = $topmodules;} ?> <?php if ( $this->countModules('top-portfolio') || ($this->countModules('top-1') || $this->countModules('top-2') || $this->countModules('top-3') || $this->countModules('top-4')) ) { $ht = "ht"; } ?> <div id="top-wrapper" class="main spotlight columns-<?php echo $topclass .' '. @$topht; ?>"> <div class="main-inner"> <?php if ($this->countModules('top-1')): ?> <jdoc:include type="modules" name="top-1" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('top-2')): ?> <jdoc:include type="modules" name="top-2" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('top-3')): ?> <jdoc:include type="modules" name="top-3" style="dnpxhtml" /> <?php endif ; ?> <?php if ($this->countModules('top-4')): ?> <jdoc:include type="modules" name="top-4" style="dnpxhtml" /> <?php endif ; ?> </div> </div> <?php endif ; ?> <?php if ($hidecontent != 'enable'): ?> <div id="main-wrapper" class="main"> <div class="main-inner clearfix"> <?php if ($this->countModules('position-5')): ?> <div class="left <?php echo $ht; ?>" id="left" > <jdoc:include type="modules" name="position-5" style="dnpxhtml" /> </div> <?php endif; ?> <?php if ($this->countModules('position-5') && !$this->countModules('position-7')) { $mainClass = "hl"; } else if (!$this->countModules('position-5') && $this->countModules('position-7')) { $mainClass = "hr"; } else if ($this->countModules('position-5') && $this->countModules('position-7')) { $mainClass = "hl hr"; } else if (!$this->countModules('position-5') && !$this->countModules('position-7')) { $mainClass = ""; } ?> <div id="content" class="<?php echo $mainClass .' '. $ht .' '. @$ct; ?>"> <?php if ($this->countModules('content-top')): ?> <div id="content-top"> <jdoc:include type="modules" name="content-top" style="dnpxhtml" /> </div> <?php endif; ?> <div class="component-wrapper"> <jdoc:include type="message" /> <?php if ($this->countModules('left-inner')): ?> <div class="left-inner" id="left-inner" > <jdoc:include type="modules" name="left-inner" style="dnpxhtml" /> </div> <?php endif; ?> <jdoc:include type="component" /> </div> <?php if ($this->countModules('content-bottom')): ?> <div id="content-bottom"> <jdoc:include type="modules" name="content-bottom" style="dnpxhtml" /> </div> <?php endif; ?> </div> <?php if ($this->countModules('position-7')): ?> <div class="right <?php echo $ht; ?>" id="right" > <jdoc:include type="modules" name="position-7" style="dnpxhtml" /> </div> <?php endif; ?> </div> </div> <?php endif ; ?> <?php if ($this->countModules('bottom-portfolio')): ?> <div id="bottom-portfolio" class="main"> <div class="main-inner clearfix"> <jdoc:include type="modules" name="bottom-portfolio" style="dnpxhtml" /> </div> </div> <?php endif; ?> <?php if ($this->countModules('bottom-1') || $this->countModules('bottom-2') || $this->countModules('bottom-3') || $this->countModules('bottom-4') ) : ?> <?php $pathwayhb = 'hb'; $botmodules = $this->countModules('bottom-1 + bottom-2 + bottom-3 + bottom-4'); if ($botmodules >= 4) {$botclass = "4";} else if ($botmodules < 4) {$botclass = $botmodules;} ?> <div id="bottom-wrapper" class="main spotlight columns-<?php echo $botclass; ?>"> <div class="main-inner clearfix"> <?php if ($this->countModules('bottom-1')): ?> <jdoc:include type="modules" name="bottom-1" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('bottom-2')): ?> <jdoc:include type="modules" name="bottom-2" style="dnpxhtml" /> <?php endif; ?> <?php if ($this->countModules('bottom-3')): ?> <jdoc:include type="modules" name="bottom-3" style="dnpxhtml" /> <?php endif ; ?> <?php if ($this->countModules('bottom-4')): ?> <jdoc:include type="modules" name="bottom-4" style="dnpxhtml" /> <?php endif ; ?> </div> </div> <?php endif ; ?> <?php if ( $this->countModules('breadcrumbs') || $shcount > 0 ): ?> <div id="pathway" class="main <?php echo $pathwayhb; ?>"> <div class="main-inner clearfix"> <jdoc:include type="modules" name="breadcrumbs" style="raw" /> <?php if( $shcount > 0 ) : ?> <ul class="sharelist"> <?php require_once JPATH_BASE.'/templates/'. $this->template . '/tools/sharing.php'; ?> </ul> <?php endif; ?> <div class="top-link"> <a id="gototop" href="#site-wrapper" title="<?php echo JText::_('TOP_DESC')?>">&nbsp;</a> </div> </div> </div> <?php endif; ?> <?php if ($this->countModules('footer') || $this->countModules('footernav')): ?> <div id="footer-wrapper" class="main"> <div class="main-inner"> <div id="footer"> <jdoc:include type="modules" name="footer" style="raw" /> </div> <div id="footernav"> <jdoc:include type="modules" name="footernav" style="raw" /> </div> </div> </div> <?php endif ; ?> </div> <jdoc:include type="modules" name="debug" /> </body> </html>

Edit Jelle: Ik heb alweer de code tussen codetags geplaatst, volgende keer graag zelf doen.
  • robbiewet
  • robbiewet's berichtenfoto Heeft onderwerp gestart
  • Joomla!NL ontdekker
  • Joomla!NL ontdekker
  • Berichten: 46

Module posities omwisselen

06 jul 2016 23:36
#12
Als je zegt "de gehele breedte van de pagina" dan bedoel je dus dat stukje in het midden, en niet de "full width" van de browser? Vandaar even de verwarring met die 980px.

Het lijkt er op dat je toch niet helemaal goed hebt gekopieerd. Als ik kijk naar de code in het eerste blok (de oorspronkelijke code) en die in het tweede blok (de aangepaste) dan zie ik sowieso dat je niet helemaal goed gekopieerd hebt.
Het relevante gedeelte in de eerste begint met:
Code:
<div id="header" class="main <?php echo @$htb; ?>"> <div class="main-inner clearfix"> <h1 class="logo" id="site-logo"> <a href="<?php echo $this->baseurl; ?>/" title="<?php echo $siteName; ?>"></a> </h1> <?php if ($this->countModules('search')): ?> <div id="search"> <jdoc:include type="modules" name="search" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('topmenu')): ?> <div id="topmenu"> <jdoc:include type="modules" name="topmenu" style="raw" /> </div> <?php endif; ?> </div> </div> <div id="mainnav-wrapper" class="main"> <div class="mainnav main-inner clearfix">

en de aangepaste met:
Code:
<div id="header" class="main <?php echo @$htb; ?>"> <div class="main-inner clearfix"> <h1 class="logo" id="site-logo"> <a href="<?php echo $this->baseurl; ?>/" title="<?php echo $siteName; ?>"></a> </h1> <?php if ($this->countModules('search')): ?> <div id="search"> <jdoc:include type="modules" name="search" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('topmenu')): ?> <div id="topmenu"> <jdoc:include type="modules" name="topmenu" style="raw" /> </div> <?php endif; ?> <?php if ($this->countModules('slider')): ?> <div id="slideshow"> <jdoc:include type="modules" name="slider" style="raw" /> </div>

Ik mis dus in de aangepaste code bijvoorbeeld op het eind van die header div de twee afsluitende div's
  • rovel
  • rovel's berichtenfoto
  • Bekend met Joomla!NL
  • Bekend met Joomla!NL
  • Berichten: 117
Moderators: JelleRomke
Tijd voor maken pagina: 0.889 seconden
Gemaakt door Kunena

Wil je Joomla!NL steunen?

Steun Joomla!NLAlle teamleden werken enthousiast, op vrijwillige basis, mee aan Joomla!NL. Maar een website met forum kost nu eenmaal geld. Dus als je Joomla!NL wilt steunen, dan kan dat, graag zelfs!

Lees hier meer informatie