Orchard CMS 1.6 placement.info Order not working

喜欢而已 提交于 2019-12-11 15:01:48

问题


I've just migrated a site to 1.6 - form 1.5, and I'm experiencing issues with the placement.info file in my theme,

I have the following placement

<Match DisplayType="Detail">
    <Place Parts_Title="/BeforeMain:1.5"/>
</Match>

I aslo have a Bred crumb menu widget placed in Before main with a placement setting of 5

No matter what I do to the numeric placement values, the Title always appears before the bread crumbs.

I'm also experiencing other issues with the theme placement.info file anybody else getting this. any ideas ?

This works in 1.5

Update - see comments

Update 2

<Match ContentType="AlternateIndexPage">
    <Place Parts_Introduction="/BeforeMain:4"/>
    <Place Parts_Title="/BeforeMain:3"/>
    <Place Fields_Input__AltenateIndexPage_VideoUrl="/BeforeMain:2"/>
<Math>

No matter what numbers / order I include in the palcement.info file the Video always apear first the title second and the intro third. If I use '-' the item disappear so I know the placement file is working - a bit


回答1:


Widget position and placement are not the same thing unfortunately. I'm suspecting that if this worked in 1.5 it was a coincidence. Please file a bug so that this can be made to work in a future version.

A (not ideal) workaround would be to split that zone in two and send the widget to one, and the title to the other.



来源:https://stackoverflow.com/questions/13861330/orchard-cms-1-6-placement-info-order-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!