Page 1 of 1

banner module links not working from index page

Posted: Sat Apr 14, 2007 11:41 pm
by elmarko
Hi,

Sorry to bother you guys but i started to use the banner module and I am having a slight issue.

Basically my problem (and I'm sure theres a very quick answer for this) is that the module doesn't go to the link (which is an internal site link) when clicked on from the index page
(http://ourplaice.co.uk/markcormack/) but when clicked on from a page that isn't the index (for example, http://ourplaice.co.uk/markcormack/inde ... -for-print ) everything works ok and does go to the link.

So basically i want to have people see on of the rotating banners which advertise different sections of the site, click them and go through to that section of the site

Any ideas whats going wrong here?

Thanks
Mark

Re: banner module links not working from index page

Posted: Sun Apr 15, 2007 12:21 am
by Bob
Hi elmarko,

My advice, (I'm kinda new at this, but I got my banners working OK) is, in the "manage banners", under content (I'm guessing you got this far anyhow)... just put in the URL of the banner that's gonna be displayed the actual URL... I don't think "smarty tags" like {cms_selflink page="Photography"} will work .. .I could be wrong. So in your case, if you want the particular banner to go to a specific page, just put the actual http://www.yoursite.com/index.php?page= ... page.  The only problem is that it will probably open up in a new page/tap on your browser. I don't see an option for _self or _top to target the specific page.

Another work around, is to not use the banners module for yout purpose. Afterall, you want viewers to stay on your site and look at your work. There's a Java Script at http://www.dynamicdrive.com/dynamicinde ... slider.htm that works for me in a "timed" instead of "random on refresh" way. It's a bit of a pain to use and tweak, and probably cheezy, but it works for me... just make all your links actual urls to the specific page and target it for _self. You can set the time that each image changes, each image can be a link. You just gotta either tweak or dump the CSS all together (I dumped it) and some tweaking in the Java Script ( i forget what I did and why I did it)... but basically, you can set it up without all the "next" or "image name" stuff.

That aside, there's probably some better answers from the true gurus on this site.

Re: banner module links not working from index page

Posted: Sun Apr 15, 2007 7:45 am
by elmarko
Hi Bob, thanks for the reply.

Yeah i put the whole url in the url section on the manage banners bit. Same thing, it works fine when you click on a banner on a page inside the site but when you've clicked on a banner on the index page it just refreshs and the url in the address bar at the top of the browser returns a long string that says:

http://ourplaice.co.uk/markcormack/inde ... eturnid=15

I had been using a javascript option that did the same thing but was being a bit of a jerk in IE so when I found this baner module solution i was quite chuffed. May have to go back to it now :( 

Any ideas? gurus?

Mark

Re: banner module links not working from index page

Posted: Mon Apr 16, 2007 2:21 am
by Bob
Hi again... still no Guru yet...

1.) Maybe you got the smarty tag or syntax in your index page wrong. (Throw a snippet of the relevent code your using... maybe someone might catch something you overlooked. It happens all the time!)

2.) Bear with me on this one: I ran into a similar situation with my "Section Headers" ... I have drop down menues, and the "Section Header" of each "DropDown" menu were linkable to my home page, which was a "splash/intro" page, which I did not want. I wanted my Section Headers to highlight and show the dropdown and that's it. So I did fix it, but I don't know why it got fixed, but it had to do with my "menu manager" module. I had to import and copy another meun template... it's a long shot, and I'm not trying to bite off your post to solve my issue which is fixed, ... I'm just curious if there is a relation to what I had and what you got.

3.) IE is a be-aarch... but the JS I linked earlier does work... OK it works in IE7... .no clue on earlier IE.

Re: banner module links not working from index page

Posted: Thu Jul 09, 2009 5:26 am
by yankee80
I had exactly the same problem and I just figured out that the banners module has a bug:

It will not redirect properly after a banner click unless the template in use has a {content} tag.

My front page has no {content} so I solved it by adding:

{content}

Re: banner module links not working from index page

Posted: Thu Jul 09, 2009 7:01 pm
by reneh
Almost all modules that return a result after you click - MUST have a {content} tag. Its the way cmsms mostly is made (at least the 1.x branch).