You are here

README.txt in Node pop-up 7

***********
* README: *
***********

INSTALLATION:
-------------
1. Place the entire npop directory into your Drupal sites/all/modules/
   directory.
2. Enable the Node popup (npop) module by navigating to:
     administer > modules


HOW TO
------
1. Enable module
2. Create link.
2.1. Variant 1: Set data-npop="NODE_NID" (recomended)
2.2. Variant 2: Set href attribute as "ajax/npop/node/[nid]/load/nojs",
     where [nid] nid of node and set link class "use-ajax".
3. Done

Alternative method of creation link programmatically:
You can use function npop_create_link($title, $nid, $options) Where
   $nid is node NID
   $title is Link title
   $options is link options (see l() function in drupal API)


THEMING
-------
1. You can set fields to view in node display settings page
   admin/structure/types/manage/[NODE_TYPE]/display/npop_ajax
2. You can create template node--[node_type]--npop_ajax.tpl.php

Example: for node type "article" create template
node--article--npop_ajax.tpl.php


Author:
-------
ArmRus (https://www.drupal.org/u/armrus)
admin@armrus.net

File

README.txt
View source
  1. ***********
  2. * README: *
  3. ***********
  4. INSTALLATION:
  5. -------------
  6. 1. Place the entire npop directory into your Drupal sites/all/modules/
  7. directory.
  8. 2. Enable the Node popup (npop) module by navigating to:
  9. administer > modules
  10. HOW TO
  11. ------
  12. 1. Enable module
  13. 2. Create link.
  14. 2.1. Variant 1: Set data-npop="NODE_NID" (recomended)
  15. 2.2. Variant 2: Set href attribute as "ajax/npop/node/[nid]/load/nojs",
  16. where [nid] nid of node and set link class "use-ajax".
  17. 3. Done
  18. Alternative method of creation link programmatically:
  19. You can use function npop_create_link($title, $nid, $options) Where
  20. $nid is node NID
  21. $title is Link title
  22. $options is link options (see l() function in drupal API)
  23. THEMING
  24. -------
  25. 1. You can set fields to view in node display settings page
  26. admin/structure/types/manage/[NODE_TYPE]/display/npop_ajax
  27. 2. You can create template node--[node_type]--npop_ajax.tpl.php
  28. Example: for node type "article" create template
  29. node--article--npop_ajax.tpl.php
  30. Author:
  31. -------
  32. ArmRus (https://www.drupal.org/u/armrus)
  33. admin@armrus.net