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

Related: BetterMore, HowToShowParentTopics

Category: TWikiPatches

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-01-03 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.