Reputation: 13
I am working on a website which requires a functionality to import an excel spreadsheet. The admin of this website requires us to have a custom designed page in composite for him to simply select a excel sheet and upload.
Is there a way to build a custom page in c# and merge or add into composite ?
P.S - they are using composite version 2.1.1
Upvotes: 1
Views: 652
Reputation: 1564
On http://docs.composite.net/Data/Adding-pages-with-Csharp there is a guide on adding pages to Composite C1 using C#.
But I suggest you handle this situation (dynamic content from an outside source, here an Excel sheet) using a C1 Function instead of generating a new page. Create the page like you normally would, but host a C1 Function on that page. Let this C1 Function generate what ever dynamic content is needed.
You can create C1 Functions using a wide variety of languages (ASP.NET UserControls, Razor, MVC, XSLT, raw C# that output html). Select the technology you are most comfortable with.
Relevant links:
Upvotes: 2