T
T
Timur Mukhtarov2014-08-05 13:25:46
PHP
Timur Mukhtarov, 2014-08-05 13:25:46

How to insert your code through the Views module?

Situation: You need to insert the code on the Drupal site through the views module, with the ability to change pictures and text from the admin panel. How to do it? Where to put JS and CSS code? What code should be inserted in the template page to display information?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drupby, 2014-08-05
@fearintino

in this case, the easiest would be https://www.drupal.org/project/jcarousel + css

U
UksusoFF, 2014-08-05
@UksusoFF

https://www.drupal.org/project/views_php
But why? Describe in more detail what you need, otherwise it is not clear.
JS and CSS are too many options, starting with:

function THEME_NAME_preprocess_page(&$variables) {
   drupal_add_css('style.css');
   drupal_add_js('script.js');
}

And ending with
https://www.drupal.org/project/css_injector
https://www.drupal.org/project/js_injector

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question