Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 179537 - Wiki pages should have same left navigation as a project's website pages
Summary: Wiki pages should have same left navigation as a project's website pages
Status: CLOSED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Website (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: phoenix.ui CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 125497
Blocks:
  Show dependency tree
 
Reported: 2007-03-27 10:26 EDT by Bjorn Freeman-Benson CLA
Modified: 2008-04-28 18:14 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjorn Freeman-Benson CLA 2007-03-27 10:26:31 EDT
As per https://bugs.eclipse.org/bugs/show_bug.cgi?id=125497#c18I'm opening a new bug on this same issue:

[Old words]
The wiki (http://wiki.eclipse.org/index.php/Main_Page) is similar, but not the
same, as the other pages (http://www.eclipse.org/). Because projects are incorporating wiki pages into their websites, it would be best to have a consistent UI. 

[New words clarifying the old words]
The wiki left nav that combines actions (edit), meta-links (related changes), and navigation (main page) is not consistent with the rest of the eclipse.org website.

[Revised words clarifying old words]
There needs to be a way to specify the left menu for a wiki page so that one could say "make the left menu of this page be the same as the Web Tools left menu" - then the wiki pages could be even more integrated with a project's website.
Comment 1 Mik Kersten CLA 2007-03-27 11:48:56 EDT
If I understand correctly, that would be great.  What I would ideally want for a Wiki page that was categorized as "Mylar" would have Mylar project contents in the left menu, and a separate section of that menu (or top of the wiki page) for the wiki operations.  For pages categorized under a Project the "Navigation" section could be axed since it offers almost nothing of use.  Most of the "Toolbox" could probalby go away too, making room for project-specific navigation.
Comment 2 Denis Roy CLA 2007-12-19 11:53:21 EST
I updated the title to better reflect my understanding of comment 0.

A proposed solution would be:

a) for projects to identify Wiki pages as belonging to their project by adding a tag to them (for instance, {{PROJECT:technology.phoenix}} or something along those lines).  We need to decide on a standard tag.

b) for the Phoenix team to hack the Wiki skin or create a plugin that, upon detecting the {{PROJECT}} tag, queries the ProjectInfo in the same manner as Phoenix does and generates the left nav identical to the website.


While implementing this, it also means that:

a) the 'default' left nav for non-project wiki pages should also be the same left nav as the eclipse.org website (the four links)

b) the Edit/History/Recent Changes wiki knobs need to be moved, possibly to the bottom of the page.


I've cc'd the folks on the Higgins project, as they have expressed interest in this.  I also changed this to a bug, as it's a source of pain for our community.

