Closed (works as designed)
Project:
Domain
Version:
6.x-2.7
Component:
- Domain Content
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 14:37 UTC
Updated:
6 Aug 2011 at 18:11 UTC
When adding i18n to the mix of our DA sites, I noticed that the Affiliated content list uses db_rewrite_sql, which makes the lists not show all content. I'm not sure this is wanted. I would like (and thought it did) this page to behave the same as admin/content/node, which shows all nodes. Thoughts?
Comments
Comment #1
agentrickardThe problem with admin/content/node is that, well, it shows all nodes.
We don't want that. We want a domain-specific view of nodes, and we want to respect node access rules for editing, and db_rewrite_sql() gives us that.
What part of i18n is breaking down here?
Comment #2
blackdog commentedWell, I would argue that our content list should behave just like the core one, except just showing the domain related nodes, which will happen since that's taken care of before db_rewrite_sql.
The problem is that an an editor should be given the choice, like core dies it, of which language to show, not be forced to switch the sites language to show nodes of that language.
Comment #3
agentrickardI don't understand this statement:
Note that I don't run multilanguage sites and may not be aware of something you find obvious. Please explain.
Screenshots are often helpful.
Comment #4
blackdog commentedWhen using i18n, depending on your settings, content might or might not be available for all languages, i.e. when coming to example.com/en you get english content, and swedish when coming to example.com/sv. For administrators though, this might not be the best way to find content, so the core content list shows all content, and adds a column for the nodes language, and a filter. With the domain content list, an administrator is forced to change the sites language to find content of all languages, which feels unintuitive. There's no way of getting ALL nodes for one domain in the same list.
Code:
Note the n.language='sv' in after.
That said, I now see that core (node_admin_nodes()) also uses db_rewrite_sql, but that the language arguments never gets in to the query, which puzzles me a little.
Comment #5
agentrickardDo you have per-domain language settings in Domain Conf, or are you just using core language negotiation?
Comment #6
blackdog commentedWe're using core and i18n settings, not per domain.
Comment #7
agentrickardI suspect we might just want to alter this in the domain_i18n package?
Comment #8
agentrickardTo do that, however, we have to expose the query to alteration in some manner, I suspect.
Comment #9
agentrickard