-
AuthorPosts
-
cgc0202 Friend
cgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
May 29, 2011 at 2:39 pm #164580Hello,
Being able to move “the logo” as a stand-alone module separate from the “header” position offers quite a number of possibilities in the template layout.
For example, in relation to forum thread
“How does one include the right part of the header as “part of the “slideshow” region?”
“the stand-alone logo” module may be integrated as floating module in the “slideshow” position in the FrontPage.
In other pages, “the stand-alone logo” module may be placed in the default “header” position or in any other position desired by the website developer.
To achieve the above:
How does one create a “stand-alone logo” module that is decoupled from the “header” position?Here are some diagrams:
The unfilled (shown in white background) positions will collapse, i.e., not appear.
Cornelio
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
May 29, 2011 at 3:03 pm #393416The above will require creation of a new “logo” module (logo.php), perhaps like this
<div id="ja-logo" class="wrap">
<div class="main clearfix">
<div class="inner clearfix"><?php
$siteName = $this->sitename();
if ($this->getParam('logoType')=='image'): ?>
<h1 class="logo">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
</h1>
<?php else:
$logoText = (trim($this->getParam('logoType-text-logoText'))=='') ? $config->sitename : $this->getParam('logoType-text-logoText');
$sloganText = (trim($this->getParam('logoType-text-sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('logoType-text-sloganText');?>
<div class="logo-text">
<h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
<p class="site-slogan"><?php echo $sloganText;?></p>
</div>
<?php endif; ?></div>
</div>
</div>
and at the same time remove the “logo scripts” in the “header.php”
<div id="ja-header" class="wrap">
<div class="main clearfix">
<div class="inner clearfix"><! --- BEGIN SCRIPT TO REMOVE??? --->
<?php
$siteName = $this->sitename();
if ($this->getParam('logoType')=='image'): ?>
<h1 class="logo">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
</h1>
<?php else:
$logoText = (trim($this->getParam('logoType-text-logoText'))=='') ? $config->sitename : $this->getParam('logoType-text-logoText');
$sloganText = (trim($this->getParam('logoType-text-sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('logoType-text-sloganText');?>
<div class="logo-text">
<h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
<p class="site-slogan"><?php echo $sloganText;?></p>
</div>
<?php endif; ?><! --- //END OF SCRIPT TO BE REMOVED??? --->
<?php if ($this->countModules('top')) { ?>
<div id="ja-vmcurrency">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
<?php } ?><?php if ($this->countModules('vm-cart')) { ?>
<div id="ja-vmcart">
<jdoc:include type="modules" name="vm-cart" style="xhtml" />
</div>
<?php } ?></div>
</div>
</div>
Not sure if the above scripts are correct and what else need to be done so that a NEW “STAND-ALONE LOGO” MODULE will appear in the MODULES Window in the BackEnd.
May someone from the Joomlart staff or others with scripting or programming program correct, edit scripts or suggest other solutions please? Thanks,
Cornelio
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
May 29, 2011 at 6:23 pm #393438And here is a good example of a professional website where “several modules” float inside the slideshow module:
3M Collision Repair Solutions[/url]
One of those modules could be the logo module.
The other feature that I like about the slideshow (ahown in fhs linksx site) is that each image is clickable to transport you to various location, e.g., product page, You Tube video. category listing, etc.
Nice placement of “Search Products”, too — just below the slideshow.
Cornelio
-
AuthorPosts
This topic contains 3 replies, has 1 voice, and was last updated by cgc0202 13 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum