Answer the question
In order to leave comments, you need to log in
How to set up your theme for drupal?
Hello. The question is. I screwed up the made-up site on dupal, through the regions. The site has sliders written by hand. What is the right way to display my sliders so that their content can be changed through the admin panel?
Answer the question
In order to leave comments, you need to log in
Can you please provide some links to a detailed description of how to do this?
Create a block. Can be done manually. You can use views (there are a bunch of slider modules for it). In the block settings, specify in which region the block should be displayed.
I usually do this: I
create a new type of document "slide", in which there will be a field - containing the content of the slide.
if there is only a picture, then a field of type "image".
if you need several different sliders, you can add a field of the "link to term" type, for which you create a "sliders" dictionary.
I create a new view, select the type of material, specify the formatting.
in the advanced properties of the view there is a "themization" field. it specifies which templates the view uses and how to override them.
I copy the template from the views module folder to the theme folder, rename it so that it does not overlap with others.
I add a script call to the view template code:
the second is either a line animation start script or a link to a file.
then I will theme the block or page you need.
in the output code, I look at the id of the elements and edit the CSS and your JS for the output of the HTML view.
minus: each slide is a separate node.
You can't edit all the slides in one place at once.
in general, you can create a separate document type, make the node body field multiple, rewrite the node output template and the field so that the output would be a slider.
node--%nodetype_machine_name%.tpl.php
field--body--%nodetype_machine_name%.tpl.php
only, you will need to install the NodeBlock module and InternalNodes.
the first is to display the node as a block, the second is to make the node inaccessible through navigation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question