Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
Test /
PData
First, some data that we can look at: Field1: Lorem ipsum dolor sit amet, consectetur adipisicing elit.
To grab the value of a field from the current page, use
To grab the value of a field from another page, use
Some other examples, grabbing Summary lines from Cookbook and PITS pages:
The data can also come from definition lists (currently definitions have to be a single word):
The
[[#summary]]
* [[{=$Group}/{=$Name}]]: {=$:Summary}
[[#summaryend]]
![]()
[[#showthumbs2]]
(:if equal {<$Group}:)
>>lframe width=300px<<
(:if:)[[{=$Name}]] - {=$:Thumbnail}
(:if equal {>$Group}:)
>><<
[[#showthumbs2end]]
Here is a quick test to see how well the
[[#showthumbs]]
(:if equal {<$Group}:)
>>lframe width=300px<<
(:if:)\
{=$:Thumbnail}\
(:if equal {>$Group}:)
>><<
[[#showthumbsend]]
Note: This wasn't working. Why?
Pico September 07, 2006, at 09:10 AM Is this an upcoming feature or test of some already available recipe? It's experimentation, based on things in PITS, the Cookbook, and a discussion on the pmwiki-users mailing list. A good place to start looking at the thread might be http://www.pmichaud.com/pipermail/pmwiki-users/2006-August/031461.html (although it actually begins before that, this message is the one where the I am not sure if there is any PITS entry for this. Please count my vote for this feature. VKrishn September 03, 2006, at 02:37 AM Will there be a way to escape the colon to allow it to be treated literally as part of the defined value? For example, if I use it for defining titles of works, what happens if the title contains a colon, for example: Artist: Roy Buchanan Album: Sweet Dreams : The Anthology Workarounds would presumably include using the ascii code (%3A), or substituting a different character (-), but it might be nice to provide a more intuitive solution. What about allowing optional quotation marks, for example: Artist: Roy Buchanan Album: "Sweet Dreams : The Anthology" Pico September 07, 2006, at 09:10 AM Only the first colon matters; the rest is left alone. For example:
Some oddness with "directive" values
Kathryn Andersen September 26, 2006, at 02:32 AM |
0: 00.00 00.00 config start
1: 00.00 00.00 config end
2: 00.10 00.07 MarkupToHTML begin
3: 00.10 00.07 MarkupToHTML begin
4: 00.11 00.08 MarkupToHTML end
5: 00.11 00.08 MarkupToHTML begin
6: 00.12 00.08 MarkupToHTML end
7: 00.12 00.08 MarkupToHTML begin
8: 00.13 00.10 MarkupToHTML end
9: 00.13 00.10 MarkupToHTML begin
10: 00.13 00.10 MarkupToHTML end
11: 00.13 00.10 MarkupToHTML begin
12: 00.13 00.10 FPLTemplate begin
13: 00.13 00.10 MakePageList pre
14: 00.16 00.10 PageListSources begin
15: 00.16 00.10 PageStore::ls begin wiki.d/{$FullName}
16: 00.25 00.13 PageStore::ls merge wiki.d/{$FullName}
17: 00.28 00.17 PageStore::ls end wiki.d/{$FullName}
18: 00.29 00.17 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
19: 00.29 00.17 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
20: 00.29 00.17 PageStore::ls end $FarmD/wikilib.d/{$FullName}
21: 00.29 00.17 PageListSources end count=1043
22: 00.30 00.18 PageListTermsTargets begin count=1043
23: 00.30 00.18 PageIndexGrep begin
24: 00.40 00.28 PageIndexGrep end
25: 00.42 00.29 PageListTermsTargets end count=860
26: 00.42 00.30 PageListSort pre ret=4 order=name
27: 00.42 00.30 MakePageList items count=860, filters=PageListTermsTargets
28: 00.90 00.71 MakePageList post count=847, readc=860
29: 00.90 00.71 PageListCache begin save key=a496ecc0e7b5445354468efd35b044e9
30: 00.90 00.71 PageListCache end save
31: 00.90 00.71 PageListSort begin
32: 00.90 00.71 PageListSort sort
33: 00.96 00.76 PageListSort end
34: 00.96 00.76 MakePageList end
35: 00.99 00.79 MarkupToHTML begin
36: 01.00 00.81 MarkupToHTML end
37: 01.00 00.81 FPLTemplate end
38: 01.01 00.81 MarkupToHTML end
39: 01.01 00.81 MarkupToHTML begin
40: 01.01 00.81 FPLTemplate begin
41: 01.01 00.81 MakePageList pre
42: 01.04 00.81 PageListSources begin
43: 01.04 00.81 PageStore::ls begin wiki.d/{$FullName}
44: 01.12 00.84 PageStore::ls merge wiki.d/{$FullName}
45: 01.15 00.87 PageStore::ls end wiki.d/{$FullName}
46: 01.16 00.87 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
47: 01.16 00.87 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
48: 01.16 00.87 PageStore::ls end $FarmD/wikilib.d/{$FullName}
49: 01.16 00.88 PageListSources end count=1068
50: 01.17 00.88 PageListTermsTargets begin count=1068
51: 01.17 00.88 PageIndexGrep begin
52: 01.27 00.97 PageIndexGrep end
53: 01.29 00.99 PageListTermsTargets end count=1053
54: 01.29 00.99 PageListSort pre ret=6 order=-time
55: 01.29 00.99 MakePageList items count=1053, filters=PageListTermsTargets,PageListSort
56: 01.77 01.40 MakePageList post count=1052, readc=1053
57: 01.77 01.40 PageListCache begin save key=72e4baac09490eff0e70bbc2765a1902
58: 01.77 01.41 PageListCache end save
59: 01.77 01.41 PageListSort begin
60: 01.77 01.41 PageListSort sort
61: 01.83 01.47 PageListSort end
62: 01.83 01.47 MakePageList end
63: 01.86 01.49 MarkupToHTML begin
64: 01.93 01.57 MarkupToHTML end
65: 01.93 01.57 FPLTemplate end
66: 01.94 01.57 MarkupToHTML end
67: 01.94 01.57 MarkupToHTML begin
68: 01.94 01.57 FPLTemplate begin
69: 01.94 01.57 MakePageList pre
70: 01.97 01.57 PageListSources begin
71: 01.97 01.57 PageStore::ls begin wiki.d/{$FullName}
72: 02.06 01.60 PageStore::ls merge wiki.d/{$FullName}
73: 02.09 01.63 PageStore::ls end wiki.d/{$FullName}
74: 02.09 01.63 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
75: 02.09 01.63 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
76: 02.09 01.63 PageStore::ls end $FarmD/wikilib.d/{$FullName}
77: 02.09 01.63 PageListSources end count=6
78: 02.09 01.63 PageListTermsTargets begin count=6
79: 02.09 01.63 PageIndexGrep begin
80: 02.21 01.74 PageIndexGrep end
81: 02.23 01.76 PageListTermsTargets end count=6
82: 02.24 01.76 PageListSort pre ret=4 order=name
83: 02.24 01.76 MakePageList items count=6, filters=PageListTermsTargets
84: 02.24 01.77 MakePageList post count=6, readc=6
85: 02.24 01.77 PageListCache begin save key=01a6daa3e3a9cb65eb528c1bf1e3832f
86: 02.24 01.77 PageListCache end save
87: 02.24 01.77 PageListSort begin
88: 02.24 01.77 PageListSort sort
89: 02.24 01.77 PageListSort end
90: 02.24 01.77 MakePageList end
91: 02.25 01.77 MarkupToHTML begin
92: 02.27 01.79 MarkupToHTML end
93: 02.27 01.79 FPLTemplate end
94: 02.27 01.79 MarkupToHTML end
95: 02.27 01.79 MarkupToHTML begin
96: 02.27 01.79 FPLTemplate begin
97: 02.27 01.80 MakePageList pre
98: 02.29 01.80 PageListSources begin
99: 02.29 01.80 PageStore::ls begin wiki.d/{$FullName}
100: 02.38 01.82 PageStore::ls merge wiki.d/{$FullName}
101: 02.41 01.85 PageStore::ls end wiki.d/{$FullName}
102: 02.41 01.85 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
103: 02.41 01.85 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
104: 02.41 01.85 PageStore::ls end $FarmD/wikilib.d/{$FullName}
105: 02.41 01.85 PageListSources end count=6
106: 02.41 01.85 PageListTermsTargets begin count=6
107: 02.41 01.85 PageIndexGrep begin
108: 02.53 01.96 PageIndexGrep end
109: 02.55 01.98 PageListTermsTargets end count=6
110: 02.55 01.98 PageListSort pre ret=4 order=name
111: 02.55 01.98 MakePageList items count=6, filters=PageListTermsTargets
112: 02.56 01.99 MakePageList post count=6, readc=6
113: 02.56 01.99 PageListCache begin save key=3881cc183e179cba421676fc97b4f53a
114: 02.56 01.99 PageListCache end save
115: 02.56 01.99 PageListSort begin
116: 02.56 01.99 PageListSort sort
117: 02.56 01.99 PageListSort end
118: 02.56 01.99 MakePageList end
119: 02.56 01.99 MarkupToHTML begin
120: 02.58 02.01 MarkupToHTML end
121: 02.58 02.01 FPLTemplate end
122: 02.58 02.01 MarkupToHTML end
123: 02.58 02.01 MarkupToHTML begin
124: 02.59 02.02 MarkupToHTML end
125: 02.59 02.02 MarkupToHTML begin
126: 02.59 02.02 MarkupToHTML end
127: 02.66 02.09 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
128: 02.67 02.09 ReadApprovedUrls SiteAdmin.ApprovedUrls end
129: 02.70 02.12 MarkupToHTML end
130: 02.71 02.13 MarkupToHTML begin
131: 02.76 02.18 MarkupToHTML end
132: 02.76 02.18 MarkupToHTML begin
133: 02.77 02.19 MarkupToHTML end
134: 02.85 02.19 now