Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:10 am EST

Geeklog Forums

Medi Gallery Page titles


Tabish

Anonymous
Hello,

Can anyone tell mw how to add page title in tag in media gallery??

Regards
Tabish
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Tabish,

I don't understand exactly what you are asking. Can you give me a little more detail, or better yet, an example of what you want to accomplish?

Thanks!
Mark
 Quote

Tabish

Anonymous
Quote by mevans: Tabish,

I don't understand exactly what you are asking. Can you give me a little more detail, or better yet, an example of what you want to accomplish?

Thanks!
Mark


Thank you for your responce..

Like... When i go to media gallery by clicking on the top menu item, and then, wehn i see the page title, the title which is under title here tag, in html, I see the same title on all the media gallery pages and albums.

It is not good for SEO perpose, atleast there should be album name in and meta tags.

Let me know if everybody has same issue like this?

Regards
Tabish
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Tabish,

Out of the box, Media Gallery doesn't change the browser title, but it is pretty simple to add.

For example, to display the album title as the browser title in the album view, edit the album_page_header.thtml file (located in plugins/mediagallery/templates/ directory).

Add the following at the top of the file:

Text Formatted Code

<script>
document.title="{album_title}";
</script>

 


Then to add the album_title::media_title as the title in the media view screen, edit view_image.thtml (same templates directory) and add the following after the existing javascript in that template:

Text Formatted Code

<script>
document.title="{album_title}::{media_title}";
</script>

 


That should do it. Obviously you can tweak this a bit, if you don't like the double colon seperator like "Album Title Here::Media Title Here", just edit to meet your needs.

Let me know if this answers your question.

Thanks!
Mark
 Quote

Tabish

Anonymous
Quote by mevans: Tabish,

Out of the box, Media Gallery doesn't change the browser title, but it is pretty simple to add.

For example, to display the album title as the browser title in the album view, edit the album_page_header.thtml file (located in plugins/mediagallery/templates/ directory).

Add the following at the top of the file:

Text Formatted Code

<script>
document.title="{album_title}";
</script>


 


Then to add the album_title::media_title as the title in the media view screen, edit view_image.thtml (same templates directory) and add the following after the existing javascript in that template:

Text Formatted Code

<script>
document.title="{album_title}::{media_title}";
</script>


 


That should do it. Obviously you can tweak this a bit, if you don't like the double colon seperator like "Album Title Here::Media Title Here", just edit to meet your needs.

Let me know if this answers your question.

Thanks!
Mark


Thank you mevans,

I did it.. and it is working fine.. but the problem is.. My title changes in a little while when my page is completely loaded. so if the page is half dowload.. i see the old title. I dont think search engine will gonna give preference to this.. what you think?

and also.. what about description and keyword meta tag?

Cant we parse full header in media gallery?

Regards
Tabish
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Tabish,

Right now, I don't have any support in Media Gallery for this, but it is a great idea, so I will add it.

I have a v1.2.7 release that I will put out soon with a few minor bug fixes, I will put it in there.

Thanks!
Mark
 Quote

Tabish

Anonymous
Quote by mevans: Tabish,

Right now, I don't have any support in Media Gallery for this, but it is a great idea, so I will add it.

I have a v1.2.7 release that I will put out soon with a few minor bug fixes, I will put it in there.

Thanks!
Mark


Great.. i will be waiting for that.

Thank you..

 Quote

All times are EST. The time is now 09:10 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content