1
rhoda
how can add slider in home page
  • 2013/11/5 15:11

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23


Hi
I want add a slider in my site theme, but I want slider only shown on the home page and does not display in other pages

How can i find now on the home page or on other pages of the site
Please guide how to do it

Sorry I can not speak English well

2
Bleekk
Re: how can add slider in home page
  • 2013/11/5 17:57

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


there are couple of ways to achieve this. you can use smartys like this:

<{$xoops_dirname}> - The name of the current module directory. If no module is being displayed, this = "system"
<{if $xoops_dirname=="system"}>
here your slider
<{/if}>

<{$xoops_requesturi}> - requested url (e.g. /modules/news/article.php?storyid=1)
<{if $xoops_requesturi=="/modules/publisher/item_id=3"}>
here your slider
<{/if}>


there is a hack from the user trabis that is also really helpfull
https://xoops.org/modules/newbb/viewtopic.php?post_id=337517#forumpost337517

3
rhoda
Re: how can add slider in home page
  • 2013/11/6 6:57

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23



Thank you very much

4
rhoda
Re: how can add slider in home page
  • 2013/11/9 13:26

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23


I have a slider on my site theme and I have a drop down menu ,my cascade menu is at the top of the slider
But my problem:
The sub menus are Behind my slider and do not view sub menus

What is the solution

5
rhoda
Re: how can add slider in home page
  • 2013/11/10 8:09

  • rhoda

  • Just popping in

  • Posts: 14

  • Since: 2010/2/23


My problem was resolved with z-index in css

6
MACTEP
Re: how can add slider in home page
  • 2013/11/10 21:34

  • MACTEP

  • Not too shy to talk

  • Posts: 127

  • Since: 2009/4/4 5


It's much easier .
Create Block
Place on top of the site
Only display on the homepage.

Login

Who's Online

187 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits