r7 - 03 Jan 2006 - 08:35:44 - PeterThoenyYou are here: TWiki >  Codev Web > UsabilityIdeas > BetterMore > RenderParentWithoutLink
Tags:
, create new tag
UsabilityIdeas > BetterMore always creates links. This is not always preferable.

Putting <nop> before =UsabilityIdeas > BetterMore does not work because the link is already there. In TWiki.pm (renderParent) the parent link is created by:

    $text = "[[$pWeb.$pTopic][$pTopic]]$sep$text";

I have create a patch to add another attribute to UsabilityIdeas > BetterMore: nolink="on".

Example usage to get the title of one parent only:

    %META{"parent" dontrecurse="on" nolink="on"}%

-- ArthurClemens - 07 Sep 2003

Sounds like a sensible enhancement. Suggestion: Make it consistent with other tags by introducting a format="" parameter instead of a nolink="on" parameter. Example:

    %META{"parent" dontrecurse="on" format="<nop>$topic"}%

-- PeterThoeny - 08 Sep 2003

I don't understand why we add the parent link to the text at all. Why don't we use the META parent as the only source of info, and then render that info? I don't like the duplication of information that we do with some META data.. I'd rather just improve the renderer

-- SvenDowideit - 06 Dec 2003


About the patch file:

  • Status: Ready for inclusion.
  • License: GPL (just for clarity)
  • Summary: Patch to TWiki.pm, sub renderParent. Adds attribute to META%("parent"}: nolink="on" to get the parent topic's title only, not the link of it.
  • Related patch: PatternSkinCodeChanges#Sidebar_navigation_with_parent_c

Related: BetterMore, HowToShowParentTopics

Category: TWikiPatches

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo