Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » Form Fields Retain data After Comment Post

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 967 Views
  • Hello_electro
    Avatar
    Community Member
    80 Posts

    Form Fields Retain data After Comment Post Link to this post

    Hi:

    I am noticing that after I post a comment to a blog entry, the information does not clear out of the form fields. Even if I close the browser and return to the page, my previous information is still sitting in the fields, even with the comment submitted.

    Any ideas why this is happening and/or solutions?

    Thanks!

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Form Fields Retain data After Comment Post Link to this post

    SS stores the comment name, email and url in a cookie. though it shouldn't store the comment text. If it stores comment text you may want to check if you have partial caching or static caching enabled. In those cases you'll need to disable caching for the comments area.

  • Hello_electro
    Avatar
    Community Member
    80 Posts

    Re: Form Fields Retain data After Comment Post Link to this post

    Thanks Will.

    I do have a cache folder in the root to help speed up the site, think that may be the culprit? I did not notice it storing comment data though. so I guess its ok then and makes it easier for a returning user.

    Do you think i should consider disabling the storage of that info though? If so, can you direct me to where I can find info on how?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Form Fields Retain data After Comment Post Link to this post

    All SilverStripe sites will have a cache folder. The cache will contain at least a manifest of all the classes used but in the event of using static caching (i.e if there are .html files in that cache folder) then you will need to disable the static cache for those pages. Or if you see <% cached %> in your template file then you can wrap the $PageComments variable with an <% uncached %>$PageComments<% end_uncached %>.

    967 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.