0

I am stuck because I'm not sure what is the best way to continue and guides are not so clear about that.

My Code JSbin

Each link displayed is an object obtained from FIXTURE and passed to template, as you can see I used dynamic segment. My purpose is to display, when clicked, an object's properties below the list.

enter image description here

I'm not sure what is the best way to do it, should I add an action to each link? I'm quite sure there suppose to be an easier way to when pressed a link to get the item and make it appear on screen with all properties but I cannot find the way to do it.

Should I insert another view below the existing view to pass properties to after I got the link or should I use a different template to display my item when I press the link? keep in mind that I want my list to stay visible, this suppose to be one web page application.

To sum it up:

  1. How to obtain the object's properties?

  2. How to display it on screen on top the opened one? as you can see in the attached image.

4

1 回答 1

0

最简单的方法是将一个插入outlet到您的sites模板中,您单击的模型数据将在其中呈现它的属性。然后为它创建一个模板,例如sites.site.

有关简单的工作示例,请参见此处

希望能帮助到你。

于 2013-07-28T15:54:00.073 回答