alvarotrigo / fullPage.js

fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple
http://alvarotrigo.com/fullPage/
GNU General Public License v3.0
35.26k stars 7.3k forks source link

Clean links #498

Closed GeoffRose closed 10 years ago

GeoffRose commented 10 years ago

I've got a question about keeping my links clean. Rather than using fullPage.js to build a one page site, I'm breaking into two levels. First, my landing page uses the sections to scroll through high level categories such as design/photography/video, and then one level down, I'm using the slider functions to scroll through specific items in each of those portfolio categories. This second level is where I hit my issue.

The problem I can't seem to solve is keeping slide 1 on any page from being named /category/#home/slide in the link.

page I'm referring to: http://test.geoffroseborough.com/photography/#home

I've used data-anchor to name that slide "slide1" (it'll be a specific portfolio name once I start populating real content), but it still becomes #home and then slides 2 through X become /#home/slide2 when I need it to be photography/slide2 etc etc.

Any idea's on how I can stop this from happening? I'm sure it's something simple I'm just missing.

Thanks for your help! -Geoff

alvarotrigo commented 10 years ago

I don't know how you access to the site http://test.geoffroseborough.com/photography/#home from http://test.geoffroseborough.com/#photography, but fullpage.js needs to keep the section name in front of the slide to know where you are.

This is how it works.

You would need to modify the plugin to work only with one section and multiple slides. If you really need it contact me and we could talk about it.

GeoffRose commented 10 years ago

That actually answered my question. my section div that wraps the slide had "home" set as it's data-anchor.

Thanks!