Justin Cooper Registered Users
 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 Koskimaki Registered Users
 Nuke Wiz Posts:194

 |
|
Justin Cooper Registered Users
 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 McCulloch Administrators
 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 McCulloch Administrators
 Nuke Master Posts:12450


 |
|
Justin Cooper Registered Users
 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 Cooper Registered Users
 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 McCulloch Administrators
 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 Cooper Registered Users
 Nuke Active Member Posts:26

 |
| 11/09/2005 4:23 PM |
|
Thank you so much, Scott!
|
|
|
|
|
Kevin Rimlinger 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 Koskimaki Registered Users
 Nuke Wiz Posts:194

 |
| 11/09/2005 9:37 PM |
|
|
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 Cyriac Registered Users
 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 McCulloch Administrators
 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 Lamble Registered Users
 Nuke Super Newbie Posts:15

 |
| 11/10/2005 6:27 AM |
|
(Page Title -> Article Title)
would be most excellent.... |
|
|
|
|
Justin Cooper Registered Users
 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 Rimlinger Registered Users
Posts:50


 |
| 11/10/2005 9:51 AM |
|
| Site Title > Article Title |
|
http://www.homeofficeblues.com |
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12450


 |
| 11/10/2005 3:07 PM |
|
| Any comments about which one would be default? |
|
Scott McCulloch Site Administrator |
|
|
Justin Cooper Registered Users
 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 Cooper Registered Users
 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 McCulloch Administrators
 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 |
|
|