Wednesday, May 23rd

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Using an Iframe in the Footer Menu?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Using an Iframe in the Footer Menu?

Using an Iframe in the Footer Menu? 2 years, 8 months ago #1947

  • dman2306
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1
Hi,

I have created a footer menu item on a site, and I am trying to make the footer menu be contained in an Iframe (mainly because I don't want to display the same code on every page of the web site in the footer.

I am not having much success in making the actual menu items display correctly though. Its there an easy way to go about doing this? If there are any further bits of info I can provide, please let me know....

Cheers,
Dallas

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1948

  • buipy001
  • OFFLINE
  • Administrator
  • Posts: 250
  • Karma: 12
Is the footer menus different on every page or did you want to just cut down on load time of the footer menu on every page?

If the menus are different on every page then i suggest using different menu modules for each of the pages.

If it is the other then perhaps hard coding the menu in to the template to help increase speed and load time that way might be a goer.
The only limitation is your imagination
www.pbwebdev.com.au

Twitter: twitter.com/astroboysoup
Facebook: www.facebook.com/pbwebdev

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1949

agree with bui - sounds like you put your footer in teh template - put it in module if you don't want it on all pages....... send url for more help , if available and if needed
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1950

  • dman2306
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1
Hi buipy001,

Thanks heaps for this. The footer menu will be the same on the whole site, so would not need to make modules etc.

I want to cut down load times, but also, want to reduce duplicate code on every page of the site. I have found on sites I have done (manual html), it has worked better on the SEOing of the site - that is partly my main motivation.

I have the footer page in an Iframe, but the menu's links are displaying at sitename.com.au/templates/webuyhomes/footer-menu.php#

Any hints or tips you could provide, to stop the above from happening, and making the links work to point to the actual pages would be great.

Cheers,
Dallas

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1951

  • buipy001
  • OFFLINE
  • Administrator
  • Posts: 250
  • Karma: 12
Sat night, warm weather and we're all online on the forums... at least I have my wine.
The only limitation is your imagination
www.pbwebdev.com.au

Twitter: twitter.com/astroboysoup
Facebook: www.facebook.com/pbwebdev

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1953

  • dman2306
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1
You have wine - but Im here in Sydney

I guess I will have to settle for Coke Zero

Okay, about the question, I think I have placed the link in the template, so will try and work out the menu.

The site has not been delegated yet, so I have not got a web address to show. Can I post a message you both to show you want i mean?

Cheers,
Dallas

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1954

  • dman2306
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1
Have just checked the template - it has the following code in it:

<iframe style="border:none;margin:auto;color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;font-size:10px;text-decoration:none;" src ="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/footer-menu.php" width="100%" height="50">

I am so new to this, I think what you are saying is that I need to create a module with this code in it, and add the module call into the template?

Cheers,
Dallas

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1964

  • buipy001
  • OFFLINE
  • Administrator
  • Posts: 250
  • Karma: 12
almost,

What I mean is to hard code the menu code straight in to the template.

e.g.

<ul>
<li><a href="/">Home</a></li>
</ul>

That way you won't rely on Joomla making an SQL call or two to generate the menu or module content areas. It all pulls and renders it straight from the menu.
The only limitation is your imagination
www.pbwebdev.com.au

Twitter: twitter.com/astroboysoup
Facebook: www.facebook.com/pbwebdev

Re:Using an Iframe in the Footer Menu? 2 years, 8 months ago #1965

  • dman2306
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 1
Hi Bui,

Thanks for this mate - this would actually be quite workable, because I will not have that many silo's anyway. Should have thought of this in the first place.

Cheers - Dallas
  • Page:
  • 1
Time to create page: 0.56 seconds
You are here: Forum