Hi there! Does anybody know why when previewing a node its title appears with a link to "/node"? I have seen some users accidentally clicking on this link and loosing their content. Is there a reason why the title appears with a link? Thanks! a
Quoting Andre Avorio <andre@andreavorio.com>:
Hi there!
Does anybody know why when previewing a node its title appears with a link to "/node"? I have seen some users accidentally clicking on this link and loosing their content.
Is there a reason why the title appears with a link?
This is a support question. The preview flows through all of the normal node view methods and shows the teaser and the node to the user as it would be if the user saves and publishes the node. However, I agree that it would be a nice feature that the preview link would just wrap to itself. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
No, I would say that is a bug. As far as I know, IE won't keep the form contents if the user clicks back after clicking away. So in some common cases, this will lose the user's data. Losing data is generally a bad thing. A couple possible solutions which I haven't fully thought-out: - Attach a false-returning click event handler to '.preview :link', with some sort of "this is a preview" notification to explain why clicking is doing nothing. - A whole draft & autosave system so incomplete posts are never lost under any normal circumstances. On Wed, Mar 26, 2008 at 5:02 AM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Andre Avorio <andre@andreavorio.com>:
Hi there!
Does anybody know why when previewing a node its title appears with a link to "/node"? I have seen some users accidentally clicking on this link and loosing their content.
Is there a reason why the title appears with a link?
This is a support question. The preview flows through all of the normal node view methods and shows the teaser and the node to the user as it would be if the user saves and publishes the node. However, I agree that it would be a nice feature that the preview link would just wrap to itself.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
-- Neil Drumm http://delocalizedham.com
On Wed, Mar 26, 2008 at 11:39 AM, Neil Drumm <drumm@delocalizedham.com> wrote:
A couple possible solutions which I haven't fully thought-out: - Attach a false-returning click event handler to '.preview :link', with some sort of "this is a preview" notification to explain why clicking is doing nothing.
I actually wrote something like that on fastcompany.com at the client's request, adding a title attribute to these links with the text "Links are disabled during preview.", and since then we haven't had any complaints of lost content. I'll make a patch for this when I get back from lunch.
Yes. Wouldn't it be easier just to remove the link? I don't think users expect to see the node title with a link pointing to somewhere. And definitely this place is not "/node". Florian - I would appreciate if you shared your patch with us. Cheers, guys! a On 26 Mar 2008, at 16:21, Florian Loretan wrote:
On Wed, Mar 26, 2008 at 11:39 AM, Neil Drumm <drumm@delocalizedham.com> wrote: A couple possible solutions which I haven't fully thought-out: - Attach a false-returning click event handler to '.preview :link', with some sort of "this is a preview" notification to explain why clicking is doing nothing.
I actually wrote something like that on fastcompany.com at the client's request, adding a title attribute to these links with the text "Links are disabled during preview.", and since then we haven't had any complaints of lost content.
I'll make a patch for this when I get back from lunch.
Won't <a href="#"> fix that? m. On Wed, Mar 26, 2008 at 9:44 PM, Andre Avorio <andre@andreavorio.com> wrote:
Yes. Wouldn't it be easier just to remove the link?
I don't think users expect to see the node title with a link pointing to somewhere. And definitely this place is not "/node".
Florian - I would appreciate if you shared your patch with us.
Cheers, guys!
a
On 26 Mar 2008, at 16:21, Florian Loretan wrote:
On Wed, Mar 26, 2008 at 11:39 AM, Neil Drumm <drumm@delocalizedham.com> wrote: A couple possible solutions which I haven't fully thought-out: - Attach a false-returning click event handler to '.preview :link', with some sort of "this is a preview" notification to explain why clicking is doing nothing.
I actually wrote something like that on fastcompany.com at the client's request, adding a title attribute to these links with the text "Links are disabled during preview.", and since then we haven't had any complaints of lost content.
I'll make a patch for this when I get back from lunch.
The title, and enclosing link, shouldn't be changed or removed since the preview is supposed to be a preview. On Wed, Mar 26, 2008 at 2:44 PM, Andre Avorio <andre@andreavorio.com> wrote:
Yes. Wouldn't it be easier just to remove the link?
I don't think users expect to see the node title with a link pointing to somewhere. And definitely this place is not "/node".
Florian - I would appreciate if you shared your patch with us.
Cheers, guys!
a
On 26 Mar 2008, at 16:21, Florian Loretan wrote:
On Wed, Mar 26, 2008 at 11:39 AM, Neil Drumm <drumm@delocalizedham.com> wrote: A couple possible solutions which I haven't fully thought-out: - Attach a false-returning click event handler to '.preview :link', with some sort of "this is a preview" notification to explain why clicking is doing nothing.
I actually wrote something like that on fastcompany.com at the client's request, adding a title attribute to these links with the text "Links are disabled during preview.", and since then we haven't had any complaints of lost content.
I'll make a patch for this when I get back from lunch.
-- Neil Drumm http://delocalizedham.com
For those interested, the patch is here: http://drupal.org/node/239132
participants (5)
-
Andre Avorio -
Earnie Boyd -
Florian Loretan -
Marek Sotak -
Neil Drumm