- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to individually edit items coming from list
Hi,
I made a query and in my output channel I iterate through the list so I could display my items on the page. However, I want editors to be able to edit any item they wish to edit, but the problem is that I cant achieve that because my form is always populating the wrong data even is I do the following, put my editin tags inside my for loop:
$CMS_FOR(list, functionList)$
$CMS_RENDER(template:"WEBeditInplaceEditBegin")$
output my values
$CMS_RENDER(template:"WEBeditInplaceEditEnd")$
$END_FOR$
You response will be appreciated
Thanks.
- Labels:
-
Developers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
you have to provide the correct database schema, the table and the id of the data in the CMS_RENDER tag.
For example:
ContentSelection:
<CMS_FUNCTION name="contentSelect" resultname="cs_press_releases">
<CMS_PARAM name="schema" value="Products" />
<QUERY entityType="Press_Releases">
<ORDERCRITERIA attribute="Date" descending="1" />
</QUERY>
</CMS_FUNCTION>
$CMS_FOR(press_release, cs_press_releases)$
$CMS_RENDER(template:"WEBeditInplaceEditBegin", content:"Products.press_releases", index:press_release.getId())$
...
$CMS_RENDER(template:"WEBeditInplaceEditEnd")$
$CMS_END_FOR$

