Comments (5)
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.
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.
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.
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.
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)
- Error when trying to NUGET install HOT 9
- Bug in NavigationRouteConfigurationExtensions HOT 1
- Model editor does not display Start Date HOT 6
- adding additional attributes to "EditorFor" control HOT 2
- A namespace cannot directly contain members such as fields or methods HOT 7
- Paging issue with active page HOT 6
- End-to-end test: the generated solution does not compile HOT 1
- Support `[Display(Autogenerate=false)]`: decorated properties should not be displayed HOT 1
- htmlAttributes not forwarded
- BeginControlGroupFor doesn't always identify property names from an expression
- Controller alert methods should be extension methods rather than BootstrapBaseController HOT 3
- BootstrapBaseController can't handle multiple alerts HOT 2
- Support for ScaffoldColumn Attribute HOT 2
- Adding Glimpse nuget package breaks navigation extension HOT 6
- Do not use a custom unobrusive validation script HOT 1
- NavigationViewExtensions does not properly add active css class to active nav list item
- Custom text in TwitterBootstrapMVC.Renderers.Renderer.RenderValidationSummary() HOT 1
- Pulls Bootstrap V3 HOT 10
- Update to use twitter.bootstrap 3 HOT 5
- Twitter Bootstrap for ASP.Net MVC 4 Sample 1.1.100 Crash HOT 35
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter.bootstrap.mvc.