Press Ctrl / CMD + C to copy this to your clipboard.

Copied to clipboard

#### Are you sure?

This will be gone forever and ever

## Notice: Planned maintenance

Our will be down tomorrow morning between 08:00-10:00 AM (GMT+1) for planned maintenance.

For more information, go to our.info

Go to solution

- Darth Vader has in total, 2452 karma points
  Sep 08, 2014 @ 15:52
  5
  High Five

  ## After installing Demo Razor Store: "The type or namespace name 'Raven' could not be found" (When Building in Visual Studio)

  uCommerce Support
  Umbraco 7

  Hi all,

  Im doing a website with a structure much like the Standard Farao Umbraco website. The site structure contains different doc types (story pages, text pages, cases etc ...)

  One of the page types "Story Page" contains multiple frames. Each frame is a part of the story and can vary in content and behaviour. Also sometimes a frame contains multiple frames sideways before continuing downwards. Stories can contain up to 15 frames. Frames are not required to be reusable.

  I've tested a lot and are fully confident with creating property editors for the grid or even macros maybe.

  Also - a huge concern is that all the definition of a grid data type is stored in db - ie not possible? to copy to another datatype (i will need multiple). (why why why is it not filebased..... )

  Would you use the grid?

  Anyone been doing anything crazy huge with the grid and could share some experience - do's and donts?

  Certainly would like to avoid https://www.youtube.com/watch?v=Z7JSodkbrgs&feature=youtu.be&t=13m51s

  best
  Jesper

  ps. Im used to deal with stuff like this by creating sub content in the structure but I really would like to avoid it if possible.

  Delete post Mark as spam Edit post Copy Link Reply
- Jan Skovgaard has in total, 12452 karma points admin mvp c-trib
  12 Minutes ago
  5
  High Five
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt temporibus excepturi, assumenda quibusdam? Nesciunt ducimus repellendus possimus totam, architecto, earum amet vero quia placeat tempore. A magni, tempore itaque sint.
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt temporibus excepturi, assumenda quibusdam? Nesciunt ducimus repellendus possimus totam, architecto, earum amet vero quia placeat tempore. A magni, tempore itaque sint.

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Mark as spam Edit post Copy Link Reply
- Simon Busborg 9999 karma points HQ admin mvp Core c-trib
  Sep 08, 2014 @ 15:52
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

      [
          {
            "label": "Class",
            "description": "Set a css class",
            "key": "class",
            "view": "textstring",
            "modifier": "col-sm-{0}",
            "applyTo": "row|cell"
          }
      ]

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

      [
          {
            "label": "Class",
            "description": "Set a css class",
            "key": "class",
            "view": "textstring",
            "modifier": "col-sm-{0}",
            "applyTo": "row|cell"
          }
      ]

  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut `/bin/Microsoft.Web.Helpers.dll` aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

  Kind regards
  Anders

  Unmark as solution Mark as spam Edit post Copy Link Reply
- Darth Vader has in total, 2452 karma points
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points c-trib
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  I'm just not quite sure where to start (never created a property editor before). Can someone point me in the right direction - latest applicable docs / or maybe someone has done something like this before?

      <%@ Register Src="Vil-samba.ascx" TagPrefix="uc1" TagName="Vilsamba"%>

  just add the entire project to a folder on the umbraco server. I excluded the folder with the umbracoReservedPaths and the project is working fine. But when I add the usercontrol into Umbraco it doesn't. I stripped out every other code so the only thing left is the usercontrol, but it still doesn't work. The problem is caused by the macro. I put the usercontrol directly into the template and it works :):

      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Web;
      using System.Web.Mvc;
      using Umbraco.Core;
      using Umbraco.Web.Mvc;
      using TestProject.classLib;

      namespace TestProject.Controllers
      {

          public class CustomApplicationEventHandler : ApplicationEventHandler
          {
              protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
              {
                  DefaultRenderMvcControllerResolver.Current.SetDefaultControllerType(typeof(IPRedirectController));
                  base.ApplicationStarting(umbracoApplication, applicationContext);
              }
          }

          public class IPRedirectController : RenderMvcController
          {
              public ActionResult Index() {

                  // Check for cookie
                  Cookies cookie = new Cookies();
                  if(cookie.ReadCookie()!=null) {
                      // If cookie exists, look up appropriate site for country and redirect

                  } else {
                      // Or get the user's country
                      IPRedirect getCountry = new IPRedirect();
                      string country = getCountry.GetUsersCountry();

                      // Look up the appropriate site for the user's country and redirect

                  }

                  string returnUrl = "http://localhost:50383/de-de";

                  return this.Redirect(returnUrl);
              }
          }
      }

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points mvp
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. `/bin/Microsoft.Web.Helpers.dll` Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points admin
  4 Hours ago

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply
- Darth Vader has in total, 2452 karma points
  4 Hours ago
  5
  High Five

  Hi Bjarne

  When you generate the gift card using the GiftCardService.Instance.Generate it is possible to assign an order id. Buy having this you will be able to load the order and look for the info here.

  Kind regards
  Anders

  Mark as solution Copy Link Reply

Reply to topic
Please Log in or sign up to post replies

Write your reply to:

Editor
Preview
Draft