]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/field__95__tags_not_linking.mdwn
(no commit message)
[ikiwiki.git] / doc / forum / field__95__tags_not_linking.mdwn
1 Hey There.
2
3 I'm using the [[plugins/contrib/field]] plugin together with [[plugins/contrib/ftemplate/ikiwiki/directive/ftemplate]] and [[plugins/contrib/ymlfront]]. Everything looks good, but there are no links created as defined in field_tags. I hope it's just a mistake by me and someone can help me. 
4
5 All three plugins are activated and ikiwiki's setup file reads
6
7                 # field plugin
8                 # simple registration
9                 field_register => [qw{meta}],
10
11                 # allow the config to be queried as a field
12                 field_allow_config => 1,
13
14                 # flag certain fields as "tags"
15                 field_tags => {
16                 Autor => '/users',
17                 Rubrik => '/rubriken',
18                 Themen => '/themen',
19                 BuchTitel => 'rezensionen/titel',
20                 BuchAutor => '/rezensionen/autoren',
21                 Verlag => 'rezensionen/verlage',
22                 },
23
24 I use this template to ask the users for the fields:
25
26                 ---
27                 Autor: 
28                 BuchTitel: 
29                 BuchUntertitel: 
30                 BuchAutor:
31                 Verlag: 
32                 ISBN: 
33                 Seiten: 
34                 Preis: 
35                 Rubrik: Rezensionen
36                 Themen: 
37                   - (Anti-)Repression
38                   - Aktion
39                   - ...
40                 ---
41                 [[!ftemplate id="rezi"]]
42
43 And this one tells what to do with them:
44
45                 \[[!meta author="<TMPL_VAR AUTOR>"]]
46                 \[[!meta title="<TMPL_VAR BUCHAUTOR>: <TMPL_VAR BUCHTITEL>"]]
47
48                 <span class="infobox">
49                 <TMPL_VAR BUCHAUTOR>:</br>
50                 **<TMPL_VAR BUCHTITEL>**</br>
51                 -<TMPL_IF BUCHUNTERTITEL><TMPL_VAR BUCHUNTERTITEL></TMPL_IF></br>
52                 *rezensiert von <TMPL_VAR AUTOR>*</br></br>
53                 * Verlag: <TMPL_VAR VERLAG></br>
54                 * ISBN: <TMPL_VAR ISBN></br>
55                 * Seiten: <TMPL_VAR SEITEN></br>
56                 * Preis: <TMPL_VAR PREIS></br></br>
57                 Rubrik: <TMPL_VAR RUBRIK></br>
58                 Themen:
59                 <TMPL_LOOP THEMEN_LOOP><TMPL_VAR THEMEN>
60                 <TMPL_UNLESS __last__>, </TMPL_UNLESS>
61                 </TMPL_LOOP>
62                 </span>
63
64                 <TMPL_VAR RUBRIK>               # just for testing if infobox is the problem
65
66 Do I have to register another plugin with field or what is wrong here?