Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#52 PageTrail Duplicates Patch (1.3.4)

1.3.x
closed
Carsten Klapp
None
5
2012-10-11
2003-02-05
myrddin22
No

Patch to enable/disable duplicate page entries for the
item in the page trail.

Patched against PhpWiki 1.3.4.

This patch adds a parameter(duplicates) to the
PageTrail plugin that allows you to turn on/off the
displaying of duplicate trailing entries. Specifically
I was trying to make it so that when I put the
PageTrail plugin at the top and bottom of the page I
wouldn't see the current page twice on PageTrail at the
bottom of the page. It will of course also keep the
entry happening again if you happen to click on the
same link twice.

Set duplicates to 1 to get duplicates:
<?plugin PageTrail duplicates=1?>

Set duplicates to 0 to not get duplicates:
<?plugin PageTrail duplicates=0?>

The default is 0
(cause that is the way I like it ;-)

I've only lighted tested but it works for me.

Discussion

  • myrddin22
    myrddin22
    2003-02-05

     
    Attachments
  • Reini Urban
    Reini Urban
    2004-02-27

    Logged In: YES
    user_id=13755

    /cvsroot/phpwiki/phpwiki/lib/plugin/PageTrail.php,v <--
    PageTrail.php
    new revision: 1.4; previous revision: 1.3