I have quite some difficulties with the theme which is not kept. Let me try to explain:
I use in Domain b with theme b a view which uses a display view b to display the content.
I use in domain c with theme c a different view with a different display view (c) to display the same type of content.
When working in theme b and clear the cache it is working perfectly. However when displaying the same type of content in domain c the display view is gone and does not theme the page correctly. Clearing the cache solves the problem. When now going back to domain b and refresh the page of the content the page is not displayed correctly (no ds-layout theming is done anymore) as if the tpl and inc files are not recognized anymore. Clearing all caches here solves again the problem but when then going back to domain c the layout is gone again.
I tried every kind of solution to login as a different user on a different computer but no joy it is the same problem. I am not having any cache activated (still in development). So it is not a caching problem on the pc
It looks like it is keeping somehow the layout of the theme for that content. This might be a problem in DS since I only have this problem with DS views.
Please help this is a real showstopper for me and am close to delivering the sites.
am sorry for my English
Comments
Comment #1
erald commentedHad an idea what worked.
Created a directory ds_layouts at a central place (in my case in the themes directory). Moved all ds layouts (from all themes) to that directory and created in the themes directory a symbolic ink ds_layouts to the created directory and now everything is working as expected.
So my structure is now
/themes/ds_layouts/... (all layout directories)
/themes/theme_a/ds_layouts (which is a symbolic link to /themes/ds_layouts)
/themes/theme_b/ds_layouts (which is a symbolic link to /themes/ds_layouts)
The only disadvantage is that in the manage displays all layouts are visible, but that is something I can live with. Just have to get the naming correct so you know which belongs to which theme.
Somehow DS is just looking to the incorrect directory to find the layout if another domain is using different layout for the same content. It seems to cache the theme for the content somehow since clearing the cache solves the problem.
This work around is manageable.
Comment #2
agentrickardThis is a DS issue and a duplicate.
Comment #3
Taxoman commentedRef. #1719578: DS ignores hook_custom_theme()