Register   Login
     
  Latest Posts  
Module Development Techniques
by hchattaway on 11/23/2008 5:14 PM
Customizing the URL a little further
by tmahmud on 11/23/2008 4:11 PM
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
  Forums  
Subject: Google Search Results with News Articles!
Prev Next
You are not authorized to post a reply.

Page 1 of 212 > >>
Author Messages
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/09/2005 1:19 PM  

Let me start with saying how much I love the News Article module (I even just upgraded to the newest version, which, also rocks!).

My only frustration right now is my results on google searches.

Here is my site http://www.mygadgetbag.com

Here is an example of a google search result:

My Gadget Bag > Gadget News, Reviews, and Commentary...Daily ...
Suunto X9i GPS watch By Justin Cooper @ 2:02 PM :: 121 Views ::. Suunto X9i · Suunto has announced the X9i GPS wristwatch. It is the smallest GPS wristwatch ...
www.mygadgetbag.com/Home/tabid/36/articleType/ ArticleView/articleId/405/SuuntoX9iGPSwatch.aspx - 26k

I need to get the title changed to something like this:

Suunto X9i GPS Watch > MyGadgetBag.com > Gadget News, Reviews, and Commentary...Daily...
Suunto X9i GPS watch By Justin Cooper @ 2:02 PM :: 121 Views ::. Suunto X9i · Suunto has announced the X9i GPS wristwatch. It is the smallest GPS wristwatch ...
www.mygadgetbag.com/Home/tabid/36/articleType/ ArticleView/articleId/405/SuuntoX9iGPSwatch.aspx - 26k

I really need to get the title of the story first.  When it comes to Search Engine Optimization, this is key.  People are more likely to click on the title of the story, rather than the name of the site.

I need it set up like this:

STORY TITLE > MyGadgetBag.com > blah blah

Can anyone help me?  I've looked everywhere on how to fix this!

 

Thank you so much!

Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

11/09/2005 2:51 PM  

I added this post in DNN forums on SEO with DNN. It includes a section on dynamic page titles. There are many ways to do this. I have tried at least 3 suggestions that did not work for me in the forums. There is another one someone recently posted supposedly to work. But I could not figure it out without making a core change.

See my post for the core change I made to get this to work:

http://forums.asp.net/970390/ShowPost.aspx

You can see an example of me using this for events module:

http://www.yapclub.com/dfw/EVENTS/tabid/56/ctl/details/mid/369/eventID/250/Default.aspx

And forums:

http://www.yapclub.com/FORUMS/tabid/58/fid/2/tid/607/Default.aspx

I even went as far as to add event descriptions in my descriptions tag dynamically.

And I plan on doing this same thing for Scott's Simple Gallery and News Articles so it looks good in searches. But I will have to add this as custom mods to these modules.

Here's an example of how my stuff looks spidered:

http://search.yahoo.com/search?p=www.yapclub.com&toggle=1&ei=UTF-8&xargs=0&pstart=1&fr=FP-tab-web-t&b=401

Jason


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/09/2005 3:24 PM  

Thank you so much for your reply. 

I searched those forums like crazy trying to find the answer, but my searches resulted in too much information about what I wasn't looking for.

Your solution looks like what I needed.  Thank you!

I will try it out, and post on this thread with my results.

Justin

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


11/09/2005 3:58 PM  

I do modify the title as part of news articles to include the article title. What if I put an option in admin options to include or not include the current page information (e.g. SITE NAME -> Page Name -> Article Name).

I originally had it just doing the article name, but others wanted the site name and page name included, so a option could be added to do both.

This could be added to Simple Gallery too based on the album or caption.


Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


11/09/2005 4:01 PM  
I also have an article on how to set the paget itle dynamically from code.

Scott McCulloch
Site Administrator
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/09/2005 4:02 PM  

Hey Scott,

What file do I need to edit that overrides this function...it looks like you override this so that our title of the story is in the Title of the page.

If PortalSettings.ActiveTab.Title <> "" Then
                strTitle = PortalSettings.ActiveTab.Title
            End If
            Title = strTitle

I think this is the part that gets used in News Articles.  This is from default.aspx.

I'm still struggling with this dynamic title change.

I think I'll have to hunker down tonight to get this to work.

Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/09/2005 4:12 PM  

Doh!  Disregard my previous message.  I hadn't read your newest one (it didn't display for some reason). sorry about that...

What file is this part of your code in News Articles:

