Questions tagged [drupal-theming]

In Drupal terminology, "theming" is rendering or modifying the HTML markup produced by a module or a theme.

Drupal theming system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup. For this system to work, modules, instead of writing HTML markup directly, need to return render arrays, which are structured hierarchical arrays that include the data to be rendered into HTML (or XML or another output format), and options that affect the markup. Render arrays are ultimately rendered into HTML or other output formats by recursive calls to drupal_render(), traversing the depth of the render array hierarchy. At each level, the theme system is invoked to do the actual rendering. See the documentation of drupal_render() and the Theme system and Render API topic for more information about render arrays and rendering.

Reference

822 questions
0
votes
1 answer

drupal 7 cusomized user profile template can not save changes

I want to custom my user profile edit page. The edit path is: xxx/user/2/edit 1. In my templage file: function MYTHEME_theme() { 'user_profile_form' => array( 'arguments' => array('form' => NULL), 'render element' => 'form', …
user3210341
  • 77
  • 1
  • 2
  • 14
0
votes
1 answer

Theming D7 Nice Menus Subchildren by Taxonomy Term

I have been pondering on how to modify the default output of Nice Menus' list elements and make each
  • group a list of nodes by taxonomy term. This is the default output of a sub-menu:
    • Test 1
    • Test 2
    • Parent …
  • ralphcarlo
    • 209
    • 6
    • 22
    0
    votes
    1 answer

    CRM Core Module Contact form in drupal

    I am facing issue with CRM Core contact module. Actually i want to enable security permissions to Contact form sothat a contact added by a user should not visible to other users. Could you please suggest me how to manage this situation. Thanks Garg
    0
    votes
    1 answer

    How can i pick a template in drupal 7 while page creation

    I want my Drupal 7 to pick my cutomized template while the time creating the page only, how can I do this, Can some one please... thanks in advance
    Manu
    • 15
    • 6
    0
    votes
    0 answers

    Susy Gutter Width defaults to 1em

    I'm using Susy within the Omega 4 Drupal frame work and have been having trouble getting the gutter width to change from the default of 1em. What is really odd is that the background grid responds changes to the gutter width but the elements on the…
    0
    votes
    1 answer

    getting textfield output partly unvisible

    In a Drupal content type a need to get the output of a field partly unvisible. These are bank account details, the IBAN. Normally the field shows 1234567. I need to get xxxx567. I need to show only the last 3 numbers/letters. Also I need this output…
    deelite
    • 355
    • 4
    • 17
    0
    votes
    1 answer

    Print a link based on the taxonomy term or id in Drupal 7

    I have a list of links on page.tpl.php and I would like to have one link display on nodes that is using one taxonomy term id. The taxonomy term id is 9. Ex.
    liza
    • 101
    • 3
    • 15
    0
    votes
    2 answers

    Cannot output image using render()

    I am trying to output this image : However, nothing gets printed out. My code is print render($media_item->field_media_photo['und'][0] Why doesn't it work?
    Evaldas Raisutis
    • 1,628
    • 4
    • 18
    • 32
    0
    votes
    1 answer

    Removing html class drupal7 starter-theme

    I'm kinda new to drupal and are currently just making a fresh theme folder, but i have a problem. I have edited my page.tpl.php and .info file to suit my page. But when I edit the page I dont get the entire page, which I want. Sorry if im not clear,…
    Rory Galloway
    • 85
    • 3
    • 8
    0
    votes
    1 answer

    How to change the style class of a certain div

    I'm a novice trying to learn basics for fun. I've set up a 7.24 drupal website. I've installed the bootstrap theme. I managed to create a subtheme and activated it. I use the bootstrap-cdn method. Now, I'm not happy with the style of certain…
    peq
    • 329
    • 1
    • 2
    • 9
    0
    votes
    1 answer

    Run drupal module after user login

    I have created a custom module in drupal 7. This module will work after user log in .So after user login whenever I tried to run this module using url http://localhost:8888/projects/axonconnect/user/2/user_custom_profile it does not work but if I…
    Ron
    • 394
    • 1
    • 12
    • 24
    0
    votes
    3 answers

    Drupal 7 CSS Issues

    I am designing my theme for my website, and have no other CSS files in my folder besides template.css. .header-wrap, .nav-wrap, .slideshow-wrap, .body-wrap, .sub-footer-wrap, .footer-wrap {float: left; width: 100%; clear:…
    scapegoat17
    • 5,509
    • 14
    • 55
    • 90
    0
    votes
    1 answer

    Displaying Drupal taxonomy term desciption in node

    For variuous reasons, I am using taxonomy terms for authors. Each blog node has a term reference field - field_authors - which lists one or more authors. What I would like to do is display the term description for each author listed in the page. My…
    0
    votes
    2 answers

    Drupal 7 - Page template suggestion based on specific alias

    I'm poor php developer and i need code for my template.php to set specific template for some pages: Example: mypage/blog/about-me mypage/blog/about-you mypage/blog/about-us Uses…
    user3043693
    • 47
    • 1
    • 8
    0
    votes
    1 answer

    unable to use display suite template files

    i use display suite to style my taxonomy page and it suggests me some template files but i am not able to use that file, i put them in place but they do not include, do you know how it will works please ? or any references ?! this is my display…