bishop335 / subtext

Automatically exported from code.google.com/p/subtext
0 stars 0 forks source link

Navigation/highlight issue: Editing Articles #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login as admin, go to Articles
2. Click Edit link for any article

What is the expected output? What do you see instead?
As the edit window comes up, the Posts menu should be highlighted. Also,
when clicking the Cancel button, the administrator should be taken to the
list of articles. Instead, the Posts menu is highlighted and clicking
Cancel takes the user to the list of existing Posts.

What version of the product are you using? On what operating system?
Trunk code, XP Professional

Original issue reported on code.google.com by shankarkrupa@gmail.com on 30 Mar 2010 at 8:38

GoogleCodeExporter commented 9 years ago
The EntriesList calls PostEditUrl for both posts and articles, the Edit link 
points
to posts/edit.aspx?PostId=<id>.

The attached patch contains a new method in AdminUrlHelper.cs and in
EntriesList.ascx.cs for getting the articles edit url just like PostsEditUrl. 
The
repeater in EntriesList would call a wrapper method which would in turn call 
post
edit urlr or articles edit url based on the TabSectonId.

Please let me know if this should have been handled in a better way so that it 
would
help me to follow the same if I could contribute something in the future.

Original comment by shankarkrupa@gmail.com on 30 Mar 2010 at 9:17

Attachments:

GoogleCodeExporter commented 9 years ago
Confirmed this is a bug. Will apply the patch.

Original comment by haac...@gmail.com on 30 Mar 2010 at 9:50

GoogleCodeExporter commented 9 years ago
Fixed in r4011. Thanks for the patch!!!

Original comment by haac...@gmail.com on 30 Mar 2010 at 9:56

GoogleCodeExporter commented 9 years ago

Original comment by Simon.JPhilp on 6 May 2010 at 5:17