This project is read-only.

Best method for this need

Topics: Writing modules
Apr 17, 2012 at 9:23 PM

I can think of a way to do this, but I'm wondering what the best method would be to do the following.

I need to inject a shape from my module into the homepage only. I'm going to do this in the Layout.cshtml of my theme. My module doesn't use ContentItems or anything, so I'd like to avoid creating a widget or anything.

What would be the best way to ONLY inject the following for the homepage in my Layout.cshtml?

WorkContext.Layout.AsideFirst.Add(New._favoriteList(), "1");

Thanks for any ideas.

Apr 17, 2012 at 11:17 PM

Why don't you make that a widget. Homepage layer, done.