# Problems with Virtual Domain and r:find

**URL:** <https://www.ruby-forum.com/t/problems-with-virtual-domain-and-r-find/125459>\
**Category:** Radiant CMS\
**Created:** [January 9, 2008, 9:15am UTC](https://www.ruby-forum.com/t/problems-with-virtual-domain-and-r-find/125459 "2008-01-09T09:15:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [January 9, 2008, 9:15am UTC](https://www.ruby-forum.com/t/problems-with-virtual-domain-and-r-find/125459/1 "2008-01-09T09:15:33Z")

</div>

I have been using the Virtual Domain extension for several websites  
lately. Radiant is big and uses lot’s of resources, so it is nice to  
host several small related sites on one installation…

But now I have a problem: \<r:find\> is not working, at least for sites  
that are not part of the “main” domain. It is very weird. Prior to  
0.6.4 and the updated Virtual Domain, this all worked fine. Has anyone  
else seen this. It doens’t return an error, just nothing…

Keith

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [January 9, 2008, 9:40am UTC](https://www.ruby-forum.com/t/problems-with-virtual-domain-and-r-find/125459/2 "2008-01-09T09:40:48Z")

</div>

Keith B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> I have been using the Virtual Domain extension for several websites  
> lately. Radiant is big and uses lot’s of resources, so it is nice to  
> host several small related sites on one installation…
> 
> But now I have a problem: \<r:find\> is not working, at least for sites  
> that are not part of the “main” domain. It is very weird. Prior to  
> 0.6.4 and the updated Virtual Domain, this all worked fine. Has anyone  
> else seen this. It doens’t return an error, just nothing…

I’ve seen it. And I’ve sent a patch off to Todd W. that fixes it  
and adds support for referencing pages from other domains. That is,  
with the virtual domain extension the root url ‘/’ references the  
virtual domain, so there’s no way to include a page from a different  
domain but same Radiant instance. I changed that to allow urls like:

\<r:find url=“[www.example.com](http://www.example.com):/terms\_of\_use”/\>

Thanks for sending this message though, because I needed to follow-up  
with Todd and send him another file.

–  
J Aaron F. [jadetower.com](http://jadetower.com) [US] +1 724-964-4515  
é¦®å‚‘ä» [cubiclemuses.com](http://cubiclemuses.com) [HK] +852 8123-7905

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [January 10, 2008, 12:36am UTC](https://www.ruby-forum.com/t/problems-with-virtual-domain-and-r-find/125459/3 "2008-01-10T00:36:03Z")

</div>

On Jan 9, 2008 3:39 AM, J Aaron F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > else seen this. It doens’t return an error, just nothing…  
> > with Todd and send him another file.  
> > Its all in now. You can grab trunk or the new rel\_1-2-3 tag.

-todd[1]

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [January 10, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/problems-with-virtual-domain-and-r-find/125459/4 "2008-01-10T15:06:24Z")

</div>

This works very nicely. Thanks. And it is a nice added bonus to be  
able to access pages from other websites within one Radiant  
installion. Nice work, both of you.

Keith
