LinkToThis
Votes: 10
Tags: Navigation, snippet
Submitted: Jul 25, 2008
Released: Jul 25, 2008
Downloads: 186
License: GPL - GNU Public
Package Website
LinkToThis 0.1.5
Works with the following Version(s): 0.9.5 | 0.9.6
Returns an unordered list of links from comma separated IDs in a TV.
Download
- repo-2132.txt (186 downloads)
Description
This little snippets makes it an breeze to link from one document some related documents. Just type there IDs separated by commas in a TVs field. The link text will be generated from the long title.
Instructions
Installation
In the MODx manager, go to Resources > Snippets and create new snippet. Name it "LinkToThis", copy and paste the contents of snippet.LinkToThis_016.txt and save it.
Example Usage
1. Create a TV with the following parameters:
Widget: Delimited List
Save it as "internallinks"
2. Call this TV in any document with
LinkToThis? &target=`internallinks`
3. Just type some IDs comma seperated in the TVs field of your document
Parameters
$target
mandatory
Name of TV where the IDs will be set
$docID
optional
ID of the document where $target is set
$linkclass
optional
Will define the class of the ul, if not set class="linktothis" will be setUpdatesdocID parameter added.
Sub-Packages
Previous Releases
0.1
Votes: 9
Tags: Navigation, snippet
Submitted: Jul 24, 2008
Released: Jul 24, 2008
Downloads: 189
License: GPL - GNU Public
Package Website
LinkToThis 0.1
Works with the following Version(s): 0.9.5 | 0.9.6
Returns an unordered list of links from comma separated IDs in a TV.
Download
- repo-2130.txt (189 downloads)
Description
This little snippets makes it an breeze to link from one document some related documents. Just type there IDs separated by commas in a TVs field. The link text will be generated from the long title.
Instructions
Installation
In the MODx manager, go to Resources > Snippets and create new snippet. Name it "LinkToThis", copy and paste the contents of snippet.LinkToThis_010.tpl and save it.
Example Usage
1. Create a TV with the following parameters:
Widget: Delimited List
Save it as "internallinks"
2. Call this TV in any document with
LinkToThis? &target=`internallinks`
3. Just type some IDs comma seperated in the TVs field of your document
Parameters
$target
mandatory
Name of TV where the IDs will be set
$linkclass
optional
Will define the class of the ul, if not set class="linktothis" will be set

Please login to comment.