Hello everybody,

I placed the link to the modal login form (modal_forms/nojs/login) into a drupal menu entry.
If I click on the menu entry, then I get the "normal" login/user page - but not in a modal form. What shall I do now?

Thx for any help and advice.

phil

CommentFileSizeAuthor
#3 004.png167.7 KBdercheffe
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frjo’s picture

Category: bug » support
Status: Active » Fixed

You need in one way or another add the class "ctools-use-modal" to the link.

dercheffe’s picture

it works fine :D thx.

dercheffe’s picture

Status: Fixed » Closed (fixed)
FileSize
167.7 KB

frjo, please let me ask you one more thing about this fixed bug:

Your solution only works fine as long as I link to "modal_forms/nojs/login" directly.

If I try to mask the login url via the the config page of this module then I get an ajax error code 200. Although the class ctools-use-modal" is added to the link's CSS now.

Also if I try to mask the url with an alias by the path-module manually in my menu I get the same error message.

thanks

dercheffe’s picture

Status: Closed (fixed) » Active
frjo’s picture

Unsure what you mean by mask "via the the config page". What you have there are options to activate scripts that automatically can rewrite e.g. login links in to modal login links.

Have not tested with path aliases but I would have guessed that it works. You should always enter the original path in to the menu item and then let Drupal convert it when needed.

dercheffe’s picture

Unsure what you mean by mask "via the the config page". What you have there are options to activate scripts that automatically can rewrite e.g. login links in to modal login links.

If I choose these options e.g. for the standard Drupal Login ("mydomain.com/user") and I link my menu entry to this page (the css classes you mentioned are included into the link), I still get an error message as you can see on the screenshot (attached an my last post). I guess that the rewrite applies only to standard drupal links, like you have those e.g. below teasers.

It would be great, if there is a way, that the module is working with path aliases too. Especially to improve the SEO friendliness of this module.

thx again for your good work and your help

phil