如何区分变化源和变化目标 [英] How to separate Variation source and Variation target

查看:77
本文介绍了如何区分变化源和变化目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要将变体来源和变体目标分开的要求.

我的问题是,哪种属性可以帮助我们将变体来源和变体目标分开?

我尝试了属性PublishingPage.VariationPageUrls,但是反过来又保留了值,例如source保留了目标值,而target保留了源值和其他变体.

为了举例说明,我们有以下页面sacnorao-

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx                                 nbsp;

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx           ;    en-GB的版本目标

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx        &b ;              FI的变化目标

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                     ;                      RU的变化目标

http://test.abc.com/en/News/xyz/Pages/TestTargetSource.aspx的PublishingPage.VariationPageUrls给我们-

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx           ;   

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx        &b ;              nbsp; b ;     

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                 ;                     

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx的PublishingPage.VariationPageUrls提供给我们-

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx                     ;        

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx                       nbsp; bsp            

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                     ;                     

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx         nbsp; ; 给我们-

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx                     ;        

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx           ;   

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                     ;                     

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx的PublishingPage.VariationPageUrls给我们-

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx                     ;        

http://test.abc.com/zh-CN/News/xyz/Pages/TestTargetSource.aspx               

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx        &b ;              nbsp; b ;     

但是通过这种方式,我们无法识别变化源和变化目标.您是否看到任何其他可能性或任何其他财产?

BR,

Prasad Pathak

解决方案

Hi Prasad,

请使用VariationLabel . IsSource属性检查版本标签是否为源.

https://msdn.microsoft.com/en-us /library/microsoft.sharepoint.publishing.variationlabel.issource.aspx

或者我们可以使用REST API来实现它.

 http://sp2013/sites/team/_api/web/lists/getByTitle('Variation%20Labels')/items?


select = Title, Is_x0020_Source

最好的问候,

丹尼斯


Hi,

I have a requirement where I need to separate Variation source and Variation target.

My question is which property will help us top separate Variation source and Variation target?

I tried the property PublishingPage.VariationPageUrls, but is holding the values vice a versa, like source hold the target value and target holds the source value+other variations.

To explain with example , we have following pages sacnorao -

http://test.abc.com/en/News/xyz/Pages/TestTargetSource.aspx                         Variation Source in en          

http://test.abc.com/en-GB/News/xyz/Pages/TestTargetSource.aspx                  Variation Target for en-GB

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx                             Variation Target for FI

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                          Variation Target for RU

PublishingPage.VariationPageUrls for http://test.abc.com/en/News/xyz/Pages/TestTargetSource.aspx gives us -

http://test.abc.com/en-GB/News/xyz/Pages/TestTargetSource.aspx                 

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx                                             

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                         

PublishingPage.VariationPageUrls for http://test.abc.com/en-GB/News/xyz/Pages/TestTargetSource.aspx gives us -

http://test.abc.com/en/News/xyz/Pages/TestTargetSource.aspx                        

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx                                              

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                         

PublishingPage.VariationPageUrls for http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx              gives us -

http://test.abc.com/en/News/xyz/Pages/TestTargetSource.aspx                        

http://test.abc.com/en-GB/News/xyz/Pages/TestTargetSource.aspx                 

http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx                         

PublishingPage.VariationPageUrls for http://test.abc.com/ru/News/xyz/Pages/TestTargetSource.aspx gives us -

http://test.abc.com/en/News/xyz/Pages/TestTargetSource.aspx                        

http://test.abc.com/en-GB/News/xyz/Pages/TestTargetSource.aspx                  

http://test.abc.com/fi/News/xyz/Sivut/TestTargetSource.aspx                                             

But this way we cannot identify the Variation Source and Variation Target. Do you see any other possibility or any other property?

BR,

Prasad Pathak

解决方案

Hi Prasad,

Please use VariationLabel.IsSource property to check if the variation label is the source.

https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.variationlabel.issource.aspx

Or we can use REST API to achieve it.

http://sp2013/sites/team/_api/web/lists/getByTitle('Variation%20Labels')/items?


select=Title,Is_x0020_Source

Best Regards,

Dennis


这篇关于如何区分变化源和变化目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