How to use custom field with "Include page"

Hi all,
I have been trying to use a custom field to link to an external wiki (our DokuWiki pages).

From the description on the custom field creation page, I gather that I can “include content” from another web service, but I have been unable to.

I created a new custom field called DokuWiki of type “Enter one value”, selected “applies to articles”, and entered "http://dokuwiki.fake.it/doku.php?id=__CustomField__"http://dokuwiki.fake.it/doku.php?id=__CustomField__ in the “Include page” field.

Then I created a sample article and entered “start” in the new custom field. When I look at the article I only see “start” next to the “DokuWiki” field and nothing else. I would have expected to see the content of the actual page at http://dokuwiki.fake.it/doku.php?id=start.

If I look at the html source of the RT page, it seems it is actually trying to include content, but I see nothing. Here is an excerpt from the html source:

DokuWiki: start
See also:http://dokuwiki.fake.it/doku.php?id=start

Any suggestions?

Bye
Cris

Cristiano Guadagnino
Servizio Data Administration
Bankadati S.I.
Gruppo Credito Valtellinese
Tel. +39-0342-522172

I created a new custom field called DokuWiki of type “Enter one value”, selected “applies to
articles”, and entered [1]“http://dokuwiki.fake.it/doku.php?id=__CustomField__” in the
“Include page” field.

Then I created a sample article and entered “start” in the new custom field. When I look at
the article I only see “start” next to the “DokuWiki” field and nothing else. I would have
expected to see the content of the actual page at
[2]http://dokuwiki.fake.it/doku.php?id=start.

From the explanatory text in the Include page option:
“Some browsers may only load content from the same domain as your RT server”

This is a security measure - I’d guess that your browser is stopping
the javascript you quote from running.

-kevin

Kevin,
thank you for your reply.

The fact is that the DokuWiki page ARE on the same domain as the RT pages.

Actually, they are two virtual domains on the same apache server:

rtbkd.fake.it
dokuwiki.fake.it

(obviously fake.it is NOT the real domain)

Bye
Cris

----------------- Messaggio originale -----------------
Da: Kevin Falcone falcone@bestpractical.commailto:falcone@bestpractical.com
Inviato: Fri Apr 26 2013 18:31:32 GMT+0200 (CEST)
A: rt-users@lists.bestpractical.commailto:rt-users@lists.bestpractical.com
Oggetto: Re: [rt-users] How to use custom field with “Include page”

I created a new custom field called DokuWiki of type “Enter one value”, selected “applies to
articles”, and entered [1]"http://dokuwiki.fake.it/doku.php?id=__CustomField__"http://dokuwiki.fake.it/doku.php?id=__CustomField__ in the
“Include page” field.

Then I created a sample article and entered “start” in the new custom field. When I look at
the article I only see “start” next to the “DokuWiki” field and nothing else. I would have
expected to see the content of the actual page at
[2]http://dokuwiki.fake.it/doku.php?id=start.

From the explanatory text in the Include page option:
“Some browsers may only load content from the same domain as your RT server”

This is a security measure - I’d guess that your browser is stopping
the javascript you quote from running.

-kevin

If I look at the html source of the RT page, it seems it is actually trying to include
content, but I see nothing. Here is an excerpt from the html source:

DokuWiki: start
See also:[4]http://dokuwiki.fake.it/doku.php?id=start

Cristiano Guadagnino
Servizio Data Administration
Bankadati S.I.
Gruppo Credito Valtellinese
Tel. +39-0342-522172

Kevin,
thank you for your reply.

The fact is that the DokuWiki page ARE on the same domain as the RT pages.

Actually, they are two virtual domains on the same apache server:

rtbkd.fake.it
dokuwiki.fake.it

While those share a common domain component, they are not the same
domain. Same domain means exactly the same.

You will need to setup CORS [1] on the docuwiki domain so that your
browser knows it is safe to let rtbkd make the cross-domain request.

[1] Cross-origin resource sharing: