Theme templates are part of Drupal's theming system and allow for the customization of Drupal sites.
-1
votes
0answers
28 views
What are some free themes for a non-profit? [closed]
We have a non-profit Drupal 6 website where we want to implement something very similar to http://www.wateraid.org/uk. Essentially, we want a large moving picture in the front, a big and prominent ...
0
votes
2answers
60 views
Create custom variables for a template file inside a menu callback function
here is a good one that has always stumped me.
I would love to see a solution in both D6 and D7.
I create custom modules and usually work with the menu api to create menu type -> MENU_CALLBACK.
...
0
votes
1answer
18 views
Search template suggestions from a module
I have created a custom search module that integrates with Drupal 7 Search Interface. My module is called history_search and in the module I have two files: history_search.module and ...
0
votes
1answer
22 views
How to get contextual filter of a view from page.tpl.php?
this is my page view path /news/[years]/[month]
I want to get year and month from path, how can do it ?
Thank you.
1
vote
1answer
11 views
How can I use a views template to modify the titles of taxonomy links?
I have a view that shows a field which is a taxonomy term reference set to display each term as a link. The taxonomy names are quite long so I want to rewrite them using a views template.
I made a ...
0
votes
1answer
19 views
Using drupal_add_content_region()
I am trying to dynamically add content into a region.
In the preprocess function, I use the following code.
function firsttheme_preprocess_page(&$vars){
drupal_add_region_content('dev', ...
0
votes
1answer
33 views
Rendering Module Code to HTML
Semi-new to Drupal. I'm trying to find a way to render HTML inside my custom module.
Right now I'm using this method
$page = 'hello world';
return $page;
Which can get pretty dirty once you had ...
0
votes
1answer
18 views
Drupal 7 skip loading the template for ajax requests
I am trying to upload an image in my template page, using jquery ajax-form submit.
And i am returning just the image name after it is uploaded in the module function.
However, i am getting the entire ...
1
vote
2answers
55 views
How can I remove the space between fields show in a view that are output with a custom template?
I have a view that has two fields, A and B. Both of these fields are modified using a views-view-field--myfield.tpl.php file.
In my output, I want the fields to be displayed as:
AB (no space in ...
0
votes
2answers
59 views
Views: Apply a wrapper to every 3 and 6 group of rows
My Views Output is as follows
<div class="views-row-1">Content</div>
<div class="views-row-2">Content</div>
<div class="views-row-3">Content</div>
<div ...
0
votes
2answers
37 views
Adding memory to themed pager?
I have a content type called as People that lists all users on the site.
Next i have a view PeopleList that lists the content type People in a list form and has a pager.
I have customized the pager ...
0
votes
0answers
21 views
field label class
How do I add a class to the label of every field of a specific content type.
Module?
Theme?
Is this possible?
I'm using the bootstrap theme, if that makes any difference I can see that this theme ...
0
votes
1answer
25 views
LESS could not create a directory in public:
I am creating a site with drupal 7.15 with bootstrap and using less. But when i reload the page i found the following errors. (dope is my sub-theme name)
LESS could not create a directory in ...
0
votes
1answer
22 views
Add Menu Block (module) Menu To Page tpl
Hello i am trying to avoid using the block system with drupal. Im using panels and i dont like having to add the main content if i use any block in a region. anyhow.... i was hoping to add a menu ...
2
votes
1answer
60 views
Register a module theme implementations
I have created a simple module to display frequently asked questions (FAQ). The output (faq content ) can be customize in mymodule-template.tpl.php file located in a module directory.
I'd like to ...