Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Mar 03, 2011 @ 18:05
    Connie DeCinko
    0

    Related Links with Media Won't Save Links

    I am trying to use the Related Links with Media.  It appears I can add links to the list, as they show up, at least the title does, in the list.  As soon as I save and publish the page, the list of links goes empty.

     

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 03, 2011 @ 18:07
    Lee Kelleher
    0

    Hi Connie,

    Which version of uComponents are you using?

    We've got a release of v2.1 (stable) due early next week - so we're doing testing over the weekend. So if there is a bug, we'll iron it out.

    Cheers, Lee.

  • Connie DeCinko 931 posts 1160 karma points
    Mar 03, 2011 @ 18:17
    Connie DeCinko
    0

    I'm using v. 2.0.1 right now.  Had an issue with 2.1 on my dev server, but that might not have been related to uComponents.

     

  • Connie DeCinko 931 posts 1160 karma points
    Mar 10, 2011 @ 18:19
    Connie DeCinko
    0

    Lee, has this been resolved?  Has v.2.1 been officially released?  I've got 100 users sitting on their hands waiting for this ability before our site goes live very shortly.  I promised them this ability based upon what I read.

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 10, 2011 @ 18:32
    Tom Fulton
    1

    Hi Connie,

    This is happening with the regular Related Media datatype too right?

    Are you by chance using Matt's Page Notifications package, and is there a notification on the affected page?  I had the exact same issue and finally narrowed it down to that.  After removing the notification Related Links works properly.  Have been meaning to look into it but haven't had time lately.

    Thanks,
    Tom

  • Connie DeCinko 931 posts 1160 karma points
    Mar 10, 2011 @ 19:52
    Connie DeCinko
    0

    As a matter of fact, we are using Page Notifications, which has issues as well.  It pushes the divs below the bottom of the screen and you can't get to them.

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 10, 2011 @ 19:53
    Tom Fulton
    0

    I think you are thinking of the Notificaitons Dashboard - I was referring to the Page Notifications package that adds notifications to the top of certain pages (ie "This document is set to redirect to xxx")

  • Connie DeCinko 931 posts 1160 karma points
    Mar 10, 2011 @ 19:59
    Connie DeCinko
    0

    You are correct.  I realized after I posted my reply, so edited it.  I just removed Page Notifications and low and behold, the problem is fixed!  At least with Related Links.  That's very odd and interesting how you were able to figure it out.  My users will be so happy.  I'll leave Page Notifications off for now since it's admin fluff and not critical to have it there.

     

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 11, 2011 @ 11:28
    Lee Kelleher
    0

    Phfew, glad that issue is resolved!

    We'll try to reproduce the issue with Related Links (with Media) and Page Notifications ... see if there's a code-fix for it.

    Cheers, Lee.

  • Adam Nelson 27 posts 186 karma points c-trib
    Sep 15, 2011 @ 04:14
    Adam Nelson
    1

    FYI - I posted this on the Page Notifications forum but thought it might be useful here, too.

    I have a patch to fix this issue in Page Notifications, along with the other issue where the Related Links datatype is affected by Page Notifications - postbacks aren't honoured and related links are not saved.

    I think the core issue comes down to modification of the controls collection breaking Related Links.

    To fix, grab the source from codeplex and update the ShowNotifications method from:

    protected void ShowNotification(ContentPlaceHolder placeHolder,string msg)
    {
    var panel = new Panel();
    panel
    .Style.Add("background-color","#fff9c2");
    panel
    .Style.Add("border","solid 1px #ffd800");
    panel
    .Style.Add("color","#333333");
    panel
    .Style.Add("padding","10px");
    panel
    .Style.Add("margin-bottom","10px");

    var literal = new Literal();
    literal
    .Text = msg;

    panel
    .Controls.Add(literal);

    placeHolder
    .Controls.AddAt(0, panel);
    }

    to:

    protected void ShowNotification(ContentPlaceHolder placeHolder, string msg)
    {
    placeHolder.Controls.Add(new Literal
    {
    Text = String.Format("<script type=\"text/javascript\">\n$(function(){{ " +
    "$(\"div.tabpageContent\").prepend(\"" +
    "<div style='background-color:#fff9c2;border:solid 1px #ffd800;" +
    "color:#333;padding:10px;margin-top:10px;text-align:left'>{0}</div>\"); }});\n</script>\n", msg) });
    }

    Which uses jQuery at the bottom of the control collection (does not seem to affect Related Links) to prepend a message to the top of the page (inside the scrollable container).

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 13, 2012 @ 17:17
    Lee Kelleher
    0

    6 months later... following up on this, I have patched the Page Notifications package (v1.0.1) - using Adam's code snippet as a basis (#h5yr Adam!)

Please Sign in or register to post replies

Write your reply to:

Draft