-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use Templates across Multiple Sites #30660
Comments
https://dotcms.freshdesk.com/a/tickets/28692 -> problem reported by another customer |
@patrick-schweiger I'm not clear where you're expecting to see the selection. Can you please give us clear steps to reproduce? Meaning:
|
I have confirmed this issue, steps to reproduce
|
I think we are going to need a quick UI mockup to fix this properly |
the issue is here: Basically there is a fallback when the hostid is null, blank or 404, the fallback in these situations will retrieve always the current host. Probably we can do two things:
For references the call may by the UI looks such as
|
@wezell @john-thomas-dotcms @jdotcms we use to have the selector options like this Which included the "All Sites" functionality. |
What is happening?We lost this feature/functionality in this PR: Issue 28563 - Removing template AJAX and JS dependencies (#28618). The relevant code where this functionality was implemented can be found here: TemplateAjax.java (Deleted). Class: TemplateAjax //...
Template t = new Template();
t.setOwner(user.getUserId());
t.setModUser(user.getUserId());
t.setInode("0");
t.setTitle("--- " + LanguageUtil.get(user, "All-Hosts") + " ---");
t.setIdentifier("0");
fullListTemplates.add(t);
totalTemplates.add(t);
countF = count - 1;
//... Possible Steps fix:
How the dropdown currently workWe now use the File: template_custom_field.vtl#L183-L195 //...
const templateFetchParams = {
query: {
fullTitle: '*'
},
queryOptions: {},
start: 0,
count: 1000,
sort: [],
onComplete: onTemplateFetchComplete
};
templateStore.fetch(templateFetchParams);
//... |
Parent Issue
No response
Problem Statement
This was discovered in a meeting with VOXX when trying to show them how to share templates across multiple sites. However, this would also impact other multi-tenant clients. Looking both at demo and Voxx’s instances (both on 24.11.11) we noticed we no longer have the “all sites” dropdown option when trying to select templates living on other sites.
Steps to Reproduce
For example, on demo we created a site “Pagecopycreatetest” and a “test” template
If we go to the “demo” host and try to create a page, we do not have an option to select “all sites” and are restricted to using only templates on my current site.
Acceptance Criteria
There should be the ability to drop down and select templates across sites.
dotCMS Version
The ability to select templates across sites exists in the 24.04 LTS so this must be a recent issue.
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.slack.com/archives/C028Z3R2D/p1731608383050379
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: