Sitecore 的 url 参数
Sitecore URL 参数参考指南
一、显示模式相关参数
sc_mode:用于更改网站的显示模式,取值包括:
- normal:正常显示模式,即用户所见的网站样子
- edit:页面编辑器模式
- preview:预览模式
示例:
http://yoursitename.com?sc_mode=preview
二、语言相关参数
sc_lang:用于更改网站语言,取值可为 /sitecore/system/languages 下定义的任何值
示例:
http://yoursitename.com?sc_lang=fr-FR
三、项目相关参数
sc_itemid:用于更改当前项目
示例:
http://yoursitename.com?sc_itemid={12345678-1234-1234-1234-123456789ABC}
四、网站相关参数
sc_site:用于更改当前网站
示例:
http://yoursitename.com?sc_site=mywebsite
五、设备相关参数
sc_device:用于更改网站显示的设备,可使用设备名称或设备 ID
示例 1:
http://yoursitename.com?sc_device=mobile
示例 2:
http://yoursitename.com?sc_device={12345678-1234-1234-1234-123456789ABC}
六、数据库相关参数
sc_database:用于更改显示内容的数据库
示例:
http://yoursitename.com?sc_database=master
七、调试特定参数
sc_debug:用于启动 / 停止调试模式,取值为 0 和 1
示例:
http://yoursitename.com?sc_debug=1
sc_prof:用于启动 / 停止 Sitecore 分析器,取值为 0 和 1
示例:
http://yoursitename.com?sc_debug=1&sc_prof=1
sc_trace:用于启动 / 停止 Sitecore 跟踪,取值为 0 和 1
示例:
http://yoursitename.com?sc_debug=1&sc_trace=1
sc_ri:用于显示 / 隐藏渲染信息,取值为 0 和 1
示例:
http://yoursitename.com?sc_debug=1&sc_ri=1
默认调试器通常启用所有这三个功能,示例:
http://yoursitename.com?sc_debug=1&sc_prof=1&sc_trace=1&sc_ri=1
https://sitecorecorner.com/2014/08/27/useful-sitecore-query-string-parameters/
sc_mode – Used to change the display mode of the website. Can have the following values:
normal – normal display – the way the users see the site
edit – page editor mode
preview – preview mode
Example: http://yoursitename.com?sc_mode=preview
sc_lang – Used to change the website language. Can have any value that is defined under /sitecore/system/languages
Example: http://yoursitename.com?sc_lang=fr-FR
sc_itemid – Used to change the current item.
Example: http://yoursitename.com?sc_itemid={12345678-1234-1234-1234-123456789ABC}
sc_site – Used to change the current website.
Example: http://yoursitename.com?sc_site=mywebsite
sc_device – Used to change the device in which the website is displayed. Can be used with the device name or the device id.
Example: http://yoursitename.com?sc_device=mobile
Example: http://yoursitename.com?sc_device={12345678-1234-1234-1234-123456789ABC}
sc_database – Used to change the database from which the content is displayed.
Example: http://yoursitename.com?sc_database=master
And here are some of the debug specific query string parameters.
sc_debug – Used to start/stop the debug mode. Possible values are 0 and 1.
Example: http://yoursitename.com?sc_debug=1
sc_prof – Used to start/stop the Sitecore profiler. Possible values are 0 and 1.
Example: http://yoursitename.com?sc_debug=1&sc_prof=1
sc_trace – Used to start/stop the Sitecore trace. Possible values are 0 and 1.
Example: http://yoursitename.com?sc_debug=1&sc_trace=1
sc_ri – Used to show/hide the rendering information. Possible values are 0 and 1.
Example: http://yoursitename.com?sc_debug=1&sc_ri=1
The default debugger usually starts with all three enabled – http://yoursitename.com?sc_debug=1&sc_prof=1&sc_trace=1&sc_ri=1

浙公网安备 33010602011771号