From b424e3a34a3aaf546cafae40ce999ee0459adda9 Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Mon, 24 Jan 2011 14:52:23 +0000 Subject: --- .../Possible_to_use_meta_variables_in_templates__63__.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn (limited to 'doc/forum') diff --git a/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn b/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn new file mode 100644 index 000000000..893911630 --- /dev/null +++ b/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn @@ -0,0 +1,11 @@ +I'm trying to create a [!iki plugins/template desc=template]] which references variables from the [!iki plugins/meta desc=meta plugin]], but either it's not supported or I'm doing something wrong. This is what my template looks like: + +
+

Written by:

+

+
+ +The template is working because I get the content, but all the places where I reference meta variables are blank. Is this supposed to work or am I trying to do something unsupported? Many thanks for any pointers. + +Cheers, +[[AdamShand]] -- cgit v1.2.3 From 52d27e408304b4347e0ffc894a97c171522552a0 Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Mon, 24 Jan 2011 14:54:24 +0000 Subject: oops, typo. --- doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/forum') diff --git a/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn b/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn index 893911630..3c214d457 100644 --- a/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn +++ b/doc/forum/Possible_to_use_meta_variables_in_templates__63__.mdwn @@ -1,4 +1,4 @@ -I'm trying to create a [!iki plugins/template desc=template]] which references variables from the [!iki plugins/meta desc=meta plugin]], but either it's not supported or I'm doing something wrong. This is what my template looks like: +I'm trying to create a [[!iki plugins/template desc=template]] which references variables from the [[!iki plugins/meta desc=meta]] plugin, but either it's not supported or I'm doing something wrong. This is what my template looks like:

Written by:

-- cgit v1.2.3 From 964745ecf86bc307e243fda097024c3c2b60d73a Mon Sep 17 00:00:00 2001 From: "http://smcv.pseudorandom.co.uk/" Date: Mon, 24 Jan 2011 15:17:59 +0000 Subject: Added a comment: not supported at the moment --- ...mment_1_556078a24041289d8f0b7ee756664690._comment | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_1_556078a24041289d8f0b7ee756664690._comment (limited to 'doc/forum') diff --git a/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_1_556078a24041289d8f0b7ee756664690._comment b/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_1_556078a24041289d8f0b7ee756664690._comment new file mode 100644 index 000000000..3aeeec793 --- /dev/null +++ b/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_1_556078a24041289d8f0b7ee756664690._comment @@ -0,0 +1,20 @@ +[[!comment format=mdwn + username="http://smcv.pseudorandom.co.uk/" + nickname="smcv" + subject="not supported at the moment" + date="2011-01-24T15:17:59Z" + content=""" +This isn't supported, because [[ikiwiki/directive/template]] templates +don't run `pagetemplate` hooks (which is how information gets from +[[ikiwiki/directive/meta]] into, for instance, `page.tmpl`). The only +inputs to the `HTML::Template` are the parameters passed to the +directive, plus the `raw_`-prefixed versions of those, plus the extra +parameters passed to every `preprocess` hook (currently `page`, `destpage` +and `preview`). + +I think having `pagetemplate` hooks run for this sort of template +by default would be rather astonishing, but perhaps some sort of +opt-in while defining the template would be reasonable? One problem +with that is that the templates used by [[ikiwiki/directive/template]] +are just wiki pages, and don't really have any special syntax support. +"""]] -- cgit v1.2.3 From e18b73744010c8b03ba09e6cb9871968a6bd5f8b Mon Sep 17 00:00:00 2001 From: "http://adam.shand.net/" Date: Mon, 24 Jan 2011 15:26:33 +0000 Subject: Added a comment: Bummer. --- .../comment_2_e7e954218d39bc310015b95aa1a5212c._comment | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_2_e7e954218d39bc310015b95aa1a5212c._comment (limited to 'doc/forum') diff --git a/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_2_e7e954218d39bc310015b95aa1a5212c._comment b/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_2_e7e954218d39bc310015b95aa1a5212c._comment new file mode 100644 index 000000000..b53188128 --- /dev/null +++ b/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_2_e7e954218d39bc310015b95aa1a5212c._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="http://adam.shand.net/" + nickname="Adam" + subject="Bummer." + date="2011-01-24T15:26:33Z" + content=""" +Thanks for the quick response! I'm trying to figure out some way that I can reference meta variables inside of a page. Specifically I'm trying to create an attribution box which lists all of the information I have about who wrote the page, where the original can be found etc. I can just pass the values to the template, but it would be really nice not have to put this information in for the meta plugin and my attribution box! + +The changes you suggest sound wonderful but are beyond my abilities right row. Any ideas how I might accomplish this in the mean time? +"""]] -- cgit v1.2.3 From 295a08394f1f962459d26db06624ff5d17bc3008 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawlUsCEra2nuTI6c_MLhPpFjCgFviBdEYw0" Date: Mon, 24 Jan 2011 19:08:17 +0000 Subject: --- doc/forum/How_to_specify_repository_is_on_a_remote_host__63__.mdwn | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/forum/How_to_specify_repository_is_on_a_remote_host__63__.mdwn (limited to 'doc/forum') diff --git a/doc/forum/How_to_specify_repository_is_on_a_remote_host__63__.mdwn b/doc/forum/How_to_specify_repository_is_on_a_remote_host__63__.mdwn new file mode 100644 index 000000000..ad8f27252 --- /dev/null +++ b/doc/forum/How_to_specify_repository_is_on_a_remote_host__63__.mdwn @@ -0,0 +1,3 @@ +I'm new to ikiwiki and I'm trying to install it and set it up. I've read the documentation but I still don't understand how access to the repository works. We want ikiwiki to run on one machine but we want the repository to be on a separate machine running svn. How can I configure ikiwiki to access the repository on the remote machine? And how is authentication on the remote host handled in ikiwiki? Does there have to be a one-to-one correspondence between account names (and passwords) on the ikiwiki machine and the accounts on the svn machine? Thanks, + +Eric -- cgit v1.2.3