Hi vasily,
i am trying to assign your module's functions to a custom menu block with 2-3 menu links. I want to use "single-page" url in one of these links without any changes at the frontpage. Is that possible? I am using bartik 7.7.

Comments

yaremchuk’s picture

Status: Active » Needs review

Hi,
just now module works with Primary links only,
but I think that during some time we will add the ability to use custome menu.

By the way you can take a look to the js/bartik.ini

Please find

; The menu HTML DOM #ID
menu = "#main-menu"

You should indicate the ID or CLASS of your custom menu,
and seems it should works.

please let me know if it is not, thanks

dpaul’s picture

Hi again and thanks for the reply.
Well, i have tried the following...

1)Made two pages and set them autolinks from titles for example "about" and "contact"
2)Builded a new menu with the links to the pages
3)Assigned the source for the bartik secondary menu from the menu above
4)Changed the ID at the bartik.ini to "#sencodary-menu"

I have tried the above steps with both Bartik and a subtheme that i have made and nothing happens. Also i tried it with the main-menu but with no result again. Am i doing something wrong?

yaremchuk’s picture

Did you visit /single_page of your site?

dpaul’s picture

As far as I can see only the "single_page" option in front page path works for me. Nor the main menu (without any change to the frontapage path), neither the secondary menu. I forgot to mention that my drupal installation is in a subfolder like /site/mydrupal/ . Does that creates the issue?

PS: Yes i can visit the /single_page

yaremchuk’s picture

Hi dpaul,

seems module does not work with menu in the blocks,
I checked it and founs some bugs,
I think I can fix them but not just now.

Could you try with primary inks in the Bartik or it's sub-theme?
Let me know if id does not work.

Thanks,
and sorry that I can not allocate time just now to fix the issue.

dpaul’s picture

Hi vasily and thanks for your time.
With primary links works in the Bartik either I visit the /single_page url or I change the frontpage path to single_page. With it's subtheme though, somehow doesn't work when I have the default frontpage url. Maybe I have done something wrong when I made the subtheme. I have tested it with the 7.x-1.0-alpha2 version. That's all and thanks again for your help. I am looking forward for the new release. If I manage to get it work I'll make a post here. Keep up the great work!

yaremchuk’s picture

Status: Needs review » Needs work

Hi dpaul,
I'll let you know, ASAP when I'll finish new version.

Thanks!
Vasily

GemVinny’s picture

Priority: Normal » Critical

Could you please explain how you got it working in the first place?

I have follewed everything correct - but it's not working properly as you can see here

http://gemv8585.lwsuk.com/

Thank you!

yaremchuk’s picture

Hi Gemma,

thank you for the link, it is very strange issue,
I will take a look ASAP and let you know.

Please, wait my update.

Thanks,
Vasily

yaremchuk’s picture

Alos please indicate version of module that you use.

pitxels’s picture

hi, I am modifying the file sites/all/modules/single_page_website/js/bartil.ini
like this
menu = ".block-menu"

But this change doesn't seems to have efect, even clearing cache...

However when I hardcode the variable menu_element (in the .js files) with .block-menu, the block menus work just fine in all the blocks created.

So I think that the problem is those .ini files.

There should be an admin page where you can edit this clases, this way the module will work with any theme.

Thanks for this cool module :)

nirad’s picture

I got this to work on Pitxels suggestion. The only problem is that the selected menu item isn't highlighted. In other words it doesn't register as "a:active"