You are here

README.txt in Views Attach Library 8.x

Same filename and directory in other branches
  1. 8 README.txt
  2. 2.0.x README.txt
Overview:
-------------------------------

The library in views module is designed to attach JS and CSS library in views,
by providing just library name.


Installation and configuration:
-------------------------------

Installation is as simple as copying the module into your 'modules' contrib
directory, then enabling the module.

To add library in view follow below steps
1) Create or edit view
2) Find Attach Library section
3) Click on add library or edit library 
4) Add or edit library name in textfield.

########## default view section ######### 

For example there is a custom module called "abc" and this module has
library called "abc-js" and this library has 2 js(abc1.js , abc2.js)
and 1 css(abc.css) file.

so add "portal_abc/abc-js" in textfield which is nothing but just library name,
where "abc" is module or theme name and "abc-js" is library name.
so this view will include 2 js(abc1.js , abc2.js) and 1 css(abc.css) file.

########## default view section end ########

#########  View display section ############

If view has block or page display where you want add another library ,
so just go to that block or page display and click on add library or edit library,
then add or edit library name in textfield.

For example there is a custom module called xyz and this module has
library called xyz-js and this library has 2 js(xyz1.js , xyz2.js)
and 1 css(xyz.css) file. 

so add "xyz/xyz-js" in textfield which is nothing but just library name.
where "xyz" is module or theme name and "xyz-js" is library name.
so this view display will include 2 js(xyz1.js , xyz2.js) and 1 css(xyz.css) file.

########## View display section end ######## 


For a full description visit project page:
https://www.drupal.org/project/library_in_views

Bug reports, feature suggestions and latest developments:
http://drupal.org/project/issues/library_in_views


---REQUIREMENTS---

*View & view UI
 

MAINTAINERS
-----------
Current maintainers:
* Hardik Patel - https://www.drupal.org/user/3316709/
* Yogesh Chougule - https://www.drupal.org/user/724666/
* Rahul Lamkhade - https://www.drupal.org/user/2718915/


File

README.txt
View source
  1. Overview:
  2. -------------------------------
  3. The library in views module is designed to attach JS and CSS library in views,
  4. by providing just library name.
  5. Installation and configuration:
  6. -------------------------------
  7. Installation is as simple as copying the module into your 'modules' contrib
  8. directory, then enabling the module.
  9. To add library in view follow below steps
  10. 1) Create or edit view
  11. 2) Find Attach Library section
  12. 3) Click on add library or edit library
  13. 4) Add or edit library name in textfield.
  14. ########## default view section #########
  15. For example there is a custom module called "abc" and this module has
  16. library called "abc-js" and this library has 2 js(abc1.js , abc2.js)
  17. and 1 css(abc.css) file.
  18. so add "portal_abc/abc-js" in textfield which is nothing but just library name,
  19. where "abc" is module or theme name and "abc-js" is library name.
  20. so this view will include 2 js(abc1.js , abc2.js) and 1 css(abc.css) file.
  21. ########## default view section end ########
  22. ######### View display section ############
  23. If view has block or page display where you want add another library ,
  24. so just go to that block or page display and click on add library or edit library,
  25. then add or edit library name in textfield.
  26. For example there is a custom module called xyz and this module has
  27. library called xyz-js and this library has 2 js(xyz1.js , xyz2.js)
  28. and 1 css(xyz.css) file.
  29. so add "xyz/xyz-js" in textfield which is nothing but just library name.
  30. where "xyz" is module or theme name and "xyz-js" is library name.
  31. so this view display will include 2 js(xyz1.js , xyz2.js) and 1 css(xyz.css) file.
  32. ########## View display section end ########
  33. For a full description visit project page:
  34. https://www.drupal.org/project/library_in_views
  35. Bug reports, feature suggestions and latest developments:
  36. http://drupal.org/project/issues/library_in_views
  37. ---REQUIREMENTS---
  38. *View & view UI
  39. MAINTAINERS
  40. -----------
  41. Current maintainers:
  42. * Hardik Patel - https://www.drupal.org/user/3316709/
  43. * Yogesh Chougule - https://www.drupal.org/user/724666/
  44. * Rahul Lamkhade - https://www.drupal.org/user/2718915/