Drupal, place the Web Form on top of the content.

1

I need to do in the Drupal theme to put this Web Form on top of the content instead of below. I do not know how Drupal works, however I have some knowledge of creating Wordpress templates, I downgraded the theme but I do not know which file I should change in order for the Web Form to stay on top of the file.

What is the default file name? How to change this file? I already have access to the theme, but I do not know where to change it.

Professional Theme 7.x-2.04 But I do not think you need to lower the theme to change as I believe file names should have a pattern. (Like Wordpress) Help me find it.

    
asked by anonymous 02.06.2015 / 18:05

3 answers

2

From the administrative menu, go to Structure and Blocks. Within Blocks, there is a block in the Content region called "Main Page Content". See if changing the order of the blocks in Content you get the result you expect.

    
02.06.2015 / 20:37
2

You need to change some files in the theme you are using.

1 - Create a new region for the content you want, this is done in the file seutema.info

regions[conteudoantes]     = 'Itens exibidos antes do conteúdo principal'

2 - In the file page.tpl.php add the new region

<?php
  print render($page['conteudoantes']); 
  print render($page['content']); 
?>

3 - In the blocks, add your webform block in the new region and save.

4 - by warranty, clear all caches

    
21.09.2015 / 20:32
1

I was not able to do this in Drupal itself, however I hid the div from the form, inspected the element, copied the HTML, and wrote the form in the posts HTML itself.

    
09.06.2015 / 14:36