Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/16/2008 1:17 PM |
|
Hi Scott,
i recently implemented the iFinity URL Master module, to improve SEO on my sites.
Now i found one problem with News Articles Archives.
See this thread in Bruce's support forum, which describes the same problem with the Magic News module, and where i added my bug report:
http://www.ifinity.com.au/Products/Support_Forums/forumid/8/postid/1048/scope/posts/
When a NA Archives module instance is placed on the page where the main module
resides, all is fine, but when News Articles Archives is e.g. placed on
the home page it does not work, because the links created are directing
to the home page.
Example (NA main module resides on NewsundBlogs page):
This is how the links should be, when the NA Archives is placed on the Home page:
http://www.wolfsbau.de/NewsundBlogs/articleType/AuthorView/authorID/309/joe.aspx
This is how the links effectively are (not working) when the NA Archives is placed on the Home page:
http://www.wolfsbau.de/Home/articleType/AuthorView/authorID/309/joe.aspx
I'm not sure if it's Bruce's module or yours that's making the mistaking, but the interesting thing is, that the NA Latest module is working fine, all links are created OK.
Are you creating you Link-URL's in the Archives module different from the NA Latest module?
If necessary, please get in touch with Bruce Chapman to sort this problem out.
Thanks, Joe
|
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 8/16/2008 4:35 PM |
|
What do the 2 links look like before you apply the rewriter though? (this would tell you where the problem is) |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/17/2008 2:41 AM |
|
Hi Scott,
thanks for replying so fast.
When i apply the core rewriter, the link of the NA "archives", located on the home page, looks like:
http://staging.wolfsbau.de/tabid/710/articleType/CategoryView/categoryId/56/Allgemein.aspx
This link works, but it's missing the URL friendly target page.
On the other hand, when i look at the links of the NA "latest" module (also located on home page), i see the following:
http://staging.wolfsbau.de/NewsundBlogs/tabid/710/articleType/ArticleView/articleId/300/24022008--Nightwish-in-Stuttgart.aspx
Here, the target page "NewsundBlogs" is included, and this link also works when the URL Master rewriter module is applied.
So i guess there's something different in the way the friendly URLs are created, between NA Latest (good) and NA Archives (not good).
Bruce, the maker of URL Master, wrote me, that the same problem other users experienced with MagicNews module came from a bug with the MagicNews module, in that it wasn't using the right Tab to generate the correct Url.
Hope this helps to sort it out.
Cheers, Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 8/17/2008 3:10 AM |
|
Can you confirm that you are using the latest release? The TabID should be correct (as the url works), it just made me a different way that the url is being formed. |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/17/2008 6:09 AM |
|
Yep, i'm running NA 00.06.17. Can you make NA Archives create the URLs the same way NA Latest does? Thanks, Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/17/2008 6:36 AM |
|
Hi Scott,
here are some more details that might be of interest:
The NA Archives module only makes a problem with URL Master when the settings are set to "group by category" or group by author. When i use "group by date" everything works fine and the URLs are as expected.
In your source code, when "group by date" is chosen, you're creating the URLs like this:
literal.Text = literal.Text.Replace("[LINK]", Common.GetCategoryLink(_articleTabID, _articleModuleID, objCategory.CategoryID.ToString(), objCategory.Name, ArticleSettings.LaunchLinks))
whereas when grouping by category and author, you are using some helper functions:
literal.Text = literal.Text.Replace("[LINK]", Common.GetCategoryLink(_articleTabID, _articleModuleID, objCategory.CategoryID.ToString(), objCategory.Name, ArticleSettings.LaunchLinks)) and
literal.Text = literal.Text.Replace("[LINK]", Common.GetAuthorLink(_articleTabID, _articleModuleID, objAuthor.UserID, objAuthor.UserName, ArticleSettings.LaunchLinks))
In the above functions your are obviously calling the FriendlyUrl function (of the core?) with the ActiveTab and not with the articleTabId, which i suppose is the problem:
If DotNetNuke.Entities.Host.HostSettings.GetHostSetting("UseFriendlyUrls") = "Y" Then
Dim strURL As String = ApplicationURL(tabID) Dim settings As PortalSettings = PortalController.GetCurrentPortalSettings
... Return FriendlyUrl(settings.ActiveTab, strURL, Common.FormatTitle(username), settings)
Else
If (launchLinks) Then Return NavigateURL(tabID, "AuthorView", "authorID=" & authorID.ToString(), "mid=" & moduleID) Else Return NavigateURL(tabID, Null.NullString, "articleType=AuthorView", "authorID=" & authorID.ToString()) End If
End If
Does this make sense?
Cheers,
Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 8/17/2008 7:09 AM |
|
| Yep, you are correct, it's passing the wrong tab ID in, it should be the target Tab. |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/18/2008 12:59 AM |
|
Hi Scott, i just read your post about "Redesigning Elements of News Articles". This sounds like you're in the middle of a big refactoring of NA. I'm wondering if you will be able to issue a bug fix for the friendly URL issue soon, or if i will have to take some workaround actions in the meantime. Cheers, Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 8/18/2008 1:33 AM |
|
| I should be able to release a patch tomorrow - I haven't implemented the major changes, just refactored a lot of the code in preparation. |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/18/2008 2:27 AM |
|
Sounds good. Your support is greatly appreciated. Thanks and cheers, Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 8/22/2008 6:54 AM |
|
I should be able to release a patch tomorrow - I haven't implemented the major changes, just refactored a lot of the code in preparation.
Friendly bump - any progress on this?
|
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 8/22/2008 7:44 AM |
|
| It's been resolved - just tidying up the release as I've rewritten a lot of the template code and since there is going to be some small breaking changes with templates, I held off to get it all done at once. |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 9/04/2008 10:55 AM |
|
Hi Scott,
you said that it's been resolved. I just tested the latest 7.03 version but still see that bug. It is still generating the article URL with the wrong tabid.
Could you please check why the changes haven't made it into the release?
Thanks a lot - i like the new release, especially the new archive mode settings.
Great job!
Thanks,
Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 9/05/2008 8:50 AM |
|
When I refactored some code, it took out the changes I made.. :( I'll have it fixed in next build.. |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 9/06/2008 3:53 AM |
|
Thanks - great! When you're at it, could you please check if the localization of the NA Menu Item [RESX:Archives] (from menu.html Template) is working? I have localized all "Archives" resources i could find but it still displays "Archives". Where should that resource be located? Thanks, Joe |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 9/08/2008 8:53 AM |
|
| it should be in the sharedresources.ascx.resx file |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 9/08/2008 9:37 AM |
|
Ah - found it. Thanks! |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 9/09/2008 9:45 AM |
|
| Can you try the latest module for that tab issue? |
|
Scott McCulloch Site Administrator |
|
|
Joe Maier Registered Users
 Ventrian Wiz Posts:182

 |
| 9/09/2008 11:09 AM |
|
Works. Thanks Scott - great work as always! |
|
maiersoft internet solutions - www.maiersoft.de Get your own managed DotNetNuke-Portal
|
|
|
Déclic Vidéo Registered Users
 Ventrian Master Posts:1283


 |
|