Questions tagged [theming]
Use it for questions about rendering or modifying the HTML markup produced by a module/theme.
10,462
questions
2
votes
2answers
849 views
Theming html output of privatemsg 6.x-2.x module
How can I theme the output of Privatemsg? I took look at http://api.worldempire.ch/api/privatemsg/privatemsg.theme.inc/group/theming/1, but I didn't understood how to use that.
I want to totally ...
1
vote
1answer
379 views
CCK field in node template
If I have a custom CCK field, for example "temperature", is there any way I can directly call it from the node template? Like would there be a $temperature variable?
Thanks!
3
votes
2answers
425 views
Is it possible to add custom stylesheets while using a core theme?
I'm trying to add a custom stylesheet although I'm using the Garland theme but so far I wasn't able to do it.
I've tried the following:
function mymodule_init(){
$path = drupal_get_path('module',...
0
votes
1answer
549 views
menus and per page sub menus
I have my primary navigation (which is hard-coded into the theme). What I want is for a sub-menu (depending on the page) to appear in the left sidebar.
For example, if they click on the primary link ...
1
vote
1answer
313 views
Clearing the cache changes the nice menu every time
Maybe this isn't a cache problem, but I am using Drupal 6, I have cache disable and I am editing a custom nice menu CSS file.
I didn't see changes right away to my nice menus, so I cleared the ...
1
vote
1answer
49 views
A module to add a field for display as a column in the administration area
I would like to display a column with the email address to the listing of users in my site's administration area. does anyone know of a module that does this?
1
vote
2answers
6k views
How should I name the node template files for my theme?
I'm a bit confused about how to name my template files. It's the first time I started to mess with templates in drupal 7 and somehow I don't get it.
I want a template file that changes the behavior ...
5
votes
4answers
172 views
What are the limitations of the theming system?
Can every theme function in include/theme.inc be overridden by a template (*.tpl) file?
Can preprocess functions be used to add variables to any theme function?
2
votes
2answers
332 views
Adding a “my messages (x)” link in the block template file
I have installed Privatemsg, and I need to output the "My messages (x)" link programmatically in block.tpl.php.
I tried the following code, but it only prints "My Messages", when I need a counter for ...
2
votes
1answer
2k views
Can't print fields in a view template
I'm overriding drupal /blog path with a views. Created a new view page display and set path to blog. Created views-view-unformatted--blog-page.tpl and trying to output view fields this way:
<?php
...
0
votes
1answer
236 views
Why creating the front page doesn't work?
I created the file named page--front.tpl.php, which is empty, in the Garland theme and set the front end to it. I still can access the front page: why?
2
votes
2answers
324 views
Attach different CSS styles on a node basing on publishing date or other PHP properties
I want to attach a different CSS style to a node, basing on the node publishing date or some PHP properties.
What would be the best way to do this?
1
vote
2answers
601 views
Show all terms of a vocaboulary
I have this function that I used in a similar situation (Drupal show all terms of different vocabulary) that prints the terms of a node with a corresponding parent (if applicable). In my template.php ...
1
vote
1answer
868 views
Drupal 7 - field template - $item - img tag
In drupal 7 theme, I have the following file:
field--field_photo.tpl.php
clearfix">
>:
>
$item) : ?>
">
Inside render($item) lies an ...
0
votes
2answers
1k views
How can I set a placeholder variable in page.tpl.php from a page callback?
I have a value in page.tpl.php that I would like to set in page callbacks, independently from the main content.
In page.tpl.php:
<?php print $placeholder ?>
<?php print render($page['...
2
votes
4answers
2k views
Is there a tool to covert any template to drupal 7 theme?
Is There any tool to convert any template (wordpress, joomla, static html/css etc) to a drupal theme
2
votes
0answers
2k views
Using multiple templates for the same node & views
Ok so my problem is this, I want to be able to manage events in a simplistic form on a Drupal 7 site. I created the relevant content type and inserted some dummy content, all is well. I then move on ...
1
vote
1answer
253 views
very bad thing of output the vocabulary in drupal 7
I created four vocabularies for the "article" content type.
I want to output the vocabulary which belongs to the node; when I used print render($conetent['field_vocab']), it output the vocabulary, ...
5
votes
3answers
2k views
Views Slideshow vs list View+jquery cycle lite?
The rotating images on my work site's home page are created as a View in list format. I'm using the jQuery Cycle Lite plugin for the rotator effect. The cycle.lite.js file is set in the scripts array ...
0
votes
2answers
125 views
How do I remove this part?
I have created a content type, but it doesn't use the following part. I want to remove it without using CSS. how can I doit?
0
votes
1answer
830 views
overlap dropdown menu and slideshow
I use Zeropoint theme and the drop-down menu in this theme.
When I hover the mouse over a menu, and the menu is expanded, my submenu is placed under the slideshow and is not show completely.
Do you ...
0
votes
0answers
93 views
Why doesn't the node object have the field name?
When I use the following code in page--front.tpl.php, it doesn't show the name of the field label, why? What code should I use to print the field label?
$node = node_load(1);
print_r($node);
The ...
2
votes
3answers
3k views
moving *.tpl into “templates” folder, but Drupal does not recognize them. How?
I am building a custom theme. Currently, I put all the overridden *.tpl files under the theme root folder; it would be more clean and meaningful to put those files under "mytheme/templates", but ...
1
vote
1answer
1k views
Primary Links Not Showing Up On Certain Themes
In Drupal 7, I have a page in the Primary links menu. I set the page content type to use the primary links. In Garland I can see the item at the top of the page, but in a bunch of other themes I can't,...
1
vote
1answer
1k views
How do you wrap a link around the block header text with Drupal?
(sorry if i'm redundant) What's the easiest way to wrap a link to the header of any block title text?
I know a workaround would be to just not include a title and add it in the content; but that's ...
0
votes
1answer
735 views
The $directory variable doesn't contain the correct value
When I print the content of $directory in my theme's page--front.tpl.php, it outputs "modules/system."
This is not I want; I want to output "sites/all/mytheme/images/ā¦." How can I do it?
2
votes
1answer
1k views
Show empty fields
I've created a custom node (node--CONTENT_TYPE.tpl.php) where I print the fields my way. For example,
<div class="test">
<?PHP echo $content['field_tipsol']['#title'].":".$content['...
1
vote
1answer
2k views
Overriding the output for the primary navigation links
Is there another way the primary navigation is supposed to printed out besides how it is done in the core system template?
print theme('links__system_main_menu', array('links' => $main_menu));`
...
1
vote
2answers
2k views
Adding the button implemented from “Printer, e-mail and PDF versions” in node.tpl.php
I am using Printer, e-mail and PDF versions, and I was wondering if there were a way I could place the print button in node.tpl.php above the $content area, instead of through the Drupal ...
1
vote
1answer
130 views
Can Rules be used to disable the logo variable on some pages?
I have a change in Drupal 6 that I would like to make quickly without doing another SVN roll (until I get a more permanent solution in place) and I would like to create a triggered rule that will null ...
0
votes
1answer
4k views
How to Remove read more link from front page [duplicate]
Possible Duplicate:
Remove links 'read more' and 'Add new comment ' on the home
I user zen theme and i tried this question answer Remove the 'read more' and 'Add new ...
0
votes
1answer
759 views
Using tokens under exposed views filter
I have created a view with an exposed filter. In my display I have an Using tokens section that I do not want to display:
Using the theme developer this is the closest I can get to it:
So it seems ...
1
vote
1answer
2k views
What is the best practice for theming?
I'm about to start theming a Drupal 7 website for the first time. I've watched Moshe's video, Lia Clark's introduction to theme overrides using context naming, and Franz's talk at Drupalcon Chicago. ...
1
vote
1answer
159 views
How to style the help text that appears at the top of pages?
I'm using the "Piano" theme, and I just don't like the way it displays the help text that would normally appear as a red box when there's an error or a green box for information or to indicate that ...
0
votes
1answer
838 views
Modifying login/user panel position in a theme
For our site, we're looking at designing a relatively simple log-in widget/panel. We want it to be in the header of our site (for reference, we're modifying the excellent "Orange" Drupal theme), and ...
0
votes
3answers
532 views
Custom block that's always the first thing in a region?
I'm trying to create a region for my Drupal 7 theme that will be clickable drop-down to allow the user to log in/out, access their profile page and a few of other things. The best analogy I can come ...
1
vote
0answers
462 views
Figure out the difference between loaded JS, CSS files, and files needed to be loaded for new content
I'm looking for a way to figure out what CSS and JavaScript files are loaded, and what else CSS and JavaScript files needed to be loaded for new content I'm injecting with AJAX.
I've am module file, ...
0
votes
2answers
133 views
Templating a form
I'd like to change the template of a form that I created via a module but I do not know what I'm doing exactly as I have snippets of "information." For information, this form is in 'node /add/page' or ...
1
vote
3answers
469 views
Using a custom template in a theme
I have created the custom template page-org.tpl.page in the Zen theme, and I want to include this custom template file in the menu calling; when the user clicks on the Org link it should use the ...
4
votes
2answers
2k views
How to use Google and Ubuntu fonts on Zen theme
How can I use Ubuntu font and Google fonts on Zen theme?
1
vote
2answers
246 views
Is there a way to exclude the addthis module's output in the $content variable?
The $content variable in my node.tpl.php file outputs some CCK field content, the content body, five star content, and the add this content. I don't want it to show add this content. Is there a way to ...
2
votes
1answer
930 views
Comment theming question
In Drupal 7, when theming the comments in my website (comment.tpl.php), I want to print the comment title without a permalink wrapped around as a link. I want the raw title. This should be simple, it ...
3
votes
1answer
287 views
What does typical beginning mark in *.tpl.php files mean?
I'm looking into template files for theming purposes, and often at the beginning of the file there is a // $Id$ mark.
Could you explain me what it mean, and what the purpose of it is?
0
votes
1answer
106 views
How to achieve a particular layout (view within a view, custom template, or ____)?
Say I had a site with travel destinations and I wanted to display a series of videos associated with each destination on a page below a description of the destination. The destinations and the videos ...
4
votes
1answer
3k views
Blocks not visible when I log out
In Administration -> Structure -> Blocks I have defined Search box region with search box block and Left sidebar region with navigation block. These blocks are visible when I'm logged in but ...
3
votes
1answer
1k views
Override forum topics list
The forum topics list has this in the table header: Topic, Replies, Created, Last Reply. I just want to remove the Created heading.
Template file forum-topic-list.tpl.php prints the table header with ...
1
vote
1answer
1k views
My custom preprocess function works as soon as the cache is cleared, then stops working
I have a custom Drupal 6 module, with a custom theme function. I have implemented hook_theme in my mymodule.module (main module file) as follows:
function mymodule_theme() {
return array(
'...
1
vote
1answer
845 views
Minimalistic page.tpl.php file
Do you know what to write to the page.tpl.php file so that it shows only 5 regions (header, menu, left_sidebar, content, right_sidebar)?
Something like the following code, but to work correctly with ...
1
vote
1answer
113 views
Is there a function or a way to invoke the comment object?
I want to use the $comment object in page.tpl.php.
Is there a function or a way to use it?
1
vote
1answer
592 views
Which pages affect text area CSS?
I have a text area with CKEditor. The default font in this text area and my theme is 20 pixels and I cannot change its size with CSS, but if I change theme and use Garland, the font change to the ...