Skip to main content
  • 38
    views
    1
    answers
    not able to display the real name of the users

    First of all, I am not a techie and have picked the codes mentioned below from various sources. I have added two new fields to the user profile - 'firstname' and 'surname'. I am using a custom theme and on one of the places (on a node), I need to display the real name (making some code changes) instead of the username.

    I am replacing the existing code -

    <h3><?php print $node->name ?></h3>

    With this -

    Drupal 7
  • 51
    views
    1
    answers
    How to display the title at the end of the breadcrumb?

    I would like the page title to be displayed as a part of the breadcrumb, at the end of the preceding path.

    I've got the following code.

    <div id="breadcrumbs">
      <span class="bread_crumbs"><?php print $breadcrumb; ?><?php print $title; ?></span>
    </div>

    I have checked the following option in appearance/settings: Append a separator to the end of the breadcrumb.

    Drupal 7
  • 16
    views
    1
    answers
    Import issue in other languages using csv file to drupal node creations

    I am trying to import a csv file using parsecsv-for-php library.The given csv file is in Catalan language.

    The thing is that when i just try to create nodes with given csv data it is throwing me this error like this while importing PDOException: in field_sql_storage_field_storage_write() (line 448 of /modules/field/modules/field_sql_storage/field_sql_storage.module).

    Drupal 7
  • 13
    views
    1
    answers
    How to create custom menus with different path

    I want to create custom menus.

    I created dashboard named menu, now i want to provide links under dashboard menu,

    i created one link named myprofile.

    and it is asking for path. i want to link it with user edit page who is logged in.

    I have no idea regarding this.

    Does anybody have idea regarding this.

    Thanks

    Drupal 7
  • 37
    views
    1
    answers
    How to dynamically add block in Drupal7

    Creating blocks through UI is quite simple (Goto Structure->Blocks->Add Block). but I would like to display the block dynamically based on the page view. So my question is how to create dynamic blocks programatically in Drupal7?

    Drupal 7