Giter Site home page Giter Site logo

Comments (5)

erichexter avatar erichexter commented on July 19, 2024

I am not sure what it would take to make this work with the internet
template.. I started with the empty template because..it was quicker to get
started. I am open to looking into this.

Eric Hexter

blog | http://Hex.LosTechies.com
info | http://www.linkedin.com/in/erichexter

On Fri, Dec 21, 2012 at 10:42 PM, la2texas [email protected] wrote:

In order to use this NuGet package, you must start from an Empty MVC 4
application - which does not have any of the OAuth / membership configured
(as in the Internet Application). Would it be possible to allow this to
work with the Internet Template for MVC4?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39.

from twitter.bootstrap.mvc.

simonwoodhead avatar simonwoodhead commented on July 19, 2024

I would also like to see this work with the internet template so I can just drop it into an existing project. Alternatively are there any instructions for adding simple membership and other features from the internet template to the empty template after adding twitter.bootstrap.mvc4?

Simon Woodhead

from twitter.bootstrap.mvc.

jjwilliams42 avatar jjwilliams42 commented on July 19, 2024

Eric - from what I can tell there are just some dependencies missing, the AuthConfig.cs in App_Start, and the relevant .cshtml files and controllers. Is it as simple as configuring these in the NuGet package files? Will this violate any TOS or copyright laws (including the MS OAuth dependencies in this package)? This is my first time looking at an open source project, I've been following MVC since around its first iteration.

from twitter.bootstrap.mvc.

jjwilliams42 avatar jjwilliams42 commented on July 19, 2024

Rundown of what I had to do to get it working (warning: lengthy process):

Create a new MVC 4 Internet Application

Install-Package twitter.bootstrap.mvc4

You will get an error: 'Views_ViewStart.cshtml' already exists. Skipping...

Copy this (twitter.bootstrap.mvc4) _ViewStart.cshtml from the GitHub project into the Views directory

Copy this (twitter.bootstrap.mvc4) ExampleLayoutsController.cs into the Controllers folder

Open ExampleLayoutRoutesConfig.cs in App_Start, and resolve the missing reference to HomeController

Open BootstrapBundleConfig.cs in App_Start - there is a naming conflict with the style bundle, change:

bundles.Add(new StyleBundle("~/content/css").Include(

to

bundles.Add(new StyleBundle("~/tbs/css").Include(
(notice I changed /content to /tbs)

Open _BootstrapLayout.basic.cshtml (as well as the other related files - *empty and *narrow.cshtml) and RenderSection the featured area:

In the _BootstrapLayout.basic.cshtml I added this after:

@Html.Partial("_alerts")
@Html.Partial("_validationSummary")
@RenderSection("featured", required: false)

Also at the top of each of these files make sure you are now pointing to the new virtual bundle path:

link href="@Styles.Url("~/tbs/css")" rel="stylesheet" - (notice the change from ~/content/css)

From this repo (or a twitter-bootstrapped empty mvc4 project you have already created), copy the entire Views\ExampleLayouts folder to the new internet project.

Modify your AuthConfig.cs to add some auth providers (facebook, google), then browse to /Account/Login to try one.

Now to streamline this process. I'm just learning about NuGet - not sure if the best way to go about it would be to branch off from twitter.bootstrap.mvc4 and create twitter.bootstrap.mvc4internet, or make it some kind of option with NuGet (if that can even be done?).

from twitter.bootstrap.mvc.

Robzilla avatar Robzilla commented on July 19, 2024

Hi Eric

Are there any updated Nuget packages for this problem and/or an example solution in GitHub?

from twitter.bootstrap.mvc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.