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 ...
0
votes
2answers
28 views
How can we edit www.mysite.com/user page?
The user page doesn't look good. I want to edit it, but (If I am right) that is a default page. I am not able to find where to edit it.
How can I edit the user page?
0
votes
0answers
10 views
Active-trail active classes not applied to front page link
I am using the Bartik theme and, amongst other links, I have a link to the front page in the Main Menu. However, the "active-trail active" class is not being appended to the Home link, which links to ...
0
votes
1answer
15 views
override variable in template.php with variable from module_preproccess_node
I create custom template for node, and put variable in template.php
$colors = array('black', 'white');
$variables['group']['color'] = $colors;
$variables['size'] = 'double';
then i also create ...
-1
votes
0answers
18 views
Drupal 7 : Twitter bootstrap sass version [closed]
I would like to know how to replace the basic twitter bootstrap framework (less version) with the sass version ?
do i only need to replace the folder named "bootstrap" with the new one ?
in my mind, ...
0
votes
0answers
13 views
Where to modify pagers from nodes with comments to link on #comments?
I know there is a #comments anchor in every node with comments available.
When there are more comments than the content type limit allows per page, then there will be a pager on the bottom of the ...
0
votes
0answers
15 views
how to share a drupal profile on fb?
I have a checkbox for user profile, if user wants to share his profile on FB. How can i share profile if checkbox is checked. I have seen modules but they provide FB buttons.
Drupal 7 with Commerce.
...
1
vote
1answer
30 views
Code comments in TPL file that wont be rendered in HTML?
Can I add code comments to my template files that won't be publicly shown in the HTML?
2
votes
0answers
23 views
Override Drupal views fields module with custom module
In Drupal 7.22, I want to override 'views-view-fields.tpl.php' views module with custom 'coutforum' module.
The steps I've followed include:
1- renaming the 'views-view-fields.tpl.php' to ...
0
votes
1answer
26 views
is it possible to have upload and browse as a single button
is it possible to have upload and browse as a single button, for instance an image field in custom content type, there I am getting browse as a button and upload as a button, what if I need it as a ...
0
votes
0answers
25 views
Show referenced nodes as links if they have content in a field
Nodes of content type A are attached to nodes of content type B with an entity reference. Im listing Nodes of type A on Node B with a view.
Now I need the list of Node As to be links if their node's ...
1
vote
1answer
50 views
ie10 displaying CSS differently on localhost problem [closed]
I have just converted a complex site from PSD to HTML/CSS. When I view the .html on Firefox, Google Chrome, and Internet Explorer 10, it displays perfectly. Then I rename my index.html to page.tpl.php ...
1
vote
1answer
32 views
$base_url and $THEME_ARRAY using together
I have this in settings.php:
$THEME_URLS = array(
array('/optoelectronics','sky'),
);
foreach ($THEME_URLS as $info) {
if (strpos($_SERVER['REQUEST_URI'], $info[0]) === 0) {
...
1
vote
3answers
70 views
How to show a content without creating node for it on Drupal site?
I am creating a custom node page called node--mynode.tpl.php.
The code I'm putting in is <p> test</p>
Unfortunately nothing shows up on my Drupal site.
I have also added a node.tpl.php on ...
1
vote
2answers
31 views
Add theme_hook_suggestions only for nodes in content
I am developing a blog with different categories (taxonomy terms) and I wanted to have custom node templates for the nodes displayed on the blog page and category pages. Because my blog page has a ...
0
votes
1answer
19 views
Theming translation links
I need to change translation links attributes, which have been defined in translation_node_view function in these lines:
$node->content['links']['translation'] = array(
'#theme' => ...
0
votes
0answers
23 views
Remove protocol for HTML5 shiv to support both http and https [closed]
The problem is that the HTML5 shiv pulled from Google code was hard coded to use http, which can cause the browser to throw a warning that some external resources might not be secure. This issue is ...
1
vote
0answers
27 views
How to render-print content type fields in an article?
I am building a Drupal website and came across with an issue.
I have created a content type called "comments" with 4 fields :
-comment1 with machine name: **field_comment_1**
- comment2 ...
1
vote
2answers
28 views
Display a block on some pages according to the fields content of that page
I created a content type called people, where I create personal pages using that type. One of the fields is 'area'.
Then, I created a view of block called 'software people', where I list all the ...
-1
votes
1answer
19 views
how can i change the entire template of the page according to module in drupal6 [closed]
I have check lots of area in the web about theming in drupal6. All the tutorials in the web saying theme module, which means the theming a small area or theming a samll blobk etc. But in my case i ...
1
vote
1answer
37 views
How to access $user_profile in page.tpl.php or $page in user-profile.tpl.php in Drupal 7?
I need to change layout of a profile depending on user's field. So, I need to either include regions in user-profile.tpl.php or access $user_profile to test that field in page.tpl.php.
I've seen this ...
-1
votes
0answers
13 views
How to create a custom theme in drupal6 and apply template to it
I am just tried to create a module name mymodule and tried to apply theme to that module in drupal6.
I have added .info file for my module and created mymodule.tpl.php file in my theme folder and ...
0
votes
0answers
15 views
How to theming row results from a view with display suit
I want to theming every row of a view with "display suit - display mode".
The idea is that depending of a taxonomy selected in the node the row use one or other display mode.
I'm able to make it ...
0
votes
1answer
28 views
layout content in columns
I'm trying to figure out someway to allow end-users to format page content into columns. Right now if they edit a page they get a title field and a body field which is fine a lot of the time but what ...
0
votes
1answer
36 views
Custom template file field output
I have a Netrunner Card content type. (It's a card game I play.) I have a "field_card" field that holds the card image.
In the node--netrunner-card--Runner_Identity_Card--full.tpl.php file, I am ...
-1
votes
0answers
26 views
How to create a page--front.tpl for omega? [closed]
I would to know how to do that because i don't find the code about page.tpl anywhere...actually i would to upgrade my current custom theme to a reponsive framework like omega with a sub-theme..
...
0
votes
0answers
27 views
How to override page.tpl.php for given content type? [duplicate]
Please suggest that naming convention for content type
content type machine name : test_content
I need to define separate page.tpl for this content type.
I tried page--test_content.tpl.php and ...
-1
votes
1answer
36 views
How can I debug this JavaScript issue?
I have a very annoying JavaScript issue on my Drupal 7 website. For debugging purposes, I've included a slideshow in the page.tpl.php file so it can be rendered on all pages (including the front ...
0
votes
1answer
21 views
What permissions are needed for omega tools to create subtheme
I am looking to use Omega Tools, and similar modules quite a bit in the near future, and I am running into this error when trying to create a subtheme using Omega Tools:
I'm at least familiar with ...
0
votes
1answer
25 views
Custom tpl.php render issues
I'm in a custom tpl.php file. I'm also highly confused!
This line renders nothing...
render($content['field_subtitle']['0']['#markup']);
This line drops the subtitle as expected but in the ...
1
vote
1answer
34 views
theme_hook_suggestions and tpl.php
if ($variables['node']->type == 'netrunner_card' && $variables['view_mode'] == 'full')
{
$blinksFileName = $variables['node']->field_card_type['und'][0]['taxonomy_term']->name;
...
1
vote
1answer
23 views
How to trim trailing spaces from labels of radio buttons/select list elements
Every label of every element of every list has trailing space, and it is annoying and makes styling sometimes hard or in certain ways impossible. I was trying to add :before pseudo element to label ...
1
vote
1answer
57 views
Drupal 6 Site Duplication - Looks Like My Theme is Broken
My goal is to duplicate a Drupal 6 site to a new host, but I am having some problems.
New host - 198.20.226.199/~paul8226/ -- No name resolution setup yet.
Old host - www.egcasting.com/
I ...
0
votes
2answers
28 views
Advanced content layout in drupal
I've been evaluating drupal and I'm at a point where I have my header, footer, and sidebar set up properly. I have a basic page node type and I've created a few test pages. My test pages have been ...
1
vote
1answer
26 views
How to tell if the current language is written RTL or LTR
I'm looking for the function – if that exists – for asking Drupal about the current language direction (RTL/LTR).
I check the global language variable but it doesn't contain that ...
1
vote
1answer
16 views
Print a field in a set display mode
I can print a field in content type tpl file with this:
<?php echo render($content['field_name']); ?>
But how can I print the field as a different display mode?
EG I might always want to ...
0
votes
3answers
92 views
Preprocess function for node.tpl.php file
I've watched a million videos and read a million tutorials trying to figure out how to create a new variable for use in a version of a node.tpl.php file by utilizing preprocessing functions, but can't ...
0
votes
1answer
25 views
How to add css to a form according to the user's role?
I know how to add css to individual form types using:
function theme_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'formtype_form':
global $theme;
...
0
votes
0answers
25 views
How to theme the Order Details page?
I know that you can change the layout of the order history/order listings pages by editing the uc_orders_user View, but how can you theme the order details page (for example, ...
0
votes
0answers
26 views
Can a module install a theme?
I would like to know if it is possible to make a module install a separate theme as well. Should I just ask that whoever installs my module also downloads that theme to have a better experience?
0
votes
1answer
21 views
Print a node display mode in a tpl file
I have a switch statement in my content type tpl file for 2 different view modes:
<?php
switch ($view_mode) {
case 'full' :
?>
//content for full view mode here
<?php break;
case ...
0
votes
1answer
18 views
Render date field in custom format in tpl file
In a content type tpl file I can print my date field with the following:
<?php print render($content['my_date_field']); ?>
However I need a custom date format. So instead of something like ...
0
votes
1answer
12 views
How to change the pagination of related entities displayed on a taxonomy term page?
On a default taxonomy term page, related contents are automatically paginated by 10.
Let's say those related contents are always nodes and we always display the default teaser view mode.
How can I ...
3
votes
2answers
39 views
Next link on node page based on its taxonomy term
So here is what I'd like to achieve:
I'd like to put a Next link to every content of a type, that links to the next content with the same taxonomy term.
So for examle if I have A, B and C products ...
1
vote
1answer
17 views
How to load conditionally a script depending on whether element exists in DOM?
I have a Drupal.behaviors.leftmenusticky script that converts a left menu to a sticky menu (100% height,position fixed and the like) but I want to drupal_add_js it only if the menu actually exists in ...
0
votes
0answers
26 views
Better theme framework for a big site with forum [closed]
I'm remaking a big site, where the principal points are:
Geo location with map
Forum
Responsive (if it is possible)
I need to use a good/very good theme framework at the base of the new site's ...
1
vote
1answer
24 views
How to theme nodes in views based on the author's role?
I have a view listing all recent blog posts that have been published on the website.
These blog posts can be created either by regular authentified users or by staff members.
I need nodes published ...
0
votes
1answer
20 views
Share single CUSTOM function across multiple themes
I have some repetitive code that I'd like to share across two separate themes. Is there a best practice for something like this?
I know I can simply create an include file in the sites directory and ...
1
vote
1answer
23 views
showing an image field from solr index on custom solr search page
I use the Apache Solr Views module to create a View that displays only items from a specific content type.
I would like to include an image as well on the view. I managed to get the images on my site ...
0
votes
2answers
60 views
Creating complex tables in views in Drupal 7
I was trying to make a report via views in Drupal 7. It's quite easy to generate a table with the headers being the labels of the fields, like the following (being very straightforward):
...
0
votes
0answers
16 views
Override contributed module output (inline links)
I've installed the Drupal 7 port of the Node to Word module for exporting nodes as word or txt documents. The module packs two links - "Save as Word" and "Save as Text" - into the $content['links'] ...



