Jump to content
TNG Community

solved // Template 4/Left Menu - Hoverable Dropdown


pipsi

Recommended Posts

I have tried several ways to integrate my extrapgs, a hoverable dropdown in the left menu seemed to be the most space-saving option for me.

on the w3schools page I found the following:
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_js_dropdown_hover

I have integrated - after some attempts - the hoverable dropdown ("mydropdown") as you can see in the att. index.php, mytngstyle.css and templatestyle.css
(currently no longer in my online version because I still have some problems!).

I myself cannot solve three problems and hope for help!

* the {$text['families']} are not read (my page is multilingual), the links work anyway

* the color codes entered in the Templatestyle  or mytngstyle are not transferred - or only partially?

* unfortunately the extrapgs link doesn't work, no matter how I make the entry for it - last of my attempts:

  <li><a href="/extrapgs/Dočkal - Hauschroniken.php\" class=\"lightlink\">Chronik Ballin Nr.15 und Groß Meseritsch Nr.201</a></li>

https://www.schuster-pippersteiner.at/extrapgs/Dočkal - Hauschroniken.php/ 

instead of

https://www.schuster-pippersteiner.at/genealogie/TNG/extrapgs/Dočkal - Hauschroniken.php
 

 

  these two links work in the hoverable dropdown.... 

  <li><a href="parental_line.php?personID=I2360&tree=SchuPipp\" class=\"lightlink\">Schuster/Blauensteiner</a></li>

  <li><a href="parental_line.php?personID=I1773&tree=SchuPipp\" class=\"lightlink\">Pippersteiner/Dočkal</a></li>

 

THANK you so much in advance!
Ingrid

 

index.txt

templatestyle.txt

mytngstyle.txt

$text.PNG

backgroundcolor.PNG

Link to comment
Share on other sites

The problem with the links is the \ mark you have after them, before the " - remove that \ and the links should work. You don't need \ before " when you are writing in HTML code - only when you are writing it for PHP to be in an echo statement.

Roger

Link to comment
Share on other sites

vor 19 Stunden schrieb theKiwi:

The problem with the links is the \ mark you have after them, before the " - remove that \ and the links should work. You don't need \ before " when you are writing in HTML code - only when you are writing it for PHP to be in an echo statement.

Roger

@theKiwi

Roger,
I have had the input without "\ 

it's now online - this is what happened to the side:
https://www.schuster-pippersteiner.at/genealogie/TNG/extrapgs/Dočkal - Hauschroniken.php/

 

Ingrid

Link to comment
Share on other sites

8 hours ago, pipsi said:

@theKiwi

Roger,
I have had the input without "\ 

it's now online - this is what happened to the side:
https://www.schuster-pippersteiner.at/genealogie/TNG/extrapgs/Dočkal - Hauschroniken.php/

It seems to be working on the left side menu now - where is it giving the link with the / at the end of it?

Roger

Link to comment
Share on other sites

24 minutes ago, theKiwi said:

It seems to be working on the left side menu now - where is it giving the link with the / at the end of it?

Roger

Yes if you remove the slash at the end of the URL it works great

Link to comment
Share on other sites

vor 12 Stunden schrieb tngrlkrz:

Yes if you remove the slash at the end of the URL it works great

THANK you so much Roger and Ron - it WORKS 😍

and I solved the "color-problem" too!

only the $text input isn't read - I'll open a new thread!

$text.PNG

Link to comment
Share on other sites

  • pipsi changed the title to solved // Template 4/Left Menu - Hoverable Dropdown

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...