Doing some tests it works fine when the link is situated in the node content, but adding the same code to a block, nothing happens when the link is clicked.

Why?

Thanks.

Comments

taote’s picture

Title: Anchor not working when placed in a block » Dialog not working when the link is placed in a block
Status: Active » Closed (works as designed)

Oh my mistake!! It wasn't the same code exactly. In link placed in the block, I wasn't adding the dialog title property to the link, and this must be set to have the dialog opened when the link is clicked.

Ok, in case somebody has a similar case, don't forget to include:

  • url
  • title
  • and selector