Theming is about the development, adaption and configuration of "themes". A "theme" in Drupal is a set of files containing PHP, templates, Javascript and CSS that in concert provides a certain appearance of a site, and that clearly separates layout and styling of a Drupal site from content and ...

learn more… | top users | synonyms (2)

0
votes
0answers
7 views

module to view theme folder through drupal 7 interface

I am working on this site http://talikulam.com/. I need to change the slid show images. Theme setting allowing to change caption and description only. To change the images I need to go the images ...
0
votes
0answers
5 views

managed_field from theme in Domain Access

I created custom theme with some additional settings in it. Everything works fine when I change theme settings globally, but when I try to remove managed_file field's file (image) in the theme ...
0
votes
0answers
23 views

Custom Template for Node Creation Page: hook_theme not working [on hold]

I have a content type (Job Application) which can be submitted by anonymous user. Hence, from Drupal permission settings page, I have given the permission to allow anonymous users to submit this page. ...
1
vote
1answer
37 views

load node author uid to be used as contextual link inside template.php D7

I need to load node author uid to be used as part of a href link inside template.php, I managed to add a contextual link according to this post, and call it from node.tpl.php but I can't access node ...
0
votes
4answers
39 views

How to display the form fields of content type in a table using custom template file?

I have created a content type Article including the fields Field 1, Field 2, Field 3 ...... All these fields have multiple values. I also created the custom template for this content type. Now I ...
0
votes
2answers
25 views

How to customize Carousel in Bootstrap theme?

I am new to Drupal and want to know how I can customize a certain feature on the site. I am using the Drupal Bootstrap theme and I have added the Bootstrap Carousel in ...
0
votes
1answer
14 views

How to implement pager in custom page template?

in my theme I need a custom front page which displays a filtered set of news and paginated. The news are nodes with content type=news, and every one has a field "is topnews", so that only the freshest ...
0
votes
1answer
34 views

Adding nofollow to specific internal paths

I am looking to add nofollow to specific internal paths when they appear within text anywhere in the posts. I tried using the text filters but I only get the options to either nofollow all links ...
0
votes
1answer
18 views

Get only Taxonomy from $content array

I need to get the taxonomy from the $content array to print in the node template. How can I do it? I tried with $content['taxonomy']. Where can I get a guide with all params in $content array?
0
votes
0answers
4 views

Is it possible to use use $page to render profile2 fields for every user?

I need to separate some elements from the main block, so I'd like to take them from profile2--account.tpl and place them in page--profile-account.tpl. I got it to work for one user, but then I ...
0
votes
0answers
9 views

Full page Omega layout getting rendered inside the same page layout in place of page content (Panels Everywhere)

I am trying to build a custom page layout with Panels, Panels Everywhere and Omega Page Layouts. I have copied omega/templates/system/page.tpl.php in my layout's tpl.php file in child omega theme. I ...
0
votes
0answers
30 views

How custom a form for Bootstrap elements

