我有一个英语和阿拉伯语的网站(使用变体)。我想使用列表显示主页上的新闻。什么是最好的方法?

  • 我应该用英语和阿拉伯语列创建一个单一列表,如下所示?

    英语新闻标题
    阿拉伯新闻标题
    英语新闻DESC
    阿拉伯新闻代表

    并根据当前语言显示相应的新闻。

    • 我要创建两个列表,一个用于英语,一个用于阿拉伯语吗?我已经听说过,当您使用变体时,如果在主站点中创建列表,则在变体站点中的该服务也会创建类似的列表。这是真的?这意味着我们不需要使用单个列表但两个单独的列表?
有帮助吗?

解决方案

It depends on how the content will be accessed, shared and distributed across different sites and site collections. I think you need to view multilingual support in a broader context before your question can be answered:

When you plan for multilingual sites, consider whether you have to create content that will be shared across sites, but must be changed to meet regional requirements or translated to meet language requirements. If you think there is a possibility that you might have to set up variations sites, you should plan for them beforehand. It is very difficult to integrate variations sites into a site collection after the site structure is implemented. The following factors can affect your ability to easily move to using variations sites later in the life of your site:

  • Custom code Code that contains references to the location of the root variations site.
  • Site customizations Site navigation, Master Pages, and other customizations.
  • Search Search scopes must be created for each variation label, and the site properties of each variations site must be changed.

Reference: Plan for multilingual sites in SharePoint 2013

Edit

But if you're only going to use different news languages, I suuggest you stick to variation sites. It has a benefit that the source (assuming English) of the variation will create the mirrored structure and content on the target variation site (assuming Arabic).

By default, any new pages that are published in the Pages library of the source variation site will automatically be created on all target variation sites. However, if Create Selectively is enabled, for each new page that you create on the source variation site, you must manually specify the target variation site on which the page should be created. The Create Selectively option can be useful if you want certain pages to be included only on some, but not all, target variation sites.

Lists can be created automatically on target variation sites only if they are created on the source variation site before the variation hierarchy is created. If a list is created after the variations hierarchy is set up, a list must be created manually on the target variation sites by using the Settings button on the Variations tab on the ribbon for the list on the source variation site. However, new list items can be created automatically on a target variation site.

By default, the Create Everywhere option is enabled. You should carefully consider the potential increase in administrative tasks if you decide to enable the Create Selectively option. You can configure the settings for site, list, and page creation behavior on the Variations Settings page in Site Collection Administration.

Reference: Plan for variations in SharePoint Server 2013

Conclusion

You will not use the same list, and not even the same site. Best Practice is to implement a variation site, where the variation list and the variation news pages resides. This way it's easier to administer, than to manually update single pages.

许可以下: CC-BY-SA归因
scroll top