Page Link from other hosts

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Page Link from other hosts

aDNers
Hello,

I have this scenario:

3 hosts:
resources
site1.domain.com
site2.domain.co.uk

Site1 and Site2 share the same Content Type. When adding a Detail Page to the Content Type I would like to choose a Page which exists on //resources. 

I am able to browse to all available hosts and pick a detail page - but the path used seems to be saved as a local path - not the full path to the chosen host. Instead of getting the expected path: //resources/pages/my-detail I only get /pages/my-detail (which I see when clicking the info-button next to the browse-button on the properties of a content type.) Now I have to choose a detail page which path exists on both Site1 and Site2 (the pages however, shares the same vtl from //resources).

(Please let me know If I should clarify more, not sure I managed to explain my problem in an understandable way...)

BR
Anders

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6127b7c0-0f4e-4843-8732-a57751ff6121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Page Link from other hosts

Chris Falzone-2
Yeah, you need to have the Page Content exist on both hosts, it can't use a shared host for the detail page.  It will work if the pages are in the same path though, but the page has to exist on both hosts.  The page can parse a VTL from the shared host so you don't have to replicate the code.  

On Tue, Jan 9, 2018 at 10:52 AM aDNers <[hidden email]> wrote:
Hello,

I have this scenario:

3 hosts:
resources

Site1 and Site2 share the same Content Type. When adding a Detail Page to the Content Type I would like to choose a Page which exists on //resources. 

I am able to browse to all available hosts and pick a detail page - but the path used seems to be saved as a local path - not the full path to the chosen host. Instead of getting the expected path: //resources/pages/my-detail I only get /pages/my-detail (which I see when clicking the info-button next to the browse-button on the properties of a content type.) Now I have to choose a detail page which path exists on both Site1 and Site2 (the pages however, shares the same vtl from //resources).

(Please let me know If I should clarify more, not sure I managed to explain my problem in an understandable way...)

BR
Anders

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6127b7c0-0f4e-4843-8732-a57751ff6121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgV3hAmUhWkG9U8b9LpKN%2BhFjz3JoBmb883JWh%2BL%2BpQYHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Page Link from other hosts

aDNers
Chris, 

alright, thanks for the answer. 

Our site currently exists in 7 different country versions/languages (one language per host) and they all share the same content types and pages (although the content may be unique per host). So for this specific usecase it would have been neat to have all shared building stones in one place (including pages) - but as you suggest, having the pages on all hosts does the trick.

BR
Anders


2018-01-09 21:36 GMT+01:00 'Chris Falzone' via dotCMS User Group <[hidden email]>:
Yeah, you need to have the Page Content exist on both hosts, it can't use a shared host for the detail page.  It will work if the pages are in the same path though, but the page has to exist on both hosts.  The page can parse a VTL from the shared host so you don't have to replicate the code.  

On Tue, Jan 9, 2018 at 10:52 AM aDNers <[hidden email]> wrote:
Hello,

I have this scenario:

3 hosts:
resources

Site1 and Site2 share the same Content Type. When adding a Detail Page to the Content Type I would like to choose a Page which exists on //resources. 

I am able to browse to all available hosts and pick a detail page - but the path used seems to be saved as a local path - not the full path to the chosen host. Instead of getting the expected path: //resources/pages/my-detail I only get /pages/my-detail (which I see when clicking the info-button next to the browse-button on the properties of a content type.) Now I have to choose a detail page which path exists on both Site1 and Site2 (the pages however, shares the same vtl from //resources).

(Please let me know If I should clarify more, not sure I managed to explain my problem in an understandable way...)

BR
Anders

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/6127b7c0-0f4e-4843-8732-a57751ff6121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to a topic in the Google Groups "dotCMS User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dotcms/-TzAVllko10/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAMAbHgV3hAmUhWkG9U8b9LpKN%2BhFjz3JoBmb883JWh%2BL%2BpQYHg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--

Anders Linder
Technical Operations Manager
[hidden email] | 070‑7586008
Smartson AB Industrig. 4A, 11246 Stockholm
Web: smartson.se | Kontor: 08‑54520160

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAEDStMW1Ez-j89BSkgU6m_Nt9HpJYHYVpmzf8_8OveXur33y%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Page Link from other hosts

