1

I want show my users phone number in node.html.twig and I want that robot spammers can't access that. In other words, the phone number should not show up in the page in the initial page load.

When a user clicks a show link/button the phone number should show up.

How can I do that?

4
  • Why do you want to do it in node.html.twig? In Drupal, AJAX is done in modules.
    – avpaderno
    Commented May 31, 2016 at 4:12
  • See here : drupal.stackexchange.com/questions/202649/…
    – user60258
    Commented May 31, 2016 at 9:00
  • That is JavaScript, not AJAX. Also that is a functionality of a module, not a theme. Would you change all the themes you use for a site, just to add that JavaScript?
    – avpaderno
    Commented May 31, 2016 at 13:40
  • Yes . Please help me that I do this .
    – user60258
    Commented Jun 1, 2016 at 10:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.