Entries not listing after using the SAEF
Posted: 20 July 2005 11:15 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  549
Joined  01-05-2005

I’m not sure why I’m having problems with this.

I have a template that lists some entries…

{exp:weblog:entries weblog="tracks" limit="10"}

{title}
(<a href="/tracks/edit/{entry_id}">Edit</a>)

{/exp:weblog:entries}

The ‘Edit’ link for the entries links to an edit form (I’ve stripped in for simplicity)

{exp:weblog:entries weblog="tracks" limit="1" entry_id="{segment_3}"}

{exp
:weblog:entry_form weblog="tracks" return="tracks/index"}

<input type="hidden" name="entry_id" value="{entry_id}" />

<
label>Title</label>
<
input type="text" name="title" value="{title}" />

<
input type="submit" name="submit" value="Update" />

{/exp:weblog:entry_form}

{
/exp:weblog:entries}

When you submit the form it returns to /tracks/ but the list of entries doesn’t show.  Refresh the page and they show (with the track edited).

Anyone?

TIA

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 20 July 2005 02:32 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  549
Joined  01-05-2005

It’s also happening with the standalone add template.

I submit the new entry, the form redirects to the list of entrys but the new entry doesn’t display.  I refresh and it displays.  It’s going into the database first time it’s just not listing on the page.

I’ve tried adding the entry_date in hidden fields (I noticed that mentioned this afternoon in Mitchell’s docs for teh form helper plugin) but that hasn’t helped.

Is there anything else that MUST be included?

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 21 July 2005 12:23 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  549
Joined  01-05-2005

Does anyone have any ideas?

Could it be a caching problem?  When the form redirects the page shows the list of entries as it was before the form was submitted.  It’s then only when you refresh that the new enty appears.

BTW - it works fine if I use a query to display the list of entries.  It’s only if I use the weblog:entries tag that these problems occur.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 21 July 2005 02:19 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

Does it behave differently if you turn off the Template caching for that Template?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 22 July 2005 12:08 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
RankRankRank
Total Posts:  549
Joined  01-05-2005

It’s already turned off.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 22 July 2005 09:15 AM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

Is the behavior any different using other browsers (or other computers)?  It does sound like it might be a caching issue.  If you have caching for the Template turned off in EE then it could be caching on the browser side.

You might also try experimenting with turning off the “Cache Dynamic Weblog Queries?” (Admin > Global Weblog Preferences) and/or “Enable SQL Query Caching” (Admin > Database Settings) preferences to see if that makes any difference.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66466 Total Logged-in Users: 27
Total Topics: 84857 Total Anonymous Users: 16
Total Replies: 455317 Total Guests: 177
Total Posts: 540174    
Members ( View Memberlist )