Best practices?!

Topics: General
Mar 16, 2011 at 12:59 PM

Are there any best practices for setting up and running a composite c1 site?! I'm a little bit confused as to what would be the best way to setup, develop and possibly extend a c1 site, including media and content. Is everything developed and configured directly in the production environment or do I set up two environments; a development environment and a production environment, and somehow sync the two?! Or??

Developer
Mar 22, 2011 at 9:24 AM
Edited Mar 22, 2011 at 9:29 AM

Hi lbz,

In short,

your development environment is most likely your production environment - making backups from time to time is a good idea, though :) (please see XML-Based Site Backup package).
But to be on the safe side, you can create your website (see below) in the developemtn environment and once done then deploy it on the production site. In the latter case, you simply make a copy of your updated website and replace the older one with it.

In general:

  1. You can start by selecting where you are going to run C1: http://docs.composite.net/C1/Getting-started/Download.aspx.  My personal choice is WebMatrix as the easiest and qucikest way. (I would recommend adding a link to the latest C1 version (2.1.1) to your WebMatrix - http://bit.ly/C1NightlyWebPI, and then install and run it). However, if you are more on the ASP.NET developement side, you can download and run it from the Visual Studio (http://compositec1.codeplex.com/ > Download).
  2. Once you start your C1 in WebMatrix / on Visual Studio built-in server, the wizard will take you through a few simple steps and will log in to the Adminsitrative console directly.
  3. There you can a) invoke an online help for quick refrence on basic activities or b) visit http://users.composite.net/C1/Getting-Started.aspx and search for what you are intersted in. Those are basics. For more sophisticated tasks, you can browse http://docs.composite.net/
  4. If you miss some functionality, please check the packages http://docs.composite.net/C1/Packages.aspx. They are installed right from the Administrative console (System > packages > Available packages > [specific package] > Package Info > Install )
  5. You can use the package called XML Based Site Backup to make a copy of the XML-based (not SQL-based) website and deploy it wherever you like. If you provider supports publication from WebMatrix, you might need to get a specific configuration file to make it publication from WebMatrix possible. You can also try deploying your existing website on Windows Azure (http://docs.composite.net/C1/WindowsAzure.aspx)

Hope this helps :)

Vitaly

 

Jul 14, 2011 at 5:50 PM

Hi All,

I am begginer in C1. I'm learning StarterSite and OmniCorp examples. But i don't understand some things.

For example, how new template can be added? How corresponding CSS can be added for the template? How images can be added into the template or to the page (not into content)?

Do you have articles or help - how to start without existent examples/templates?

The best will be step-by-step description.

Also i have question about table - can i set number of table columns/rows dynamic?

Thanks!!

Coordinator
Jul 14, 2011 at 7:35 PM

Hello, Olga

Visit http://docs.composite.net where you can read many articles and tutorials on various C1's subjects.

>> For example, how new template can be added? How corresponding CSS can be added for the template? How images can be added into the template or to the page (not into content)?

 Creating-Layout-Templates-in-C1

Editing-Templates

Jul 14, 2011 at 10:27 PM
olga_titova wrote:

Hi All,

I am begginer in C1. I'm learning StarterSite and OmniCorp examples. But i don't understand some things.

For example, how new template can be added? How corresponding CSS can be added for the template? How images can be added into the template or to the page (not into content)?

Do you have articles or help - how to start without existent examples/templates?

The best will be step-by-step description.

Also i have question about table - can i set number of table columns/rows dynamic?

Thanks!!

The basics are that Layouts are like Page Templates. Change the Layout, you change it for all those pages that use that layout. The layouts have placeholders which refer to content on the page. You can change the layout at the top right hand side of the page.

For CSS, you'll live a lot in the System Tab. From there, you can edit most files, like CSS, etc.

A lot of the other things you are talking about will depend on your skill level with HTML, hand-coding, C#, .Net. It's also difficult to answer such a broad question and it's best to spend some time on the Composite site and with the product to see what it can do.

Developer
Jul 15, 2011 at 7:13 AM
atomiton wrote:

For CSS, you'll live a lot in the System Tab. From there, you can edit most files, like CSS, etc.

Just my 5 cents :)

You can make any folder visible in the "System" perspective also visible in the "Layout" perspective - for convenience.

Just right click the folder you need and select the "Show in Layout " option.

Some folders are already set visible in "Layout" - those related to CSS etc