John Michael Thomas
In reply to this post by aDNers
As Chris said, the most straight-forward way to do this is:

  1. Create a separate detail page on each site.
    • Make sure they all have the same file name and the same path.
  2. Create a VTL file with the shared code on the shared host.
  3. Include the shared VTL on each of the detail pages.

In your case, this sounds like it might work well, since the detail page on each site can use the appropriate template (and thus appropriately translated header, footer, navigation, etc.) for the site it's on.  If you want all of the detail pages to look exactly the same (with same text in header, footer, and other page elements) on different sites, then you have to do some additional work to create a template that looks the same on each site.


On Tuesday, January 9, 2018 at 7:52:04 AM UTC-8, aDNers wrote:
Hello,

I have this scenario:

3 hosts:
resources
<a href="http://site1.domain.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsite1.domain.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEnB3mgLeJ_bymZYCQAcppUQd9esA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsite1.domain.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEnB3mgLeJ_bymZYCQAcppUQd9esA&#39;;return true;">site1.domain.com
<a href="http://site2.domain.co.uk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsite2.domain.co.uk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF6WS4jlTaUBteuyTSor4hd-27cXg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsite2.domain.co.uk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF6WS4jlTaUBteuyTSor4hd-27cXg&#39;;return true;">site2.domain.co.uk

Site1 and Site2 share the same Content Type. When adding a Detail Page to the Content Type I would like to choose a Page which exists on //resources. 

I am able to browse to all available hosts and pick a detail page - but the path used seems to be saved as a local path - not the full path to the chosen host. Instead of getting the expected path: //resources/pages/my-detail I only get /pages/my-detail (which I see when clicking the info-button next to the browse-button on the properties of a content type.) Now I have to choose a detail page which path exists on both Site1 and Site2 (the pages however, shares the same vtl from //resources).

(Please let me know If I should clarify more, not sure I managed to explain my problem in an understandable way...)

BR
Anders

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/7bd82130-d569-47a3-bff1-94f876cf3809%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Page Link from other hosts

aDNers
Thanks John,

I have implemented your suggested approach, and it works for our usecase.

BR
Anders

2018-01-10 16:13 GMT+01:00 John Michael Thomas <[hidden email]>:
As Chris said, the most straight-forward way to do this is:

  1. Create a separate detail page on each site.
    • Make sure they all have the same file name and the same path.
  2. Create a VTL file with the shared code on the shared host.
  3. Include the shared VTL on each of the detail pages.

In your case, this sounds like it might work well, since the detail page on each site can use the appropriate template (and thus appropriately translated header, footer, navigation, etc.) for the site it's on.  If you want all of the detail pages to look exactly the same (with same text in header, footer, and other page elements) on different sites, then you have to do some additional work to create a template that looks the same on each site.


On Tuesday, January 9, 2018 at 7:52:04 AM UTC-8, aDNers wrote:
Hello,

I have this scenario:

3 hosts:
resources

Site1 and Site2 share the same Content Type. When adding a Detail Page to the Content Type I would like to choose a Page which exists on //resources. 

I am able to browse to all available hosts and pick a detail page - but the path used seems to be saved as a local path - not the full path to the chosen host. Instead of getting the expected path: //resources/pages/my-detail I only get /pages/my-detail (which I see when clicking the info-button next to the browse-button on the properties of a content type.) Now I have to choose a detail page which path exists on both Site1 and Site2 (the pages however, shares the same vtl from //resources).

(Please let me know If I should clarify more, not sure I managed to explain my problem in an understandable way...)

BR
Anders

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to a topic in the Google Groups "dotCMS User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dotcms/-TzAVllko10/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/7bd82130-d569-47a3-bff1-94f876cf3809%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Anders Linder
Technical Operations Manager
[hidden email] | 070‑7586008
Smartson AB Industrig. 4A, 11246 Stockholm
Web: smartson.se | Kontor: 08‑54520160

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAEDStMVvy9mN0ykJ5aQd4L%3DKzqmoCXBEMg6V0Ru7M5rGxT6qXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.