Page 1 of 1

Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 5:08 pm
by Bluesman
Hi Pablo and wwb'rs. Have done this sometimes but this time I am placing the menu on a masterpage so I don't have to change twice in the menus that usual are on the same page (masterpage).
So it works perfect but I get the warning that I can not have two objects with the same object id on the same page...
How can I work arround this? Can it make issues later on in the project?

Tnx for the best support on the web :D

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 5:15 pm
by crispy68
Make sure to give your objects on a master page that you are using over and over unique id's

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 5:26 pm
by Bluesman
crispy68 wrote: Sun Oct 02, 2022 5:15 pm Make sure to give your objects on a master page that you are using over and over unique id's
Hi crispy, tnx for checking in :D
Thats the problem...
1. I have a masterpage with the function that When the header (containing the menu) scrolls up it reveals the much smaller header containing the same menu.
2. I have placed this main menu on another masterpage so I just have to change once in the meny when building it and in the future when change or update the menu. So I can only have one id on this masterpage where the original menu is.
3. On the original masterpage with the on scroll hide and reveal the headers I have a content place holder in each of the two headers linking to the same original menu in the other masterpage/object

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 5:27 pm
by Bluesman
Sorry... Embedded page containers linking to the menu masterpage :o

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 6:13 pm
by Bluesman
I published a testsite. Filled with blocks as placeholders for get hight on the page so is scrollable at once. When you scroll the page the smaller header appears with the same menu that are linked from the same masterpage...
https://www.chevere.ec/virgin_merced/index.html

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 8:26 pm
by crispy68
So... is it working then? Your demo works as far as I can tell but I'm not clear on what the issue is.

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 8:49 pm
by Bluesman
crispy68 wrote: Sun Oct 02, 2022 8:26 pm So... is it working then? Your demo works as far as I can tell but I'm not clear on what the issue is.
As I wrote... the issue is that I get the warning, and if it can make problem in the future? But other than it's some enoying with the warning it works ok

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 9:28 pm
by crispy68
Without see a demo of your project its hard to say how to fix it but if you are having conflicting ID's it will eventually cause problems.

Re: Hide header when scroll view smaller with same menu

Posted: Sun Oct 02, 2022 11:36 pm
by Bluesman
crispy68 wrote: Sun Oct 02, 2022 9:28 pm Without see a demo of your project its hard to say how to fix it but if you are having conflicting ID's it will eventually cause problems.
I was a little worried for that... can I send to your webpage email?

Re: Hide header when scroll view smaller with same menu

Posted: Mon Oct 03, 2022 1:48 am
by crispy68
See my reply to your email.

Re: Hide header when scroll view smaller with same menu

Posted: Mon Oct 03, 2022 2:16 am
by Bluesman
crispy68 wrote: Mon Oct 03, 2022 1:48 am See my reply to your email.
Hi crispy... no email from you, checked spam and trash folders but no :?

Re: Hide header when scroll view smaller with same menu

Posted: Mon Oct 03, 2022 2:59 am
by crispy68
I resent it.

Re: Hide header when scroll view smaller with same menu

Posted: Mon Oct 03, 2022 11:54 am
by Bluesman
crispy68 wrote: Mon Oct 03, 2022 2:59 am I resent it.
That was better. Tnx crispy, really an eyeopener. I tested the syncronize functions, but for another reason.