[Plugin: NextGEN Gallery] HTML Title of Gallery Page (4 posts)

  1. cdpayne
    Posted 5 years ago #

    Hello, I really like the gallery and so far have been pretty much able to get it to do what I want.

    I have a question about we see after we have selected a gallery to view.

    I have been trying to track down where it is getting the information to print in the browser bar as its title, for example:

    domainnameAlbum0 << Gallery 13 <<

    as I would rather have the following displayed:

    domainname << "Friendly Gallery Title" where the friendly gallery title is actually the title displayed in Gallery Overview in the management pages.



  2. cdpayne
    Posted 5 years ago #

    Ok, so I have been playing with the rewrite.php and I can see where the title is being generated to include the Album and Gallery intval that is getting displayed. I could just comment that out but wanted a nice title browser bar so I have tried various ways to perform get_query_var for $gallery->title but haven't been able to return anything valid yet :-(

    I see a comment in the code that "//TODO:: I could parse for the Picture name , gallery etc" so I know it is possible, I just can't get it right.

    Any ideas?



  3. cdpayne
    Posted 5 years ago #

    rewrite.php (around line 207 for me but then I've made some changes already so it could be different for you.

    //$title = $new_title . $title;
    		global $wpdb;
    		$gallerycontent = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$gallery' ");
    		if(!empty($gallerycontent->title)) {
    			$new_title = $gallerycontent->title.' > ';
    			$title = $new_title . $title;
    		return $title;

    as found at http://wordpress.org/support/topic/227040?replies=10

  4. saffyre9
    Posted 5 years ago #

    For those who don't want to modify the rewrite.php themselves, there is this plugin that might help: http://mariokostelac.com/nextgen-seo/

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.