Is it possible to create a templated multi-site setup in Umbraco. What I mean specifically, is there a way a user can create a new site in Umbraco, but that site has already been setup with templates and items that are prepopulated into the new site, when it is created?
I would recommend looking into Continuous Integration. I've explored this kind of possibility in the past, and got quite far with it. The problem is that before I managed to finish, a new release came out and most of my code broke! :-)
Check out Anthony Dang's video about how he has produced single-click deployments of empty solutions. I love some of the stuff that this guy has been creating. Hopefully it is exactly what you are after too!
http://thecogworks.co.uk/blog/posts/2012/november/automation-sparta-standard-naming-across-the-project-universe/
There's also a video on YouTube in which he talks about how they do it.
http://www.youtube.com/watch?v=WxE0qu4W0go
The quick answer is no. But check out my answer to microsite in umbraco for some possible workarounds. I'm thinking you might have to create several replica document types for each "template" you want to use so that when the user creates a new "site", they can then choose which "template" they want to use.
Related
(My apologies for all those that voted the question down. I'm not trying to avoid researching. I've been actually trying to find a way for doing this for the past several hours. The only thing I'm trying to avoid is paying the Umbraco TV membership fee)
This is probably a dumb question:
I'm somewhat familiar with MVC, but really new to UMBRACO 7. I'm going through documentation on how to add restricted pages (pages accesible to some membership types) and I have to create a model. I've been searching through the whole UMBRACO settings and developer back office pages but couldn't find where to add the models. Neither was I able to find in VS where to add them (which would be even more convenient).
Can someone point me in the right direction or any documentation where I would be able to understand how Umbraco and MVC+VS work together and add models and custom code to an UMBRACO 7 website?
(I have the site running locally in VS2013 and DB in MSSQL Server 2014)
THANK YOU KINDLY!
I would recommend you read up on Umbraco surface controllers. You can learn a bit about what it is and how it works here: http://our.umbraco.org/documentation/Reference/Mvc/surface-controllers
To answer your question, you put your models where you always put model classes in MVC: Pretty much where ever you like in the solution. However, it would be pretty good idea to put it in a folder & namespace called Models.
When I want to restrict access to pages in my umbraco site, I usually find that I can use the default "Public Access" that umbraco has set up. Just right click on a node in the content tree, and you should be able to restrict access to either specific members or a specific member groups.
https://our.umbraco.org/wiki/reference/umbraco-client/context-menus/public-access
I'm developing a site in umbraco, and integrating uBlogsy (blog) in it.
But the problem is, uBlogsy offers its own look n feel. However i want to have my existing website design in Blogging part as well.
here is the link for the same :
http://our.umbraco.org/projects/starter-kits/ublogsy
I've done that manually. but its a time taking process.
Does any one knows, how can i do that? is there any automation available for the same?
Or if there exists any better blog than uBlogsy offering same feature and functionality?
Thanks in advance.
uBlogsy is the de-facto blog package for umbraco so i'd be surprised if you find anything better (the community is encouraged to build upon the best instead of spin up many sub-par competitors, but i digress).
I've done that manually. but its a time taking process.
^^This sounds like you have modified the cshtml markup and css from the package. This is indeed the way to go.
There isn't really any plug-in theming that i'm aware of and it sounds like this is what you're looking for, right?
I've used uBlogsy many times on past projects and usually don't keep anthonys files for template views but rather start with fresh markup to match my wire-comps. Since his files are included - they make a great example for how-to access the data.
Sorry it's probably not what you're looking to hear. But i think it ultimately gives greater control and better result to get hands-on.
Can we add php contact form in volusion eCommerce site?
I tried to implement but couldn't get it right.
Problem seems to me is, when calling the php file for form action to "XXX.php" file, it displays error (i.e. couldn't find the page).
Can I call "xxx.php" file from volusion "default.html" page??
Please help me out.
I know this question's a bit old but I thought I'd give you my thoughts on it anyways, You asked if you could use PHP on volusion and my answer to that is Unfortunately Not. Volusion only supports classic ASP and JavaScript on the front end of your store. (And as the previous poster said, it is written in asp.net however I've never been able to get .net code to work in it, it seems .net is only used for the admin panel and for the webservices API...)
Regardless, there are a few other ways to accomplish what you want to do; at least in my mind.
You could possibly add it with an Iframe.
If not, (if volusion blocks out your iframe, or if you just don't want an iframe) I would suggest just making your contact form in ASP or JS... You could view the following link for information on how to use their VSMPT ASP class.. http://support.volusion.com/article/vsmtp-key
If neither of the previous options work, you might also consider making the contact form be part of a new ticket. It would however require your customers to create an account first, and if it's purpose is to reach new customers you might want to look into how you add custom fields to the account registration form in volusion. This way you can have the information that you wish to collect from customers inside of your volusion admin panel.
This link may be helpful for the latter. http://support.volusion.com/article/use-custom-fields-gather-marketing-data
I wish you the best of luck working with volusion, I'm stuck on their disgusting software and sure wish I would have known the massive limitations and roadblocks, prior to starting using their product. Hopefully I'll be moving away soon! I suggest the same to anyone else on it. (sorry for the added two cents)
You can if your server will support it. What I mean by that is that Volusion is written in ASP.NET and runs on a Microsoft server. PHP on the other hand runs on a LAMP (Linux, Apache, MySQL, PHP) server.
Generally I don't find servers running both the LAMP stack and the Microsoft stack but its possible.
When you start creating an application or site in ASP.NET MVC, what do you do before typing in that first line of code?
I'm personally fond of creating a new ASP.NET MVC Web Application project and then cleaning out controllers/views until I have what is essentially a blank project (i.e. it runs but doesn't offer functionality). Then I start working on my model and adding controllers/views as needed.
I've also read about starter kits and sample applications but I have not yet started actively working with any of them. However, in my reading I have seen authors suggest that it might be good to start off with an existing template and build on it.
I'm trying to determine if there are better ways of starting off a project such that time is saved and/or the resulting deliverable is of higher quality.
The other things I do (I also clear out the controller/views etc)
Put an IOC in place.
Put ELMAH into the project.
Then I grab a coffee and write my first test.
Kindness,
Dan
PS: At some point I shall get around to creating a template for this so I don't redo it everytime. As soon as I decide upon my favourite IOC. :-)
I usually clear out the Content folder as well and put in place a nice CSS reset file and/or a CSS framework like the 960 grid
Before starting any type of project you must know what you want to do. So take a sheet of paper and start writing on here:
The name of your application
Enumerate the features
Make a quick draft of the domain model (entities that you are going to have)
Try finding the ways (choosing a technology) you are going to do different stuff like: data access, validation (client and server side), logging, IoC, Security, Caching etc.
Do a quick draft of all the views you are going to have in your application
Identify any other problems you might need to solve/implement/develop and think how are you going to do that
Introduction:
Now I know this question could be very broad and it would be too hard to answer without me asking something specific. So All I ask is just some direction, or a brief high level explanation of a design, or maybe there is already some framework out there that could help me get started...I'm not sure.. I have never designed a plugin architecture before, so maybe there is some resource/example you could point me to on the web that would help me learn so that I may come up with my own solution.
Details of my question:
My intention is I would like to create a plug-in architecture for a new pet-project that I am building in ASP.NET MVC.
I would like to design it so that it has some sort of plug-in ability for all, or at least most, of the application's components.
The reason I would like to do this, is so that I may be able to do deployments with nearly zero down time. The idea is that when I want to deploy the latest version I would drop in the new DLLs into a specific folder, and the application would load up the new plug ins and that is it.
For exapmle, lets say I add a new "contacts" feature to my web application where users can search, add and delete contacts. I would like to be able to deploy that by way of plugins.
Is something like this even possible for Web Applications? Or am I just dreaming?
It's definitely possible.
You will need to define a pretty comprehensive interface that represents everything your plugins will have to do. You should approach it by differentiating what is "core" to your application, and where the extensibility points are. For example, where will the plugins be accessed? Will they be tabs on a page, or links in a sidebar? What properties does each plugin need to have in order to fit into the plugin container?
Generally, plugins are enumerated via reflection by looking for assemblies that implement the plugin interface.
Just for encouragement, we've done this with an enterprise product that provides a generic framework for "management" interfaces for web sites. Developers just need to drop in a plugin dll that builds specific property pages, and they show up in the management interface menu, all the navigation is taken care of, and their dll's just have to worry about their own domain logic.
There is always the dll-way where you define some interfaces that plugins follow.
But for web application, especially ASP.NET MVC, you need a controller, views and so. Probably these can be included in a dll file using prepared controller factory to handle that, but it would be hard to develop these plugins.
Some inspiration for code (or db) embedded content: Haacked about that
ASP.NET MVC version 2 will support areas, where you can put some parts of the application into different folders within the app. This way you can just upload some files and the app will recognize these new files. Read more there Haacked blog
PS: I found another person here on S.O. asking the same question as me:
Plug-in architecture for ASP.NET MVC It might be useful for someone researching the same topic.