Copied to clipboard

Flag this post as spam?

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

  • Ethan 41 posts 61 karma points
    Jul 14, 2010 @ 15:03

    How to set up Designit Gallery Package and make it work?(2)

    I follow the following instruction to set up DesignitGallery

    Download the codeplex package
    Under Umbraco Developer section, select Packages, Install Local Package and follow the prompts.
    Add a Property to your document type, Gallery as a Media Picker
    Under Templates add the following lines to your template:
    <%@ Master Language="C#" MasterPageFile="/masterpages/Master.master" AutoEventWireup="true" %>
    <asp:content ContentPlaceHolderId="BodyContent" runat="server">
    <script src="/scripts/Designit.Gallery/jquery.lightbox-05.pack.js" type="text/javascript"></script>
    <script src="/scripts/Designit.Gallery/jquery.lightbox-0.5.js" type="text/javascript"></script>
    <umbraco:Macro folderId="[#Gallery]" ThumbWidth="100" ThumbHeight="100" LightBoxWidth="600" LightBoxHeight="600" Alias="Designit.Gallery" runat="server"></umbraco:Macro>
    <script type="text/javascript">
    $(function() {
      $('#diGallery a').lightBox();

    Under Media, create a folder say "MyGallery" and add images to this folder
    Under Content create a document with this document type and template
    Set the property Gallery to the folder "MyGallery"
    Publish and Preview
    If I leave umbraco:Macro folderId="[#Gallery]" unchanged, the browser warmed Jquery was not defined and the particular page lacks object. If I replace #Gallery with the corresponding node ID, then it said Object reference not set to an instance of an object.  How to settle the problem? Thanks a lot!

  • Bex 444 posts 555 karma points
    Jul 16, 2010 @ 12:15

    Same problem! 

    Are we just being daft?

    Btw I have runat server in my head on my main master page




    EDIT: Ok ignore me.. I'm being really daft..!
    my page html read like this:

    <head id="Head1" runat="server">



            <form runat="server">

            <asp:ContentPlaceHolder ID="ContentPlaceHolderDefault" runat="server">






    (the header tag was round the whole form.. have stupid can you get!!)

Please Sign in or register to post replies

Write your reply to: