Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Linking to Topics in Another Plugin
Linking to Topics in Another Plugin [message #624131] Mon, 03 May 2010 16:34 Go to next message
Ole Ersoy is currently offline Ole Ersoy
Messages: 201
Registered: July 2009
Senior Member
Hi,

Anyone know how to link to topics or content contained in another help plugin? I'd also like to link to a topic for which the infocenter generates the content (topic containers where the topic does not have an href corresponding and only serves as a category, so the infocenter generates the page with links to subtopics).

TIA,
- Ole
Re: Linking to Topics in Another Plugin [message #624132 is a reply to message #624131] Mon, 03 May 2010 17:27 Go to previous messageGo to next message
Chris Austin is currently offline Chris Austin
Messages: 28
Registered: July 2009
Junior Member
Hi Ole,

If I understand your question correctly, 1 way to link to other plugin topics is to use a relative path in your html, something like this:

<a href="../../other.plugin.id/html/othertopic.html">Other Topic</a>

As far as the generated topics, I don't know of a way to find them at runtime, since the nav number changes based on how many books you have. If someone else knows, feel free to jump in.

What may be helpful is some new functionality in 3.6:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=190467

This feature allows you to include the dynamic children's list right in the topic.
Re: Linking to Topics in Another Plugin [message #624133 is a reply to message #624132] Tue, 04 May 2010 14:09 Go to previous messageGo to next message
Ole Ersoy is currently offline Ole Ersoy
Messages: 201
Registered: July 2009
Senior Member
Chris,

Excellent - Thank you. Linking to content in other plugins looks easy enough.

It seems the 3.6 feature is only for adding sub topics to an overview page, if I understand correctly. What I'm looking for is the ability to link to a generated overview page from another page that's possibly located in a different plugin. So for instance if the topic had a unique id:


<topic id="someUniqueID" label="Make it Simple">
</topic>


Then, if there was a link interceptor / listener that gets notified in the event of a click on the anchor element, it could resolve a link specified like this:


<a href="href="../../other.plugin.id#someUniqueID"></a>


Thanks again,
- Ole
Re: Linking to Topics in Another Plugin [message #624134 is a reply to message #624131] Tue, 04 May 2010 14:12 Go to previous message
Ole Ersoy is currently offline Ole Ersoy
Messages: 201
Registered: July 2009
Senior Member
ooops - The anchor element example should look like this:


<a href="../../other.plugin.id#someUniqueID"></a>
Previous Topic:Linking to Topics in Another Plugin
Next Topic:Huge memory consumption of Eclipse Infocenter
Goto Forum:
  


Current Time: Fri Aug 22 00:02:15 EDT 2014

Powered by FUDForum. Page generated in 0.32341 seconds