Tags:
create new tag
, view all tags
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

Topic revision: r7 - 2006-01-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.