Mik, Paul and Mary, would the proposed solution (you add a tag to all your Wiki pages, and we put the same left navigation as your project website) work for you?
Comment 3 Bjorn Freeman-Benson CLA 2007-12-19 12:15:28 EST
(In reply to comment #2)
Could we tweak this a little to do the following:
1. Once a day (or something) a background job does a fetch of each project's root home page. It extracts the HTML for the left nav from that fetched page and stores that HTML in a database keyed by the project.
2. The wiki pages then use that HTML for the left nav of the {{PROJECT:}} tagged pages.

This would allow projects to have customized left navs rather than just one left nav. This would allow Mylyn to have a different left nav (http://www.eclipse.org/mylyn/) and EMF to have a different left nav (http://www.eclipse.org/modeling/emf/) and Dash to have a different left nav (http://www.eclipse.org/dash/), etc.
Comment 4 Mary Ruddy CLA 2007-12-19 15:27:41 EST
Being able to label pages as belonging to a particular project (comment 2)is great.
Also being able to have the project specific nav show on the wiki nav would be tremendous. This would greatly reduce the "getting lost" problem. (comment 3)

Note that Higgins is currently trying to remove the 4 default nav options at the top of the Higgins home page (like ECF has to reduce the "getting lost" problem), but I'm having trouble making this work as this seems to be a delicate area. So when the default the project web nav to the wiki nav part is done, it will need to be done carefully.

How quickly could this be implemented?
Comment 5 Eclipse Webmaster CLA 2008-02-22 16:25:30 EST
I've built a semi-functional prototype that you can see here:  build.eclipse.org/testwiki/Testpage

The solution I'm working on involves an extension module and modifications to the default Eclipse Wiki skin.

When this is complete you will be able to add the following to the top of an article and it will generate the 'project' skin:

{{#eclipseproject:foundation.test}}

So how does it work?  Well the extension module will take the first(and only) parameter and use it to preform a lookup on the ProjectInfo DB looking for keys of  type 'projectleftnav' which you will be able to edit via the portal.  These keys will be used to generate a custom left nav bar(or generic one if you haven't added any).  Once the extension module has re-written the page the skin will detect those changes on render and will insert the custom left nav as well as updating the header and footer to resemble the Eclipse.org site.  The skin will also append an 'edit' link to the bottom of the left nav, but *only* if you are currently logged into the Eclipse Wiki, if not you will never see the edit option.

-M.
Comment 6 Mary Ruddy CLA 2008-02-25 09:40:18 EST
This approach would make a big improvement in Eclipse website/wiki usability.  Thank you for putting this together. How soon can we have it in production?

Just two questions, 

 1) When you say article, do you mean wiki page? 
 2) Assume that in the production version, there would still be a login link in the upper right hand corner of the wiki page. 
Comment 7 Eclipse Webmaster CLA 2008-02-25 10:54:31 EST
Mary,

  Yes in this context 'article' and 'page' are synonymous.  

Adding the login link to the top right of the page presents a style issue since the eclipse.org skin uses that space to contain the 'legal' and 'contact' and it doesn't quite look right(breaks the same website illusion) with the login tab there as well.

-M.
Comment 8 Mary Ruddy CLA 2008-02-25 14:48:43 EST
So how does someone login so that they get the edit capability?

Comment 9 Eclipse Webmaster CLA 2008-02-25 16:30:34 EST
Just hit wiki.eclipse.org, same as now.

-M.
Comment 10 Eclipse Webmaster CLA 2008-02-28 16:13:59 EST
So after thinking more about Marys comment I think a solution is to always append the 'Edit' option to the bottom of the left nav.  This would mean that if you were logged into the wiki you would go straight to the edit page, if not it takes you to the 'view source' page and that has a login link.

I'm still concerned that this solution much like adding the 'login' link in the top left will result in confusion for 'casual' users of the site('why do some pages say edit and others don't?').  If people have suggestions or ideas to solve this possible problem here's the place to post them.

-M.
Comment 11 Eclipse Webmaster CLA 2008-03-07 16:00:25 EST
Ok, so the new skin and plugin are live on wiki.eclipse.org, and you can check out what it looks like here: http://wiki.eclipse.org/Phoenix

There are of course a couple of caveats, the first is that all of the urls you enter into the projectleftnav field in the project meta-data must be fully qualified(http(s)://eclipse.org/page) and they must point at an eclipse.org site, if either of these is not true then the link will be ignored. Secondly if you use the 'separator' option then only the next link that follows the separator will be idented.  Lastly there is no 'default' menu, so if you don't have any entries in the meta-data the only link on your left nav will be the edit link.

Just add {{#eclipseproject:technology.higgins}} to the top of a Wiki article and you should be set.


-M.
Comment 12 Bjorn Freeman-Benson CLA 2008-03-07 16:15:15 EST
Where is the documentation for the projects?  I go here http://www.eclipse.org/projects/ and click on "What's New" and there's nothing about this.  I go back and click on "Help me lead my project" and navigate to the "guidelines for a mature project" http://www.eclipse.org/projects/dev_process/mature-phase.php and I see nothing.  I even go to the "project status infrastructure" documentation page, the page that lists all the meta-information fields and what they affect - still nothing.

The bug isn't fixed until the documentation is written.
Comment 13 Denis Roy CLA 2008-03-07 16:24:41 EST
(In reply to comment #12)
> Where is the documentation for the projects?

http://wiki.eclipse.org/Using_Phoenix


>  I go here
> http://www.eclipse.org/projects/ and click on "What's New" and there's nothing
> about this.  I go back and click on "Help me lead my project" and navigate to
> the "guidelines for a mature project"
> http://www.eclipse.org/projects/dev_process/mature-phase.php and I see nothing.
>  I even go to the "project status infrastructure" documentation page, the page
> that lists all the meta-information fields and what they affect - still
> nothing.

Oh, those seem to be under your jurisdiction. Can you add a blurb about this to those pages? Thanks.

> The bug isn't fixed until the documentation is written.

The documentation was written before the bug was closed -- it's just not where *you* looked for it.
Comment 14 Denis Roy CLA 2008-03-07 16:53:09 EST
(In reply to comment #13)
> The documentation was written before the bug was closed -- it's just not where
> *you* looked for it.

Sorry -- I totally missed this page:

http://www.eclipse.org/projects/dev_process/project-status-infrastructure.php 

I'm scanning for others that may need updating.
Comment 15 Bjorn Freeman-Benson CLA 2008-03-07 18:08:13 EST
(In reply to comment #13)
> The documentation was written before the bug was closed -- it's just not where
> *you* looked for it.

I take back my criticism: the committer documentation is so poorly organized that nobody can find anything, much less find the places that it should be updated when systems change.  And by "nobody", I mean even the committers can't find anything - there's just no excuse: it's confusing and convoluted.  Sigh.  I have opened bug 221934 to reorganize the committer-facing documentation.
Comment 16 Tom Carroll CLA 2008-03-17 10:57:00 EDT
(In reply to comment #11)
> ...
> 
> Just add {{#eclipseproject:technology.higgins}} to the top of a Wiki article
> and you should be set.
> 

This is a fantastic new feature! It really makes the wiki navigation much more user friendly. One problem though - adding the tag breaks the "show preview" mode during wiki editing. Not sure if I should post this here or as its own bug, but here it is for now.

Comment 17 Eclipse Webmaster CLA 2008-03-18 12:00:19 EDT
Thanks to finding that!  There was a computation error in the string replacement routine.  I've fixed it and after testing that the page looks ok I've rolled it out.

-M.
Comment 18 Mary Ruddy CLA 2008-03-18 13:34:46 EDT
Still having odd behavior.  I deleted the Higgins Home nav again (which is the one that was causing the trouble) waited until it didn't display any more, then readded it. Now the Higgins solutions wiki page shows no Higgins Home and the Components wiki page shows it at the bottom. Any suggestions???
Comment 19 Eclipse Webmaster CLA 2008-04-03 15:55:33 EDT
Hi Mary,  I believe we fixed your issue as bug 223008 correct?

-M.
Comment 20 Mary Ruddy CLA 2008-04-03 16:01:15 EDT
Yes.  I currently consider this resolved. 
Comment 21 Eclipse Webmaster CLA 2008-04-04 11:00:31 EDT
Closing.

-M.
Comment 22 Bjorn Freeman-Benson CLA 2008-04-28 18:14:40 EDT
Verified. Closing.