Hello, I have a profile type and use the url /profiletype/register and the others. For eachone I have a custom page title so for login, password recovery and for registration page

Im doing in the normal fashion but it does not work, if I go to the /profiletype/register I always see the title "User Account", that title is the default and not the custom I want.

Why is happening this? Thank you

CommentFileSizeAuthor
#8 profile2_regpath-custom_title-2233543-8.patch571 bytesckng

Comments

System Lord’s picture

Same here.

rollingnet’s picture

I haven't learnt diff yet
so I ask someone to convert this code in a patch

module profile2_regpath.inc, line #147

function _profile2_regpath_set_title($regpath, $key) {
  // Look for custom title in foremost profile, according to weight.
-   if (isset($regpath->misc) && $misc = unserialize($regpath->misc)) {
+  if (isset($regpath[0]->misc)) {
+    $misc = unserialize($regpath[0]->misc);
    if (array_key_exists($key, $misc)) {
      $title = $misc[$key];
    }
  }
  // Set default title.
  else {
    $title = 'User account';
  }
  // Set title. See http://drupal.org/node/1800116 for use of t().
  drupal_set_title(t($title));
}
ssoulless’s picture

Status: Active » Needs review

This patch is for solve this issue, are you sure?

RvaAbdel’s picture

Status: Needs review » Active

I have had the same issue. patch on #2 solved it.

ssoulless’s picture

Status: Active » Reviewed & tested by the community

Ok so if it solves it changing the status of this issue

onejam’s picture

Yep, thank you. The patch on #2 solved it for us too.

ssoulless’s picture

Ok so the only thing that rests for close this issue is to commit #2 patch

ckng’s picture

Category: Support request » Bug report
StatusFileSize
new571 bytes

This is the same as #2, so didn't change the status.

anou’s picture

Patch in #8, works for me. Thanks!

kopeboy’s picture

Priority: Normal » Major

I assume this patch will also make the page titles translatable (which are not now), please commit it!?

  • grasmash committed e563558 on 7.x-2.x authored by ckng
    Issue #2233543 by ckng: Custom page titles are not working in my site!
    
grasmash’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.