Please upgrade here. These earlier versions are no longer being updated and have security issues.

How to add page number to title?

edited March 2011 in Vanilla 2.0 - 2.8
I need to have title like this:
Discussion_title - Page XX - Category_title

How to do it?
Tagged:

Comments

  • Good luck, let me know if someone has a simple answer.

    I'm about to embark on customizing the way Vanilla renders links in Discussions lists because to 'jump to last Comment' # is just plain broken.
  • edited March 2011
    I don't know how to make page number, but I can show category title.

    In file /applications/dashboard/modules/class.headmodule.php need to replace:

    return ConcatSep(' - ', GetValueR('Data.Title', $this->_Sender, ''), C('Garden.Title'));

    to

    return ConcatSep(' - ', GetValueR('Data.Title', $this->_Sender, ''), GetValueR('Data.Discussion.Category', $this->_Sender, ''));
  • lucluc ✭✭
    edited March 2011
    Good luck, let me know if someone has a simple answer.

    I'm about to embark on customizing the way Vanilla renders links in Discussions lists because to 'jump to last Comment' # is just plain broken.
    What do you mean by broken?
    I've been using vanilla 2 since 2009 and it works for me, with occasional misplacement when an image loads late and moved the last comment down.

    Edit: it's OK, I've seen your other comment.
Sign In or Register to comment.