1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / content lightbox?

content lightbox?

39 posts, 1 answered
  1. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Feb 2012
    Link to this post
    Does anyone know of a module or method for creating a lightbox which actually holds content?

    See attached images for what I mean
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Feb 2012
    Link to this post
    I have such a control in the marketplace

    http://www.sitefinity.com/marketplace/modules/random-site-controls-for-sitefinity-4.aspx
    Answered
  3. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    22 Feb 2012
    Link to this post
    Steve,

    Thanks, this is exactly what I am looking for...  however, I am a total n00b and am having difficulty getting my project to see your controls.

    I emailed you via your site, but I don't know if you'lls ee that or this post first, so I figured I'd do both.

    In your set up instructions you mention:  "Copy the RandomSiteControls.dll to your project"

    where to?  the root?  the bin folder?

    "Add in the Toolbox entries from the included ToolboxesConfig.config by either COPYING the entires into your own, or by adding them with the Sitefinity backend Settings UI at Settings->Advanced->Toolboxes->Toolboxes"

    I see this on the back end, but it wants me to call it something.  what should I call it?  is it going to prompt me to upload the config file?  or does the config file need to be placed somewhere and a path assigned in the backend here?

    sorry... like I said... total n00b.  any help would be much appriciated.

    -Robert
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Feb 2012
    Link to this post
    Hey Robert :)
      No problem...until SF gets form notifications I only check my contact form every few days, I can respond here!

    1) Yes the DLL should be in your bin folder
    2) Are you able to find the config file on your file system under ~/App_Data/SItefinity/Configuration?  If you see it there, just edit that and put those lines I gave you under the proper headings, should be obvious.

    So after you paste them in just restart your app pool or rebuild your project just so it can read the .config changes in.

    They then should just show up in your widgets\layouts area.
  5. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    22 Feb 2012
    Link to this post
    awesome man.  you are a life saver.

    ok, i added the .dll to the bin, and edited the ToolboxesConfig.config file in App_Data\Sitefinity\Configuration.

    do i have to do anything with the virtualPathSettingsConfig.config?  I don't see that in the App_Data\Sitefinity\Configuration folder.

    -Robert

  6. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Feb 2012
    Link to this post
    Oh yeah whoops sorry, add in the virtual path in the backend Settings->Advanced

    I THINK the instructions are there for the lines it needs (there's only a couple)
  7. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    22 Feb 2012
    Link to this post
    hmm..  how do I do that.

    I go to Settings->Advanced->VirtualPathSettings->Virtual paths->Create New

    it lists these fields:

    Virtual paths

    A collection of registered virtual paths.

  8. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Feb 2012
    Link to this post
    Have a look in the "VirtualPathSettingsConfig.config" file

    The attributes you see there should match to those names you pasted.  If you don't see the attribute listed, then just leave the field blank
  9. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Feb 2012
    Link to this post
    Hey Robert, if all is well, I'd appreciate a "Marked as Answered" on the post if possible :)
  10. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    22 Feb 2012
    Link to this post
    sorry, yes, i had to test it.  This works perfectly.  This is freaking awesome.  you are the man.
  11. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Feb 2012
    Link to this post
    I got a bug report that it has problems with multiples FYI, but I'll have it fixed (if I can find a problem) for 5.0 next week, along with vertical tab strip support.

    Cheers,
    Steve
  12. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    22 Feb 2012
    Link to this post
    like multiple on a page, or multiple within a website?
  13. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Apr 2012
    Link to this post
    Steve,

    I am having an issue with this on sitefinity 4.4.  When I first tested it, I was using a default template that comes with sitefinity (Right Sidebar, Content) to be exact.

    But in my custom templates, this control doesn't seem to work at all.  I am not sure if it is a CSS issue (i saw the fancy box has a wrapper) or what. 

    What do I need to do to get this working in a custom template?

    Thanks!
  14. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Apr 2012
    Link to this post
    It should work fine...unless you resized the layout.

    There's a bug in SF where when you resize the layout it deletes the wrapper class which the control relies on.

    Try dragging a new one into your page?
  15. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Apr 2012
    Link to this post
    Well, it being a custom template (with it's own theme), I certainly did resize the layout via CSS. 

    I'm not sure about it deleting the wrapper class, I mean, it's listed on the layout element still.  I guess my question would be, where does that wrapper class exist? (it's obviously not in my custom theme's CSS files)

    I tried dragging a new one into the page, and that makes it look like it is going to work, but as soon as you publish it, it strips the class I believe.
  16. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Apr 2012
    Link to this post
    Well it'll work if you resize a "regular" sitefinity layout control...so what if

    1) Add a 100% layout, resize to the width you want for the lightbox
    2) Add the lightbox to that so you don't have to resize anything

    It shouldn't strip the wrapper on publish, use firebug or fiddler, are any resources giving you a 404\500 error? (any script errors on the page?)
  17. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Apr 2012
    Link to this post
    I used firebug and the wrappers are all there...  I'm not resizing the layout of the lightbox.  I am dropping the lightbox layout inside another layout that has it's own wrapper/CSS assigned to it which determines it's size and properties (like padding and font styles)

    no script errors or 404s, what I see when i visit the page using my theme and the lightbox is the content that acts as the "button" part of the lightbox, imiediately followed by the content that should be hidden but isn't.  see attachments.
  18. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Apr 2012
    Link to this post
    When you inspect the Net tab of firebug do you see items like this?

    <yourdoman>/SFPageService/RandomSiteControls.TabStrip.Resources.TabStrip.css
    (So this is the tabstrip version for example...same diff for fancybox)
  19. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Apr 2012
    Link to this post
    ah... here we have the issue.  (see screenshot).  how do i fix this?
  20. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Apr 2012
    Link to this post
    I have an active open ticket# 533414 I would be very much appreciative if you could open one as well and provide them your details so we can try and get this fixed...we're having problems reproducing it right now (well, they are)

    In the meantime, here's the CSS so it's not having to rely on the failed ones

    http://dl.dropbox.com/u/3234184/RandomSiteControlsCSS.zip
  21. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Apr 2012
    Link to this post
    I see.

    If I want to use the CSS you sent to get it working, where would I be putting those?

    Thanks in advanced, you're like the msot helpful forum guy I have ever dealt with.
  22. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Apr 2012
    Link to this post
    Well you haven't talked to jochem then :)
    http://www.telerik.com/community/client-profile.aspx?cId=162662

    You can put it anywhere you want...so if you're using a sitefinity theme you should have a "Global" folder.  You can drop them in there....OR open the files that are causing issues, cut out all the css, and paste them into you main .css file somewhere.  Keeping in mind when we get this fixed you can just go back and delete it.

    I'd suggest Option 2 as it wont have to download more CSS files.
  23. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    17 Apr 2012
    Link to this post
    Hmm.  I added the CSS, and it does change the behavior, but it's not fixed 100%.  am I missing any files?  I see in the 404's it is referencing a fancybox.css file but your zip didn't include that one.  do i need that file?

  24. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    19 Apr 2012
    Link to this post
    By adding the css from the fancybox.css file i downloaded from the fancybox website, i got the module to KIND OF work, but the styling is still not 100%.  it doesn't make the background dark/faded or use a drop shadow on the fancy box content area.

    any ideas how i can get the styling to work?  i made sure the paths were pointing to the correct image directory for the necessary graphics, it seems like some of the ids in the css file are ebing ignored though.
  25. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    19 Apr 2012
    Link to this post
    Hey Robert, can you try this build?

    (just replace the DLLs)
    http://dl.dropbox.com/u/3234184/RandomSiteControls/5.0.2523.0.zip
  26. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    19 Apr 2012
    Link to this post
    I assume I'll have to upgrade the project to 5 then before i try that file since i am current;y running it as 4.4?
  27. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    19 Apr 2012
    Link to this post
    Yes, sorry about that :)  Im only compiling against the latest release...however if you want to provide me your "Telerik.Sitefinity, Telerik.OpenAccess, Telerik.Sitefinity.Model, adn Telerik.Web.UI" I'll compile it against your 4.4
  28. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    19 Apr 2012
    Link to this post
    I went ahead and upgraded the project to Sitefinity 5.
    I then followed the install instructions within the zip you sent.

    Now I get this:

    Server Error in '/' Application.

    Could not load file or assembly 'Telerik.Sitefinity, Version=5.0.2523.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=5.0.2523.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Sitefinity, Version=5.0.2523.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' could not be loaded.

    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

  29. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    19 Apr 2012
    Link to this post
    Open your bin folder, right-click the Telerik.Sitefinity.dll and go to properties

    In the details tab, what version is it?
  30. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    19 Apr 2012
    Link to this post
    5.0.2800.0
39 posts, 1 answered
1 2