Page number in Title

0
Hello!

I tryed to add a code to the file

components/com_muscol/views/artists/view.html.php

$document->setTitle( $letter ." | ". Artist ." ". list ." | ". $page);


To obtain Title page the kind of " L | Artist list | Page 2 "

It works, not without paging - page numbers are not reflected.

Please help this problem.
Responses (12)
  • Accepted Answer

    Saturday, October 01 2011, 12:38 PM - #Permalink
    0
    Works like this: Page X of Y

    $this->pagination->getPagesCounter()


    Example: sorry, I use Russian title :woohoo:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 14 2011, 10:48 AM - #Permalink
    0
    Thanks,OK! I`ll think.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 14 2011, 10:36 AM - #Permalink
    0
    the you better don't try this... this is a little bit tricky, you need a little bit programming knowledge...!

    we can do it for you for a small fee if you want..!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 14 2011, 10:33 AM - #Permalink
    0
    No, unfortunately... :(
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 14 2011, 10:13 AM - #Permalink
    0
    I don't know the vars in $pagination from memory... user print_r to see what vars it contain and you'll find something useful I guess!

    are you a developer?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 13 2011, 05:05 PM - #Permalink
    0
    Already forgotten ... :angry:

    What variable can still try to display pagination in titles?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 13 2011, 04:54 PM - #Permalink
    0
    $pagination is an OBJECT

    I told you to use the print_r function to see what's in it so you can see if you can use it!

    I'm asuming you know some programming here..!! otherwise forget about it! ;)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 13 2011, 04:53 PM - #Permalink
    0
    when trying to add $pagination - white screen :blush:

    Can more detail about print_r?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 13 2011, 04:36 PM - #Permalink
    0
    aaahh!! ok ;) so you meant artistS, not artist!

    you can use the info on the variable $pagination

    make a print_r of that variable and you see what this object contains, and you'll be able to use the info!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 13 2011, 04:32 PM - #Permalink
    0
    Artist page letter A
    Artist page letter A - page 2

    Titles of both pages of the same :huh:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 13 2011, 04:07 PM - #Permalink
    0
    what is "list" for?¿?
    in the artist page there is only 1 page...!!

    do you want this artist SONGS page?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 12 2011, 07:49 AM - #Permalink
    0
    Anybody?
    The reply is currently minimized Show
Your Reply