为什么<a> tags disappear in sitefinity list items?

时间:2015-05-26 18:37:30

标签: sitefinity sitefinity-5

In sitefinity, I created a list. In that list, I created 6 items, each with an tag. This is the a tag that was generated:

<a href="/home" sfref="[f669d9a7-009d-4d83-ddaa-000000000002]0ca3c443-9c91-6473-a96c-ff00000b9007">Home</a>

I then go to my page, and drag and drop a list into a widget slot. Then I choose my test list in the settings, and I get no links.

I open the website, and when looking in the browser inspector, there is definitely no link. All that comes up for the above example is "Home" in the li tag.

Am I doing something wrong?

2 个答案:

答案 0 :(得分:1)

当您删除sfref属性然后它将正常工作

时,它将起作用

您的代码

<a href="/home" sfref="[f669d9a7-009d-4d83-ddaa-000000000002]0ca3c443-9c91-6473-a96c-ff00000b9007">Home</a>

替换为

<a href="/home">Home</a>

答案 1 :(得分:0)

我找到了答案。

将列表小部件拖放到页面中时,在列表设置中有不同列表的选项。我使用的是一个简单的列表,但我应该使用页面列表。