%PARENTTOPIC% or %PARENTTOPIC{ format="..." topic="..." }%
FeatureRequest, renders as FeatureRequest
| Item | Description | Default |
|---|---|---|
format="..." | Format string used to display parent topic, where $web expands to the web name, and $topic expands to the topic name. Additional formatting tokens can be used. | "$topic" (topic name) |
topic="..." | Get parent of "Topic" or "Web.Topic" | "%WEB%.%TOPIC%" (current topic) |
It's not really clear to me from your description what it is you actually want. How would a variable help you "reset the parent"?
-- CrawfordCurrie - 02 Jul 2007
Good idea for usability. Adding myself as committed developer.
-- PeterThoeny - 2010-06-22
This is now AcceptedBy7DayFeedbackPeriod.
-- PeterThoeny - 2010-06-30
This is now implemented and documented in SVN trunk.
-- PeterThoeny - 2010-06-30
Now that this is implemented I realize that we have an inconsistency in syntax:
PARENTTOPIC for variable
topicparent for URL parameter to edit and save script
$parent in FormattedSearch
topicparent (but leave implemented) and add parenttopic? Or add parenttopic as undocumented parameter for those who assume things (like me?)?
-- PeterThoeny - 2010-07-01
For now I added parenttopic as undocumented parameter. If there are opinions to change the documented parameter we can change/deprecate the current syntax.
-- PeterThoeny - 2010-07-01
sticking to "parenttopic" in URL parameter is good idea
-- SopanShewale - 2010-07-02