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.01 00.00 config end
2: 00.06 00.05 MarkupToHTML begin
3: 00.06 00.05 MarkupToHTML begin
4: 00.08 00.06 MarkupToHTML end
5: 00.08 00.06 MarkupToHTML begin
6: 00.08 00.07 MarkupToHTML end
7: 00.08 00.07 MarkupToHTML begin
8: 00.09 00.07 MarkupToHTML end
9: 00.09 00.08 MarkupToHTML begin
10: 00.09 00.08 MarkupToHTML end
11: 00.09 00.08 MarkupToHTML begin
12: 00.09 00.08 FPLTemplate: Chain begin
13: 00.09 00.08 FPLTemplate: FPLTemplateLoad
14: 00.09 00.08 FPLTemplate: FPLTemplateDefaults
15: 00.09 00.08 FPLTemplate: FPLTemplatePageList
16: 00.09 00.08 MakePageList pre
17: 00.11 00.08 PageListSources begin
18: 00.11 00.08 PageStore::ls begin wiki.d/{$FullName}
19: 00.14 00.10 PageStore::ls merge wiki.d/{$FullName}
20: 00.17 00.13 PageStore::ls end wiki.d/{$FullName}
21: 00.17 00.14 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
22: 00.18 00.14 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
23: 00.18 00.14 PageStore::ls end $FarmD/wikilib.d/{$FullName}
24: 00.18 00.14 PageListSources end count=1656
25: 00.18 00.15 PageListTermsTargets begin count=1656
26: 00.18 00.15 PageIndexGrep begin
27: 00.28 00.25 PageIndexGrep end
28: 00.46 00.42 PageListTermsTargets end count=1450
29: 00.46 00.42 PageListSort pre ret=4 order=name
30: 00.46 00.42 MakePageList items count=1450, filters=PageListTermsTargets
31: 04.68 04.41 MakePageList post count=1436, readc=1450
32: 04.68 04.41 PageListCache begin save key=a496ecc0e7b5445354468efd35b044e9
33: 04.69 04.41 PageListCache end save
34: 04.69 04.41 PageListSort begin
35: 04.69 04.41 PageListSort sort
36: 04.80 04.52 PageListSort end
37: 04.80 04.52 MakePageList end
38: 04.80 04.52 FPLTemplate: FPLTemplateSliceList
39: 04.80 04.52 FPLTemplate: FPLTemplateFormat
40: 04.84 04.56 MarkupToHTML begin
41: 04.86 04.58 MarkupToHTML end
42: 04.86 04.58 FPLTemplate: Chain end
43: 04.86 04.58 MarkupToHTML end
44: 04.86 04.59 MarkupToHTML begin
45: 04.86 04.59 FPLTemplate: Chain begin
46: 04.86 04.59 FPLTemplate: FPLTemplateLoad
47: 04.87 04.59 FPLTemplate: FPLTemplateDefaults
48: 04.87 04.59 FPLTemplate: FPLTemplatePageList
49: 04.87 04.59 MakePageList pre
50: 04.87 04.59 PageListSources begin
51: 04.87 04.59 PageStore::ls begin wiki.d/{$FullName}
52: 04.90 04.61 PageStore::ls merge wiki.d/{$FullName}
53: 04.94 04.65 PageStore::ls end wiki.d/{$FullName}
54: 04.95 04.66 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
55: 04.95 04.66 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
56: 04.95 04.66 PageStore::ls end $FarmD/wikilib.d/{$FullName}
57: 04.96 04.66 PageListSources end count=1292
58: 04.96 04.66 PageListTermsTargets begin count=1292
59: 04.96 04.66 PageIndexGrep begin
60: 05.07 04.76 PageIndexGrep end
61: 05.28 04.98 PageListTermsTargets end count=1279
62: 05.28 04.98 PageListSort pre ret=6 order=-time
63: 05.28 04.98 MakePageList items count=1279, filters=PageListTermsTargets,PageListSort
64: 07.33 06.96 MakePageList post count=1278, readc=1279
65: 07.33 06.96 PageListCache begin save key=72e4baac09490eff0e70bbc2765a1902
66: 07.33 06.96 PageListCache end save
67: 07.33 06.96 PageListSort begin
68: 07.33 06.96 PageListSort sort
69: 07.38 07.01 PageListSort end
70: 07.38 07.01 MakePageList end
71: 07.39 07.02 FPLTemplate: FPLTemplateSliceList
72: 07.39 07.02 FPLTemplate: FPLTemplateFormat
73: 07.42 07.05 MarkupToHTML begin
74: 07.44 07.07 MarkupToHTML end
75: 07.44 07.07 FPLTemplate: Chain end
76: 07.44 07.07 MarkupToHTML end
77: 07.44 07.07 MarkupToHTML begin
78: 07.44 07.07 FPLTemplate: Chain begin
79: 07.44 07.07 FPLTemplate: FPLTemplateLoad
80: 07.44 07.07 FPLTemplate: FPLTemplateDefaults
81: 07.44 07.07 FPLTemplate: FPLTemplatePageList
82: 07.44 07.07 MakePageList pre
83: 07.45 07.07 PageListSources begin
84: 07.45 07.07 PageStore::ls begin wiki.d/{$FullName}
85: 07.48 07.09 PageStore::ls merge wiki.d/{$FullName}
86: 07.51 07.12 PageStore::ls end wiki.d/{$FullName}
87: 07.51 07.13 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
88: 07.51 07.13 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
89: 07.51 07.13 PageStore::ls end $FarmD/wikilib.d/{$FullName}
90: 07.51 07.13 PageListSources end count=6
91: 07.52 07.13 PageListTermsTargets begin count=6
92: 07.52 07.13 PageIndexGrep begin
93: 07.63 07.24 PageIndexGrep end
94: 07.65 07.25 PageListTermsTargets end count=6
95: 07.65 07.26 PageListSort pre ret=4 order=name
96: 07.65 07.26 MakePageList items count=6, filters=PageListTermsTargets
97: 07.66 07.26 MakePageList post count=6, readc=6
98: 07.66 07.26 PageListCache begin save key=01a6daa3e3a9cb65eb528c1bf1e3832f
99: 07.66 07.26 PageListCache end save
100: 07.66 07.26 PageListSort begin
101: 07.66 07.26 PageListSort sort
102: 07.66 07.27 PageListSort end
103: 07.66 07.27 MakePageList end
104: 07.66 07.27 FPLTemplate: FPLTemplateSliceList
105: 07.66 07.27 FPLTemplate: FPLTemplateFormat
106: 07.67 07.27 MarkupToHTML begin
107: 07.69 07.29 MarkupToHTML end
108: 07.69 07.29 FPLTemplate: Chain end
109: 07.69 07.30 MarkupToHTML end
110: 07.69 07.30 MarkupToHTML begin
111: 07.69 07.30 FPLTemplate: Chain begin
112: 07.69 07.30 FPLTemplate: FPLTemplateLoad
113: 07.70 07.30 FPLTemplate: FPLTemplateDefaults
114: 07.70 07.30 FPLTemplate: FPLTemplatePageList
115: 07.70 07.30 MakePageList pre
116: 07.70 07.30 PageListSources begin
117: 07.70 07.30 PageStore::ls begin wiki.d/{$FullName}
118: 07.72 07.32 PageStore::ls merge wiki.d/{$FullName}
119: 07.75 07.35 PageStore::ls end wiki.d/{$FullName}
120: 07.75 07.35 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
121: 07.76 07.35 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
122: 07.76 07.35 PageStore::ls end $FarmD/wikilib.d/{$FullName}
123: 07.76 07.35 PageListSources end count=6
124: 07.76 07.35 PageListTermsTargets begin count=6
125: 07.76 07.35 PageIndexGrep begin
126: 07.87 07.46 PageIndexGrep end
127: 07.89 07.48 PageListTermsTargets end count=6
128: 07.89 07.49 PageListSort pre ret=4 order=name
129: 07.89 07.49 MakePageList items count=6, filters=PageListTermsTargets
130: 07.90 07.49 MakePageList post count=6, readc=6
131: 07.90 07.49 PageListCache begin save key=3881cc183e179cba421676fc97b4f53a
132: 07.90 07.49 PageListCache end save
133: 07.90 07.49 PageListSort begin
134: 07.90 07.49 PageListSort sort
135: 07.90 07.49 PageListSort end
136: 07.90 07.49 MakePageList end
137: 07.90 07.49 FPLTemplate: FPLTemplateSliceList
138: 07.90 07.49 FPLTemplate: FPLTemplateFormat
139: 07.90 07.50 MarkupToHTML begin
140: 07.92 07.51 MarkupToHTML end
141: 07.92 07.51 FPLTemplate: Chain end
142: 07.92 07.52 MarkupToHTML end
143: 07.92 07.52 MarkupToHTML begin
144: 07.93 07.52 MarkupToHTML end
145: 07.93 07.52 MarkupToHTML begin
146: 07.93 07.53 MarkupToHTML end
147: 07.99 07.59 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
148: 08.00 07.60 ReadApprovedUrls SiteAdmin.ApprovedUrls end
149: 08.03 07.62 MarkupToHTML end
150: 08.04 07.64 MarkupToHTML begin
151: 08.08 07.68 MarkupToHTML end
152: 08.09 07.68 MarkupToHTML begin
153: 08.10 07.69 MarkupToHTML end
154: 08.10 07.70 now