Questions tagged [theming]

Use it for questions about rendering or modifying the HTML markup produced by a module/theme.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

Export blocks to production site [duplicate]

Possible Duplicate: Quickest way to reimport menus and blocks (D7) I need a way to easily transfer the block configuration from my staging site over to the live site. I've been working on ...
1
vote
1answer
4k views

How to change the label of username field on all forms/pages that it occurs?

The following snippet changes the label of the username field on the user registration form from 'username' to 'nick-name' (when inserted into the template.php of the theme: function ...
1
vote
1answer
540 views

What theme function outputs the administrative overlay in D7?

What theming function generates the output for the admin overlay in d7?
0
votes
1answer
254 views

Implement hook_block_configure on theme

Is it possible to implement a hook_block_configure inside a theme? I would like to have a configuration that is related to my theme in each block but don't want to implement this in a module because I'...
0
votes
2answers
384 views

drupal template files in different folders for different content types

I'm trying to get Drupal to scan multiple directories to find template files for pages and nodes. I have a content type called "contest". I have a node with the path of "http://mysite.com/contest/test ...
2
votes
1answer
122 views

Not too sure about template.php

I'm primarily a designer and I've been working on Drupal themes for some time now. At this point, I'm comfortable enough converting my designs to Drupal themes reasonably quickly but I continue to ...
0
votes
2answers
357 views

Rotor banner, Toggle the display of an image banner and rotor banner view based on view results

Within the page node is a field for an image that is the page's banner image. We also use Rotor banner to do rotating banner images in the same location. Since I have a default banner set for the page,...
0
votes
1answer
66 views

Customizing/theming a created view

I searched a lot on net, but did not find proper answer for the customizing / theming a view that is created. I have created a view like one in screenshot . I wanted to change the way the pagination ...
0
votes
1answer
1k views

Theming book navigation block to generate drop-down menus

I have a 3 level deep book navigation block. I'd like to change the menu tree HTML output in the following way: For each level of the tree, create a li and inside it put an anchor tag with the active-...
2
votes
2answers
1k views

Attaching a view page display to a tab in a content type?

I've built a CSV exporter by heavily modifying a template file from Views Bonus Pack's CSV feed Views plugin that formats all the content in a particular view exactly how I want it. Now, I just need ...
0
votes
1answer
1k views

Attaching CSS to block doesn't work

mymodule is in modules/custom directory. $block['content']['#attached']['css'][] = drupal_get_path('module', 'mymodule' . '/mymodule.css'); mymodule.css ...
7
votes
2answers
3k views

What is the equivalent of theme_menu_item in Drupal 7?

I know that in drupal 6 exist: theme_menu_item, but in drupal 7 there is not. Is there any replacements so that I modify the output for main system menu ? Actually I want to do a kind of filter of ...
3
votes
2answers
4k views

How can I use conditional logic to not display a <div> in page.tpl.php based on node id?

I'm using a theme that has regions not supported by Panels' "Disable Drupal blocks/regions" settings. I've tried to remove the using an if statement in PHP, but either my PHP syntax is wrong or I'm ...
0
votes
1answer
1k views

Help with function in template.php

Drupal 7. Can anyone spot what could be wrong with this function? I'm just trying to pull a taxonomy term or its parent. The taxonomy is called "pubissue." In template.php: function ...
0
votes
1answer
255 views

How to use php filter for “contact page” in drupal 6?

How can I set the PHP filter for the "contact page" in Drupal 6? I want to insert some PHP code in the description of the contact form page. Thanks
2
votes
2answers
428 views

Drupal versus with Omni Update: Should I move from Drupal to Omni Update?

Use Case Current (aging) IT website built on Drupal 5. Most people hate this website because the theme is awful and adding content is painful. An upgrade to Drupal 6 and a theme / module updates are ...
1
vote
2answers
3k views

How to use HTML tags in email?

I have a triggered rule, when a content is Published the author receives email. I want to show my logo in the email but so far I could not find how to do that. Any help appreciated? I wrote this in ...
2
votes
1answer
110 views

How can I un-subtheme a theme?

I've been developing a custom theme as a Zen subtheme, but I've made so many changes and new files that nothing from the original Zen theme is being used. However, my new theme is still connected to ...
0
votes
1answer
991 views

Where do I add a jQuery UI in Drupal 7?

I have a view where I want to use the jQuery UI slider. For the moment, I've just put the following in my template.php: drupal_add_library('system', 'ui.slider'); This doesn't feel right. Is ...
0
votes
3answers
184 views

Which modules should I use to create a community based site?

I am a grey-haired professional programmer, quiet conversant in PHP, MySql, HTL, CSS which means I can tweak things or code plugins if need be, but I’d like something off the shelf as far as possible. ...
0
votes
1answer
610 views

Adding assets (css/js) for a custom module block (and withstanding a cache enabled install)

I've created my own block which calls a hook_theme implementation which then prepares some data and then renders myblock.tpl.php All of the above is working fine but my module does have some required ...
2
votes
1answer
805 views

How do I keep <span thmr=“foo”> tags from displaying?

I have a field in a view that shows some HTML tags that, no matter what I do, keep showing up: What's adding them? How do I get rid of them?
2
votes
1answer
610 views

Drupal 6: Having issues with multiple paged tables in pages with multiple tabs (JQuery UI tabs)

I have a series of pages that provide paged tables inside of tabsets. Using the Tabs module, I get JQuery UI tabs, and I am using that to create pages with multiple horizontal tabs; inside those tabs ...
2
votes
1answer
954 views

Problems with a global variable

I have the following code: $a='1'; function check() { global $a; if ($a == '1') { return "1"; } else { return "2"; } var_dump(check()); } When I run this code stand alone, its ...
1
vote
2answers
208 views

Variable theme name

I want to use template, which name is determined in runtime (specialized template). If such template is not defined, use fallback template with fixed name (like node-sometype.tpl.php is used before ...
2
votes
1answer
789 views

Table with sqlsrv driver is not showing headers or pagination

I just wanted to practice doing the table "header sorting" and pagination to display a Drupal 6 table using a simple MSSQL query. At the moment, the table headers are not showing and there is no ...
1
vote
1answer
102 views

Storing variables in a theme outside preprocessing

I have some variables that I want to store in my theme, but I cannot always use theme_preprocess() to set and subsequently gain access to them. What is the best way to do this? I would like to not ...
2
votes
1answer
1k views

How to onclick-trigger a non-native jQuery plugin's action?

I've installed a 3rd-party jQuery plugin (it's an accordion). It displays on my page, and works as expected. I want to trigger one of the plugin's actions (open a particular slide) when I click on ...
0
votes
1answer
349 views

Drupal Theming 'Add Content' Page

Is there any module that can help me theming the "add content" page? I'm also looking for a way to allow the use of the "add content" menu only to the users who paid. When I talk about "add content"...
2
votes
1answer
598 views

More specific way to override THEME_process_page() function?

I'm going to explain my problem through the use of pseudo code. Right now, i have in template.php the following code function THEME_process_page(&$variables) { if($variables->view == '...
0
votes
2answers
82 views

Heading for comment section

I would like to have a heading over my comments that only appears after a comment has been left... I tried the code below but it doesn't seem to be the answer: <?php if ($comment): ?> <...
1
vote
2answers
1k views

Force block page to use admin theme?

I'm trying to use this snippet I found, but it throws this error: function mytheme_init() { // Hardcode the administration theme onto the blocks page if ($_GET['q'] == 'admin/build/block') { ...
1
vote
2answers
1k views

how do I make rounded borders around everything in a drupal 7 site? [closed]

I have a site which is supposed to have rounded corners. what I need is a boarder that covers everything, but has rounded corners. right now, even with rounded corners, the boarders are square, and ...
0
votes
0answers
83 views

Single custom template file for multiple URLs, in Drupal 7

How do I use same custom template file for multiple URLs in Drupal 7?
0
votes
2answers
847 views

Displaying view as row-based table, not as grid

Currently I have my view style set to grid (row style); but they're not displayed too nicely. Is there anyway I could modify the views grid php file so that I can have them displayed as a real table? ...
3
votes
2answers
2k views

How to display one of Drupal's default forms

I have a module that i want to use to display a modified version of one of Drupal 7's default forms. The form ID is user_profile_form and it is the form used to edit a user's account information. So ...
1
vote
1answer
546 views

Theming views that use node row style

I have a view that uses node rows. I looked at views-view-row-node.tpl.php and it only contains 4 lines. I tried to override the theme by using my node.tpl.php code in a new file but got this warning: ...
1
vote
3answers
70 views

How to display additional fileds I've added to a page - the way I want them?

I've added some additional fields to the content type - Page. But now when the page is rendered it displays all of them as well - just lists them at the bottom of the content. But that's not what I ...
2
votes
1answer
155 views

template for a view?

I created a view which is viewable at http://mysite.com/branch-locator. The view is being displayed by my page.tpl.php. How do I override this and use a new template file called branchlocator.tpl....
3
votes
1answer
673 views

How to use JQM theme and jQueryMobile plugin with Drupal?

I'm developing a mobile web site with Drupal 7 and i want to use jQuery mobile. I've found many plugins, but just one available with drupal 7 (jQuery Mobile module). I have also a jQuery mobile theme (...
2
votes
3answers
2k views

make the sidebars and the “content” region the same length as each-other?

I have a website that has regions that are uneven. the sidebar first is a different length than the content, and the content is a different length that sidebar second. it looks something like this: I ...
2
votes
2answers
724 views

View list of teasers wrapped in <li> instead of <div>

How can I view my teasers in <li> instead of in the default <div>? I find that changing the <div> to <li> in node.tpl.php doesn't work since <li> needs to be wrapped in a ...
4
votes
1answer
652 views

tpl.php files in subfolders

I am creating a big Drupal theme with lots of node types and lots of custom templates. Each having a very diffent look and feel. This is something I can not get round because the design was signed off ...
0
votes
1answer
3k views

How do I automatically change the background image of body?

How do I automatically change the background image of body, when I click on a menu link? I want to obtain the same effect shown in the Drupal Design Camp Boston 2011 site.
1
vote
1answer
2k views

Use variable from template.php in block

I have a custom table in the Drupal DB, which I need to retrive and use on a few places on the site I'm creating. And I don't like to run soo much PHP in blocks, so I thought that I could get the ...
2
votes
1answer
975 views

How do I add a child to an HTML Tag render element?

I need to reproduce this with render elements: <div id="parent"> <div class="child"></div> <div class="child"></div> </div> Can't figure this one out!
6
votes
1answer
214 views

Synchronize two drag-able tables

I have two tables on a page that the row positions need synchronized when a row is drug. One table is the master table and is the only place that the actual dragging can take place. Basically, what ...
1
vote
0answers
305 views

Group multiple times by day (multi-value date field)

So I have a date field that allows multiple values. In this particular case, I have something like: [0] = Monday, 4pm [1] = Monday, 6pm [2] = Tuesday, 10am [3] = Wednesday, 11am [4] = Wednesday, 3pm ...
1
vote
2answers
646 views

Activate an existing menu item through code

I need to activate an existing menu item through a hook when I'm on a certain page. To give some context, I have a primary navigation bar which is visible on all pages, and when I'm on a user profile ...
0
votes
1answer
722 views

How to change the logo image dynamically when user change language?

How to change the logo image dinamycally when user change language by clicking in the flag? Exist an easy way to resolve this problems?

1
204 205
206
207 208
210