“Edit this Page”
Posted May 17th, 2003 @ 07:29pm by Erik J. Barzeski
MovableBlog.com responds to Dave Winer's request for "Edit this Page" functionality. Good idea. If I had a place to hide that on my site, I might include it. I'd havd the idea before, but when that article showd up in my news aggregator just now, I thought I'd blog it so that I've got my own reference to it.
<a href="<MTCGIPath>mt.cgi?__mode=view&_type=entry& id=<MTEntryID>&blog_id=<MTBlogID>">Edit Link</a>
There you go. Hide that somewhere by wrapping it around a * or a link and you've got it. MovableBlog mentions the fact that the public search shows "Edit" links, and I'll further add that my 404 search code does not (try it here).
Posted 17 May 2003 at 7:41pm #
Is the MTEntryEditLink tag present in the 404 search template?
Posted 17 May 2003 at 7:52pm #
I'm not sure what you mean. That shouldn't matter, if you look at the 404 Search code, because it literally calls the same URL as I linked to above. One shows the edit links, the other does not. Try the two links above and look at the 404 code.
Posted 17 May 2003 at 7:57pm #
Ah okay. They both call mt-search.cgi with the same search template, is that what you're saying?
As a guess, could it be because it's the server calling the mt-search.cgi URL, and then sending the resulting text by PHP? If so, then mt-search.cgi would not be reading the cookie that MT sets on your computer in your browser.
Posted 17 May 2003 at 8:20pm #
Yes, very likely that is the case. Indeed.
Posted 17 May 2003 at 9:48pm #
I've been using a similar 'edit page' technique on my site for ages now, and wrote about my technique back in January.
To make a long story short, I've got a hidden admin link for every post and every comment on my site that sends me directly to the editing screen (and they way it's hidden, you could add it to your site quite easily, Erik). MT and CSS code for my implementation are on the above-linked post — comes in quite handy pretty often!
Posted 17 May 2003 at 9:54pm #
MT: Easy comment and entry editing
I use a 'edit this entry' here, only one that allows me to not have to worry about the blog ID number, and I have 'edit' links both for each individual entry, and for any comments that are left on my site. As a bonus, the edit links are hidden, so unle...
Posted 17 May 2003 at 10:28pm #
A link to edit the entry represented by the search result, if the user displaying the search results page is logged in to Movable Type and has permission to edit the entry listed.
I think that bit explains it pretty well. I would assume this only works on cgi based pages.
Presumably you'd be presented with a login screen otherwise on the non-cgi page.
Posted 17 May 2003 at 10:57pm #
Edit This Page
Various 'Edit This Page' methods in MT
Posted 18 May 2003 at 1:54pm #
Isn't this effectively turning it into a Wikki?
Posted 18 May 2003 at 2:34pm #
Not at all - not everyone can edit it. Just the owner of the blog. If I'm reading my blog, and see a typo or want to update a comment or anything, the normal procedure is:
Look at article title.Log into admin area.Search for title.Edit the article.Save.
"Edit This Page" removes the first three steps (and again, only for the admin, not everyone as general Wikis tend to allow).
Posted 20 May 2003 at 3:03pm #
I've also been using a trick like this for months. I actually have the link tied to a javascript ondoubleclick handler on a hyphen between the post info and the date. This way it requires no extra effort to hide it and is nearly impossible to invoke by accident.
Posted 02 Feb 2004 at 12:23pm #
Milf Seeker
Milf Rider
Girl Kissing
Teen Lesbian