This forum is for assistance with theme development.

Background Images

What is the best way of doing background images?

I have added an image field to basic page. I want to have full screen-width images with text over them on my home page.

I have set up a css library for my theme but i'm a bit confused as to how I can access the images in my twig template (page--front.html.twig).

Thanks!!

Connect and read external MYSQL data base to Drupal V.7

We are in interesting project where the drupal full search form need to search also in an external php / my sql database for content.

We know what fields of a specific table of the my sql database have to be search in.

We have access to the database.

We don’t know how to connect the drupal search form with the external database table in order if someone looks for example for „online banking“ and in the database is a document for this - it will be shown with the full text search of the drupal platform.

Thanks for help & support,

César de la Cal

All themes in website disabled without any action from me in Drupal 7

Kindly I need your support to help me solve my below problem.
Sometimes I open my website and I found this errors:

Notice: undefined index in drupal_theme_initialize()(line in include/theme.inc)

Notice: trying to get property of non-object in drupal_theme_initialize()(line in include/theme.inc)

Notice: trying to get property of non-object in _theme_load_registry()(line in include/theme.inc)

And all data in website disappear and this message appears:
"No front page content has been created yet"

Views Slideshow - Admin Config

I am new to Drupal (but have been a developer/designer for a long time) and trying to figure out the Block/View relationship as it applies to the Views Slideshow.

The main config I want to do is to set the slideshow for the frontpage only. But there will also be other content on the home page (normal text).

I have verified that the module itself and jquery.cycle is working fine. I can create a block or a view(page type) and set it to slideshow and it shows fine. It also will show in the preview with no problems.

Picture position problem in block.

Hello, i try a lot ways, spend all day in code modification and still no luck.

Maybe some pro's can help. :)

Problem Only local images are allowed.

here admin code: http://pastebin.com/c4va0gps.
Updated admin code: http://pastebin.com/ZyVzr0ih (without align="left")

How to display {{ site_name }} in menu--main.html.twig

Hello Everyone,

This is my very first time using Drupal and I'm new to twig so I'm trying to figure this stuff out. I can't seem to find an answer to my problem though.

I'm using the foundation 6 framework and it has the logo as a list item in the menu. So I hard code the list item in the menu--main.html.twig but when I try to use {{ site_name }} or {{ site_slogan }} the values are null. I'm not sure why these are null because they work in the block--system-branding-block.html.twig file.

Could someone please take a moment to educate me, I'd appreciate it.

Pages

Subscribe with RSS Subscribe to RSS - Theme development