Copied to clipboard

Flag this post as spam?

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


  • Arlan 58 posts 184 karma points
    May 02, 2015 @ 17:29
    Arlan
    0

    Photo Gallery Package

    what woulld be the best one for umbraco 7.2?
    i can seem to find one. 

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    May 02, 2015 @ 19:35
    Alex Skrypnyk
    100

    Hi Arlan,

    What gallery do you want? It's not hard to create gallery from Images in media. Good video tutorial how to make gallery with Umbraco -

    https://www.youtube.com/watch?v=02S5HH9DVek&html5=1

    https://www.youtube.com/watch?v=uGFeUDYXDcQ&html5=1

    Thanks, Alex

  • Arlan 58 posts 184 karma points
    May 05, 2015 @ 18:48
    Arlan
    1

    Hi Alex
    i will look into this, thanks.

  • Arlan 58 posts 184 karma points
    May 12, 2015 @ 17:39
    Arlan
    1

    Here are some other good gallery resources

    http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor-recipes/gallery

    and

    pagination for news but i think it can be used for gallery as well, all videos have code to download at bottom

    http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor-recipes/news

    I used Foundation lightbox

    http://foundation.zurb.com/docs/components/clearing.html

     

    to display images of item:

    -------

    @inherits Umbraco.Web.Macros.PartialViewMacroPage

     

     

    @*

        Macro to display a series of images from a media folder.

     

        How it works:

            - Confirm the macro parameter has been passed in with a value

            - Loop through all the media Id's passed in (might be a single item, might be many)

            - Display any individual images, as well as any folders of images

     

        Macro Parameters To Create, for this macro to work:

        Alias:mediaId     Name:Select folder with images    Type:Single Media Picker

    *@

     

    @{ var mediaId = Model.MacroParameters["mediaId"]; }

    @if (mediaId != null){

        @* Get all the media item associated with the id passed in *@

        var media = Umbraco.Media(mediaId);

        var selection = media.Children("Image");

        if (selection.Any())

        {

        <!-- house item container -->

        <div class="row">

          <div class="small-12 columns">

            <div class="house-item-container">

              <ul class="clearing-thumbs xsmall-block-grid-1 small-block-grid-2 medium-block-grid-3 large-block-grid-4" data-clearing>

                @foreach (var item in selection)

                {

                <li><a class="th" href="@item.umbracoFile"><img data-caption="@CurrentPage.name [email protected]" src="/[email protected]&width=240&height=157" alt="@item.Name" /></a></li>

                }

              </ul>  

            </div>

          </div>

        </div>

        <!-- /house item container -->

        }

    }

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    May 12, 2015 @ 17:51
    Alex Skrypnyk
    0

    Arlan, great, thanks !!!

Please Sign in or register to post replies

Write your reply to:

Draft