Tags:
create new tag
, view all tags

SID-02295: Get the "Grandparent" of a topic

Status: Answered Answered TWiki version: 6.0.0 Perl version: v5.10.0
Category: CategorySearch Server OS: Suse Linux Enterprise Server 11 SP1 Last update: 4 months ago

I have the following structure of topics (If I show it in Treeview):

Application1

...+-- ProvServ1

......+-- EsbServ1

...+-- ProvServ2

......+-- EsbServ2

......+-- EsbServ3

Application2

...+-- ProvServ3

......+-- EsbServ4

In the Topics "EsbServ1" and "EsbServ2" is a Link to Application2

With a nested search as discribed in the "Formattedsearch"-Topic I get the Infomation, that "Application2" is referenced by "EsBServ1" and "EsbServ2".

So far so well.

But I needed to know the "Grandparent" of EsbServ1 and EsbServ2 - that is "Application1", because the Question is "Which applications are neccessary, that Application2 can work?".

Is there a way to get the Grandparent in the nested search results, so it looks like

Application2 is referenced by:

Application1-EsbServ1, Application1-EsbServ2

Or is there any other way to get the needed information? i.e. an "nested"

%PARENTTOPIC{topic="%PARENTTOPIC{topic="EsbServ1"}%"}%
-- Peter Starek - 2017-02-01

Discussion and Answer

Yes, you can nest PARENTTOPIC. Alternatively get first the full breadcrumb with a META:

%META{ "parent" nowebhome="on" format="$topic" separator=", " }%

You can wrap that in a CALCULATE SpreadSheetPlugin formula to get the second last item of the comma-list.

-- Peter Thoeny - 2017-02-01

Thank you

-- Peter Starek - 2017-02-28

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Get the "Grandparent" of a topic
SupportCategory CategorySearch
TWiki version 6.0.0
Server OS Suse Linux Enterprise Server 11 SP1
Web server Apache httpd 2.2.10
Perl version v5.10.0
Browser & version Firefox 49.0.1
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2017-02-28 - PeterStarek
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.