Open page with accordion tabs, select open tab with url

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Open page with accordion tabs, select open tab with url

Post by macangelo »

Hi

I have a web page with a lot of accordion tabs explaining different types of insurances.

I want to create links to the page that open the page with a specific tab already open:

For example (sorry, the website is in German):
The first item on the page http://www.vjf.info/de_unsere-versicherungen.html says "Gesundheit" (meaning health). When you click on the link "Weitere Informationen" I want not only the page to show up but I also want the health insurance tab already to be open and jump to that tab.

How can I do that?

Thanks a lot
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
nameless1
Posts: 871
Joined: Sun 27. Apr 2008, 23:22

Re: Open page with accordion tabs, select open tab with url

Post by nameless1 »

which kind of framework do you use for tabs. bootstrap?
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Open page with accordion tabs, select open tab with url

Post by macangelo »

Hi nameless1

I'm using Oliver's normal jquery tabs thing (meaning the one that comes with phpwcms).

Best
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
nameless1
Posts: 871
Joined: Sun 27. Apr 2008, 23:22

Re: Open page with accordion tabs, select open tab with url

Post by nameless1 »

any link? no time to try it for my own.
User avatar
Oliver Georgi
Site Admin
Posts: 9792
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Open page with accordion tabs, select open tab with url

Post by Oliver Georgi »

Uwe Du musst lediglich den Anker auswerten und mitgeben. Aber Dein CSS ist nicht optimal zum Jump, ID spingt unter den Header.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Open page with accordion tabs, select open tab with url

Post by macangelo »

Hi Oliver

Wie sieht ein URL aus mit ausgewertetem und mitgegebenem Anker? Z.B. für den Ziel-Tab auf der Seite "http://www.vjf.info/de_im-detail.html", zu dem ich springen und den ich öffnen will, mit der id="manager_haftpflicht"?

Besten Dank!

Uwe
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Oliver Georgi
Site Admin
Posts: 9792
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Open page with accordion tabs, select open tab with url

Post by Oliver Georgi »

Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Open page with accordion tabs, select open tab with url

Post by macangelo »

Danke für die frühe Antwort ;-)

… bei mir öffnet sich zwar die richtige Seite, aber ich komme nicht zu dem Tab und der öffnet sich auch nicht …
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Oliver Georgi
Site Admin
Posts: 9792
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Open page with accordion tabs, select open tab with url

Post by Oliver Georgi »

Die ID existiert nicht. Muss richtig lauten ""http://www.vjf.info/de_im-detail.html#m ... aftpflicht". Aber ohne zusätzlichen Trigger auf den Anker, öffnet sich nix. Außerdem musst Du per JavaScript anweisen, um den Abstand der Höhe des Headers weiter zu springen. Sonst hängt es dahinter und man sieht nichts…
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6446
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Open page with accordion tabs, select open tab with url

Post by update »

Und wie sieht die Lösung jetzt aus?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply