This extension remembers your edit screen across views. So if you filter by category and then leave and come back it will still be filtered by category. Try it out and let me know if there’s anything else I could add to it.
Mark, speaking as one of your many admirers, could you please add an RSS feed to your site with your updates? It would be much easier than subscribing to various and sundry posts.
Hi Mark
I am making use of your Pages module and I noted that the edit view is not remembered if you click to edit the entries of a multiple entries weblog from the Pages page (why did that just sound really weird). From what I can see this happens because there is no POSTed data and that the info about what weblog to show is being sent via the URL.
I played around with your code a bit and came up with the following which seems to work:
if(isset($_POST) && count($_POST) > 0)
{
if(isset($_POST['search_in']) && $_POST['search_in'] != 'comments')
{
$_SESSION['edit_remember'] = $_POST;
}
else
{
unset($_SESSION['edit_remember']);
}
}
else
{
if(isset($_GET['weblog_id']) && $_GET['weblog_id'] > 0)
{
$tmp_post = array ('weblog_id' => $_GET['weblog_id']);
$_SESSION['edit_remember'] = $tmp_post;
}
}
Basically I just added the else section to your ‘modify_edit_post’ function after your check to see if the $_POST array has been set. If there is no POST data it checks the $_GET array to see if a ‘weblog_id’ has been supplied in the URL, and if so it stores the id in the ‘edit_remember’ session variable.
I wanted to run this past you to see if there was anything I was missing that may cause problems with the rest of EE or your module.
P.S. Thanks for all the great modules and extensions!
It appears, based on my experience with 1.6.3 and 1.6.4 (maybe other recent versions) that this extension doesn’t work with recent versions of EE.
What happens on the site I work with, is the remembering portion works, but pagination of search results stops working. That is, if I click any page of results after Page 1, the keywords field is replaced by the keywords URL parameter (something like xlKYKKFM, looks like a hash), and the search therefore doesn’t work.
I am experiencing a sudden error in the cp’s edit page. Browsing to the edit page throws this error:
MySQL ERROR:
Error Number: 1064
Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY entry_date desc' at line 14
Query: SELECT exp_weblog_titles.entry_id, exp_weblog_titles.weblog_id, exp_weblog_titles.title, exp_weblog_titles.author_id, exp_weblog_titles.status, exp_weblog_titles.entry_date, exp_weblog_titles.dst_enabled, exp_weblog_titles.comment_total, exp_weblog_titles.trackback_total, exp_weblogs.live_look_template, exp_members.username, exp_members.email, exp_members.screen_name FROM exp_weblog_titles LEFT JOIN exp_weblogs ON exp_weblog_titles.weblog_id = exp_weblogs.weblog_id LEFT JOIN exp_members ON exp_members.member_id = exp_weblog_titles.author_id WHERE exp_weblog_titles.entry_id IN ) ORDER BY entry_date desc
I disabled all the extensions one by one and edit remember (1.1.1) appears to be the culprit. I have deleted the extension and re-uploaded a fresh copy to no avail. I was deleting a comment when it threw the error. Can anyone help me with this - I would hate to lose such a useful extension!
I am running EE Commercial 1.6.8 by the way.
Hi Mark,
I did some hacking with Edit remember extension and fixed 2 issues:
1) duplicating of “open” and “closed” options in statuses selectbox;
2) extension interfering with functionality of such extensions as Edit Menu and Weblog Order.
If you like my additions feel free to include them into official version.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.