I make a form programmatically, and I am looking how a web designer can change render. public function buildForm(array $form, FormStateInterface $form_state) { $form['metier'] = array( ...
2
votes
2answers
35 views

Customize HTML for field in field collection

My field collection template is ds-1col--field-collection-item-field-video-item.tpl.php. I need to access the Image field so that I can customize the HTML. I've tried the following by neither work: ...
0
votes
1answer
17 views

how to display dynamic field values to template?

I am making a module, each time user make content type and add fields to it, all its field values get rendered into static template dynamically. For This i am using noad_load_multiple() to get all ...
0
votes
0answers
13 views

How I do set up a zurb_foundation Subtheme?

I’ve successfully created a subtheme using drush and added the complete Drupal Installation folder to Codekit. Compiling SASS files is working fine. However I am unable to overwrite the ...
0
votes
0answers
26 views

drupal 7 'views'. Use the context filter to path 'directory /% /%'

Site Drupal 7 Commerce. path pattern catalog category - 'category / [term: name] / [term: tid]' To display the product catalog categories set view 'catalog_view' with parameters: Page settings: ...
2
votes
1answer
41 views

page--front.tpl.php being ignore in favour of page--node--page.tpl.php

I've got an issue which I'm not sure how to address. I've got a specific page that I've set as front page. I've created a custom template for it and named it page--front.tpl.php and it was as expected ...
0
votes
0answers
31 views

How can I make a dynamic sitemap without using modules

So as the title suggest, I have to create a dynamic sitemap without using any modules. I'm new to drupal so I don't really know how to start with this. I tried printing the 'menu' which is the same ...
0
votes
1answer
15 views

Theming Views problem to print view fields

Hello Drupal Community, I was trying to edit my view theme with php in the file views-view-field--homepage-banner--block--field-site-image.tpl.php and try to print view fields, but values come's ...
1
vote
3answers
48 views

How to get only field value in View template

How can I access/print the raw value of a date field? (or any field for that matter). I am working in a View template and I typically use $fields['field_myfield']->content. But that gives me the ...
0
votes
1answer
39 views

Multiple instances of item in View row

I am getting five instances items in my View row when I wrap image field inside my link field. This is what I have in the template file: <?php foreach ($fields as $id => $field): ?> ...
0
votes
1answer
21 views

node_access by specific role?

I am trying to build a list of node ids that have view access for a specific role. Is this at all possible? I currently have an array of all 'page' content type nodes "pages". I now need to loop ...
1
vote
1answer
15 views

If theme folder contains no html.tpl.php file, which html.tpl.php would Drupal default to using?

I’ve taken over a site wherein the theme folder does not contain any html.tpl.php. In this case, which html.tpl.php would get used?
0
votes
2answers
25 views

Remove clearfix from section class in custom theme

I'm attempting to edit the template for my pages to allow it to show the content with a block beside it rather than beneath it. I'm currently using bootstrap to lay out my grid. In my page.tpl.php I ...
0
votes
1answer
12 views

Broken image using custom View template

I am trying to print each row with custom HTML. I need to display the image field wrapped inside the image link. I have this in the tow style output template: <div class="myRow"> <div ...
-2
votes
1answer
35 views

How make a template for designer for user registration?

I am looking for a "user-register-form.html.twig" for custom position of field in the page with twig. This is what i would like for the designer : <div class="row"> <div ...
0
votes
0answers
12 views

How can I rewrite this to avoid the “Strict warning: Only variables should be passed by reference” error? [duplicate]

I'm using this code in Drupal 7 to allow the end user to change the background image in a parallax style div. <?php print render ...
0
votes
1answer
22 views

Printing fields from View using query

The query below is taken from the related View. How can I get the field value for 'field_data_field_news_link', 'field_data_field_news_source', and field_data_field_news_date' for each row (news ...
0
votes
1answer
32 views

Modal Bootstrap in page.tpl.php

Have been struggling with view and modal to display related node content for a few days, but in vain. In view, a page is to display / list only thumbnail images (Display Suite) with rewritten link ...
0
votes
1answer
34 views

Is it possible to theme node add form in drupal 7

I am using zen drupal-7 sub theme. I have created a content type named edison. I need to change the node add form for the user. I've tried adding page--node--add--edison.tpl.php in template.php. I ...
0
votes
0answers
6 views

How to render content for Acquia's Site Search

I have got as far as adding page--search.tpl.php but do not know how to pull in the search string, search results list, or pagination. The documentation is almost non-existent - should I be creating ...
3
votes
2answers
99 views

How do I add typekit fonts to a D8 theme?

Having looked over the existing D8 documentation on adding JS to the <head> of a page, I'm still not sure how to go about it? What is the correct way to achieve this on every page for my theme: ...
3
votes
3answers
85 views

How to theme Profile 2 fields for anonymous?

I bring this question because I am not able to find the answer in anywhere, my apologies if it is a repeated one. I have a Profile 2 type "curriculum_vitae", that I use to gather jobseekers CV. I ...
1
vote
1answer
30 views

How to display an image from theme directory to a drupal block by php code?

I want to load an image from my theme directory inside a block. I am using the following code: <img src="<?php print $base_path .$directory; ?>/images/oil-ad.png" alt=''oil ad">. But it ...
0
votes
2answers
29 views

How to theme views using Taxonomy Terms?

The site on which I'm working has a variety of views for multiple sections of the website. These different sections, which are defined by Taxonomy terms, use different themes. So, for example, ...
1
vote
1answer
12 views

Edit specific menu items in template

In my theme I'd like to have complete control over my menus. I'd like to apply specific classes and wrap the menu however I like. I was thinking I could do this within a template. I see that you can ...
0
votes
1answer
15 views

Theming custom entity created with Entity API: accessing entity's fields in template file

First of all let me say that this is my first project in Drupal and I am still confused, I apologize if my question is stupid. I created a custom entity in Drupal 7 using Entity API. The custom ...
0
votes
1answer
26 views

jQuery scripts not working on my Drupal theme

This script from JSFiddle that works: https://jsfiddle.net/ryXFt/704/ Does not work in my Drupal theme (yes, it does load, I can see it via Firebug). All I do is just wrap up the code to match Drupal ...
0
votes
1answer
27 views

Taxonomy drag and drop for only 2 levels

I've created a vocabulary, I can add terms but I want to "configure" this taxonomy to add terms with only 2 levels. I'm talking about the default table that show my vocabulary terms (drag and drop ...
0
votes
1answer
20 views

Pre-Built Theme, how to transfer header to blocks

I am moving at a glacial pace at theming, even following guides, because I think I am having trouble understanding the relationship between all parts of drupal theming. If someone can help me with the ...
0
votes
1answer
22 views

Drupal node_load display all fields

I have a template for a view in which I load a node. Is there a way to get the value of all fields from that node? Like, if I add another field in CCK it will appear automatically in the template. ...
2
votes
1answer
35 views

Where does the mysterious blue bar and question mark come from (when logged in as admin)?

When I'm logged in as an admin, I see a blue bar at the top of the page, with a question mark in a circle, but no text. This is how it looks like: And the markup is: <div class="region ...
1
vote
0answers
24 views

Form Validation: Let the comma as separator to be valid in integer field input

I'd like to let my users use separator (Comma) while entering values in an integer field such as price for instance. I know that we can alter the validation of fields with element_validate_integer ...
1
vote
0answers
34 views

Replacing 12:00 am/pm with midnight/noon

I need to accomplish the following: display 'MN' or 'NN' if the time is 00:00 or 12:00 respectively in places such as the created time on nodes and in Views dropdowns provide the option for ...
0
votes
3answers
32 views

Is there a way to hand-code a reference to a block?, in a .tpl file?

Is there a way to hand-code a reference to a specific block?, in a .tpl file? Specifically what i’m trying to do is this. I have a Drupal commerce site and the shopping cart contents are displayed ...
0
votes
2answers
34 views

Move “Submitted By” from node.tpl to page.tpl

I'm looking to move "Submitted By" info from node.tpl to page.tpl however when I add the following from node.tpl into page.tpl I get errors. Im assuming I dont have access to those variables, but ...
1
vote
2answers
35 views

What is the order of execution and redering of hooks and page components? [closed]

In order to have a better understanding of what Drupal does, I need to find out what the order of execution of hooks and page components is. A page layout in Drupal consists of HTML, regions, nodes, ...
0
votes
1answer
26 views

Creating a (candidate) template file

Drupal: 7.x Theme: Bartik I am using the newly created Commune module to display wall posts on a user's profile page (panels.) Each post has a form below it for comments. The comment form is created ...
3
votes
1answer
30 views

Multiple template pages when creating new pages

new to Drupal 7. I can kind of get the result I want through "hacky" methods but was wondering what best practice was. I am creating a drupal 7 bootstrap subtheme. The main content area of the site ...
1
vote
1answer
34 views

“This version is not compatible with Drupal 8.x and should be replaced.”

The below theme files, which are the only files I have in my theme folder called 'Lychee', throw the error (in the 'Uninstalled themes' section of /admin/appearance): This version is not ...