Now the easy part, from our module we can now do:-

Me.BasePage.Title = "My Custom Title"

Basically, I just want to change the ordering from:

MYSITE > DESC > STORY TITLE

to

STORY TITLE > MYSITE > DESC

I hope this is possible.

(Can't figure out how to remove the bold...doh!)

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


11/09/2005 4:19 PM  

It's ucArticleView.ascx.vb:-

Dim settings As PortalSettings = PortalController.GetCurrentPortalSettings

If (settings.ActiveTab.Title.Length = 0) Then

Me.BasePage.Title = Server.HtmlEncode(settings.PortalName & " > " & settings.ActiveTab.TabName & " > " & objArticle.Title)

Else

Me.BasePage.Title = Server.HtmlEncode(settings.PortalName & " > " & settings.ActiveTab.Title & " > " & objArticle.Title)

End If


Scott McCulloch
Site Administrator
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/09/2005 4:23 PM  

Thank you so much, Scott!

 

Kevin RimlingerUser is Offline
Registered Users

Posts:50


11/09/2005 5:02 PM  

If you are looking suggestions for configurable page titles in the admin settings, I like:

"Site Name > Article Title"

I don't need the page title thrown in.

Of course, I'm not really bothered by this. So don't put in extra work just for me. I suppose if you are going to go through the trouble of giving us choices you would probably work out a system that uses tokens or variables, so you don't have to worry about suggestions like this one. ;-)

Cheers!


http://www.homeofficeblues.com
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

11/09/2005 9:37 PM  
Posted By smcculloch on 11/09/2005 4:01 PM
I also have an article on how to set the paget itle dynamically from code.


Ahhh!! The other person who I remembered recently posting a correct way to do the title dynamically was Scott. I never saw Scott's particular solution like before as the asp.net DNN forums had other suggestions for doing this that didn't work quite right.

I thought this might be a good feature to make more 'friendly' for the core. There are some issue with a solution (such as multiple modules on a page trying to modify the title) but I did suggest making the meta tags as properties for the portalmodulebase:

http://forums.asp.net/974296/ShowPost.aspx

Jason

 



Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
John CyriacUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:13

11/10/2005 12:44 AM  

I vote making this an option so the admin. can choose;

[ARTICLETITLE] > [SITETITLE] > [PAGETITLE] tags would be great!

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


11/10/2005 2:53 AM  

Since it's not actually part of the template code (the title sits in the header of the page). I'll be adding an admin option to choose (from a dropdownlist):-

(Article Title)

(Article Title -> Site Title)

(Article Title -> Site Title -> Page Title) <--- Default

(Site Title -> Page Title -> Article Title)

Have I missed any?

 


Scott McCulloch
Site Administrator
Mark LambleUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:15

11/10/2005 6:27 AM  

(Page Title -> Article Title)

would be most excellent....

Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/10/2005 7:56 AM  
Scott,

That would be great if you could add that in the next release (or whenever you get a chance!).

I will hold off for a bit on modifying your core code (makes things messy to upgrade).

You are the greatest!
Kevin RimlingerUser is Offline
Registered Users

Posts:50


11/10/2005 9:51 AM  
Site Title > Article Title

http://www.homeofficeblues.com
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


11/10/2005 3:07 PM  
Any comments about which one would be default?

Scott McCulloch
Site Administrator
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/10/2005 3:17 PM  
Well, I would obviously prefer the:

STORY TITLE > SITE NAME > SITE DESCRIPTION

This is optimal for Search engine optimization, and recognition.

People will click what they are looking for first, and than if they see your site title once in a while they will recognize it.  Page title seems to be the least relevant.
Justin CooperUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:26

11/10/2005 3:18 PM  
Doh, that came off as kind of snooty!

I didn't mean it like that.  I promise!

I don't even mind if my option is not default, as long as I can choose from the options.

Thanks, Scott!
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


11/14/2005 1:44 AM  
Posted By jwcooper on 11/10/2005 3:17 PM
Well, I would obviously prefer the:

STORY TITLE > SITE NAME > SITE DESCRIPTION

This is optimal for Search engine optimization, and recognition.

People will click what they are looking for first, and than if they see your site title once in a while they will recognize it.  Page title seems to be the least relevant.


Wouldn't site description be too long?

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Page 1 of 212 > >>

Forums > Modules > News Articles > Google Search Results with News Articles!



ActiveForums 3.7