3

I've created a bunch of simple entries for a channel, and I'd like guest users to be able to edit the entries. The entries are all on the index page, since this is a one-page site. No matter what I try, my Channel Form will not update the entries. This is basically straight from the docs, but submitting the form doesn't change any of the fields. Here's my code:

{exp:channel:entries
 channel="products"
 disable="categories|member_data|pagination|trackbacks"
 dynamic="no"
}

<img src="{product_image}" class="pure-img">
    {exp:channel:form channel="products" return="product/index" url_title="{url_title}"}
 <input name="title" type="text" value="{title}">
 {field:product_description}
 <input type="submit" value="Submit">
{/exp:channel:form}

        {/exp:channel:entries}

Thanks for any help!

2
0

Take the exp:channel:entries tags away....

4
  • Hi Nutmeg, what do you mean take the exp:channel:entries tags away? Does something else go there or is it blank? Please clarify.
    – forrest
    Sep 2 '14 at 14:58
  • Hi fmz, remove the channel entries tag and only use the channel form tags and write bac with any results....
    – Nutmeg
    Sep 2 '14 at 19:07
  • I have done that on mine, but it doesn't save the changes. Please see: expressionengine.stackexchange.com/questions/25460/…
    – forrest
    Sep 2 '14 at 19:27
  • Ok, fmz it's a bit of a stab in the dark as I don't know your custom fields and other template segments, but working with Channel Forms often has Javascript/Jquery issues due too other add ons which rely on this. Try switching off certain decencies by adding include_assets="no" within your Channel Form Tags. If this doesn't resolve the issue you will need to provide more details....
    – Nutmeg
    Sep 3 '14 at 8:13
0

change the url_title on the channel form tag

    {exp:channel:form channel="products" return="product/index" url_title="{url_title}"}
 <input name="title" type="text" value="{title}">
 {field:product_description}
 <input type="submit" value="Submit">
{/exp:channel:form}

to url_title="{segment_1}"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.