GithubHelp home page GithubHelp logo

Deep linking directly to tabs about pivot HOT 3 CLOSED

hutchy68 avatar hutchy68 commented on August 22, 2024
Deep linking directly to tabs

from pivot.

Comments (3)

mbilsky avatar mbilsky commented on August 22, 2024

Actually, I just did some reverse engineering through the code and found that changing:

deep_linking : false, to deep_linking : true,

at the top of assets\scripts\foundation\foundation.tab.js seems to have enabled deep linking!

Is this bad to have done/will break anything that you can think of?

If not, a suggestion would be to consider adding a parameter to the configuration array to enable this.

Here is the page I am using it on: https://mattbilsky.com/mediawiki/index.php?title=Impossible_Incorporated_LLC#Home

... it even seems to work with the domain I have forwarding to it (i.e. if you go to https://ImpossibleIncorporated.com#Consulting it will take you directly to the consulting page even though the domain only forwards to the mediawiki page). Pretty cool.

Otherwise, Pivot has been amazing!!! Keep up the great work!

from pivot.

Hutchy68 avatar Hutchy68 commented on August 22, 2024

Cool, but you are using Foundation 6 docs and Pivot is Foundation 5.

See https://stackoverflow.com/questions/20894632/deep-linking-foundation-5-tabs

and

https://foundation.zurb.com/sites/docs/v/5.5.3/components/tabs.html which contains a deep-link to a 3rd panel. Here is the code that makes it possible.

<ul class="tabs" data-tab="" role="tablist" data-options="deep_linking: true">
<li class="tab-title" role="presentational"><a href="#tabs-deeplink-1" role="tab" tabindex="0" aria-selected="false" controls="tabs-deeplink-1">Tab 1</a></li>
<li class="tab-title" role="presentational"><a href="#tabs-deeplink-2" role="tab" tabindex="0" aria-selected="false" controls="tabs-deeplink-2">Tab 2</a></li>
<li class="tab-title active" role="presentational"><a href="#tabs-deeplink-3" role="tab" tabindex="0" aria-selected="true" controls="tabs-deeplink-3">Tab 3</a></li>
</ul>

from pivot.

mbilsky avatar mbilsky commented on August 22, 2024

That makes sense...and works (I disabled my bodge and used that code).

Thanks for the quick reply! Hopefully this will help anyone with the same idea

from pivot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.