Meridium EPiServer Premium Partner EPiMore Partner EPiServer is a major focus area Founded in 2002 19 employees 2.

Slides:



Advertisements
Similar presentations
Business Development Suit Presented by Thomas Mathews.
Advertisements

Using SD K12 SharePoint®.
July 2010 D2.1 Upgrading strategy Javier Soto Catalog Release 3. Communities.
Accessing and Using the e-Book Collection from EBSCOhost ® When an arrow appears, click to proceed to the next slide at your own pace. To go back, click.
Case Study Lecture 4 UML Huma Ayub Department of Software Engineering
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
VBA Modules, Functions, Variables, and Constants
Resource Discovery Module DigiTool Version 3.0. Resource Discovery 2 Deposit Approval Search & Index Dispatcher & Viewers Single & Bulk Web Services DigiTool.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Getting an account with WordPress.com Open your web browser ( mozilla firefox, internet explorer, opera, etc.,)
Migrating to EPiServer CMS 5 Johan Björnfot -
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
The Dr ü G Book: An Intro to Drupal The Dr ü G Book: An Intro to Drupal (Dr ü G: Drupal User ’ s Group - users, not developers) This is an introduction.
Agenda Overview 2.What is SharePoint? 3.NCDOT Websites 4.Roles 5.Search 6.SharePoint Interface.
With Internet Explorer 9 Getting Started© 2013 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring the World Wide Web with Internet Explorer.
With Windows 7 Comprehensive© 2012 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Windows 7 Comprehensive.
Microsoft ® Word Templates and Accessibility. 1 What is a Word template? File with a.dot (document template) extension Can define the following:  Paragraph.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
‘ {] Chapter 2 (HW01) Getting Started with Windows 7.
Training Course 2 User Module Training Course 3 Data Administration Module Session 1 Orientation Session 2 User Interface Session 3 Database Administration.
Categorization, views, search and retrieval Becky Bertram Covenant Technology Partners.
‘ {] PowerPoint Presentation to Accompany GO! with Windows 7 Getting Started Chapter 2 Getting Started with Windows 7.
Using SD K12 SharePoint ®. What is SharePoint? Microsoft SharePoint Components Web Browser Collaboration functions Process management modules Search modules.
CSC350: Learning Management Systems COMSATS Institute of Information Technology (Virtual Campus)
1. On Your Desktop, Click “Start” 2. Click “All Programs” 3. Click “Microsoft Office Tools” 4. Click “Microsoft Photo Editor” Posting Pictures on Your.
BIM211 – Visual Programming Objects, Collections, and Events 1.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
1.Getting Started 2.Modifying Design 3.Page 4.News 5.Events 6.Photo Gallery 7.Newsletter Index Training 15 th Mar., 2011.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Working with GridView Control: Adding Columns. Adding Buttons to a Bound GridView: 1. Drag the WebProduct table from Data connection to a page 2. Demo.
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 3 Advanced File Management and Advanced.
Dynamic Dropdown Lists 1. Objectives You will be able to Use Dropdown Lists to solicit multiple choice user input in an ASPX web page. Populate a Dropdown.
1 Project 7: Northwind Traders Order Entry. 2 Northwind Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
My Workspace ELearning in Sakai Randy Graff, PhD HSC Training.
CMA Workshop Image Links and Text Links on the Same Line in a Component.
Topic 1 Object Oriented Programming. 1-2 Objectives To review the concepts and terminology of object-oriented programming To discuss some features of.
XRX Basic CRUDS Create, Read, Update and Delete and Search XML Data Date: May 2011 Dan McCreary President Dan McCreary & Associates
Chapter 10 Defining Classes. The Internal Structure of Classes and Objects Object – collection of data and operations, in which the data can be accessed.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
CD Web XMS Training How to use the Xeno Media web site content management system.
12/14/20151 Uniquescriptz Backend Support Document Ver 2.0.
January 2006Colby College ITS Setting Up Course Pages.
Getting Started. Package Overview (GradeQuick)‏ Web-based grade book –Access Anywhere –Always Current Paper grade book “look and feel” Flexible grading.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Users are moving towards web applications Content on the web is more personal & meaningful Development on the web is easier than the OS.
1 Start Login to eHoop “Login” Page “Course Categories” Page “Manage Students” Page “Teachers’ profiles” Page “Courses & Lessons” Page “Quizzes” Page Menu.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Developer Exam Preparation Thom Robbins Bryan Soltis
MVCC WEB CMS Updates Everything you should know about managing your department content! Spring 2015.
General Architecture of Retrieval Systems 1Adrienn Skrop.
Quality Education for a Healthier Scotland New Features of the Clinical Knowledge Publisher May 2016.
What module are you interested in? New Features newsWorks 6.4 Standalone CCS | January 2016 newsClipnewsClip web newsCorr newsPress Start.
TechKnowlogy Conference August 2, 2011 Using GoogleDocs for Collaboration.
Internet Made Easy! Make sure all your information is always up to date and instantly available to all your clients.
Unit 7 Learning Objectives
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Presentation transcript:

Meridium EPiServer Premium Partner EPiMore Partner EPiServer is a major focus area Founded in employees 2

ImageVault - History EPiServer’s first module Announced to partners in april 2003 Version 2.0 in Januari 2004 Version 3.0 in November 2007 Today over 200 installations 3

URL’s & the ImageHandler /ImageVault/Images/width_350/conversionFormatType_Jpeg/id_8/compressionQuality_0/ImageVaultHandler.aspx Every item in ImageVault is reached through a HTTPHandler The Url makes up a ”virtual” path to the item All information about the item, the format, etc. is included in the path 4

Internal structure All files a stored below the ”ImagePathOriginal”, set in web.config – The default is below /ImageStoreNET/Data/ImageDB Converted images are saved in corresponding folders below the ConversionFormats-folder All information ABOUT items is saved in the Database 5

Album Albums will help you organize your files in ImageVault. Settings like metadata, conversion formats and access rights is set on each album. Special albums: ”My files”, ”Uploaded files”, ”Archived files” and ”Favorites” 6

Rights for album Rights is set using the same users and groups used in EPiServer. Administer, Use, Move, Change, Delete, View Special albums have different rights required for some actions, e.g. uploading files. 7

Conversion formats Conversion formats is predifined templates used by ImageVault to automatically create copies of the original image. Helps the user selecting the right size and format for an image. 8

Metadata Metadata is information about about item – There are 5 different types of metadata Text – A text entered by the user when uploading/editing items Date – A date entered by the user Date Added – The date that the item was added to ImageVault Archived before date – A date entered by the user. Before this date occurs, the item is not visible in ImageVault Archived after date – A date entered by the user. After this date, the item is no longer visible in ImageVault – Can store a maximum of 500 characters – Are create for the entire system, but bound to each album separately – Can be made mandatory for the system or an individual album – Can also be mapped to IPTC/EXIF-keys 9

Categories Categories exists to make finding files easier. 10

Language support It’s possible to define your own translations for metadata, categories and conversion formats. Use the files ImageVaultConversionFormatsEN.xml, ImageVaultCategoriesEN.xml, and ImageVaultAlbumsEN.xml Maps the ID’s to the translated name 11

API SDK, reference documentation describing the classes available in the API API, exposing public classes to the developer which could be used to extend or use the functionality and files in ImageVault Demo templates, examples of what can be done 12

API continued 13 ImageStoreNET.Developer.WebControls ImageStoreNET.Developer.Security ImageStoreNET.Developer.Filters ImageStoreNET.Developer.Core ImageStoreNET.Developer ImageStoreNET ImageStoreNET.CMS ImageStoreNET.CMS.Data

Dll’s ImageVault.Episerver5.dll All classes and properties available to the developer Register TagPrefix="ImageVault" Namespace="ImageStoreNET.Developer.WebControls" Assembly="ImageVault.Episerver5" %> ImageStoreNET.dll Contains user and event objects used internally and by the API 14

ImageStoreNET.Developer Contains the important classes – IVUrlBuilder – IVDataFactory 15

IVDatafactory Methods used to create/modify/delete/search files and albums Events to affect files/albums before/when/after they are created/modified/updated 16

IVUrlBuilder Utility-class to parse/create Url’s to items in ImageVault IVUrlBuilder ub = new IVUrlBuilder(); ub.Width = 100; ub.Height = 100; ub.PreserveAspectRatio = true; ub.CompressionQuality = 90; foreach( IVFileData file in fileDataCollection ) { if( file.IsImage ) { ub.Id = file.Id; pnlImages.Text += " "; } string someURL = " + ”conversionFormatType_Jpeg/id_8/compressionQuality_0/ImageVaultHandler.aspx"; IVUrlBuilder ub = IVUrlBuilder.ParseUrl( someURL ); 17

ImageStoreNET.Developer.Core Contains classes that maps against the entities in ImageVault, and utility classes to support them. Album – IVAlbumData Category – IVCategory Conversion format – IVConversionFormat File or image – IVFileData Meta data - IVMetaData 18

Datamodel IVFileData Album ConversionFormats MetaData Categories 19

ImageStoreNET.Developer.Filters Contains filters and events to affect listings of files and albums – I.e. sortings, steppings, count, search conditions etc. 20

ImageStoreNET.Developer.Security Contains the IVAccessLevel-enumeration – Used in operations that requires authentication to bypass/enforce permission checks 21

ImageStoreNET.Developer.WebControls Contains controls and EPiServer-properties to choose and display items on pages in EPiServer 22

IVAlbumTree Used to show an albumtree. "> Don’t forget AlbumTreeControl.DataBind() in Page_Load. 23

IVCategoryList Webcontrol to display the categories in a collection of categories, or the categories of a file – Usually used in combination with a IVFileList

IVConversionFormatList … " onclick="window.open(' ');return false"> … Used to display a list of conversion formats Often used when listing contents from an album 25

IVFileList Webcontrol to display a list of files – Can be used to display the results a of a search, the contents of an album etc. " ImageWidth="350" ImageFormat="jpg" /> 26

IVImage Used to show an image with a specified size and format 27

IVMetaDataList Webcontrol to display the metadata in a collection of metadata, or the metadata of a file – Usually used in combination with a IVFileList : 28

EPiServer properties PropertyImageVaultAlbum PropertyImageVaultComplexMedia PropertyImageVaultFile PropertyImageVaultFileList PropertyImageVaultURL ImageVaultImage, aka ImageType PropertyImageList 29

IVUrlBuilder ub = IVUrlBuilder.ParseUrl(CurrentPage[“ImageVaultImage"].ToString()); ub.Width = 200; theImage.Src = ub.ToString(); ImageVaultImage (ImageType) Property used to display a single image Friendly user interface where the editor can choose an image and enter the desired alt-text Use an EPiServer:Property to display or IVUrlBuilder in CodeBehind. Note! In the second case the image-tag would not include the alt-text. 30

ImageVaultImage, IVImage, and IVFile Use ImageVaultImage when you want to show a image using the Use IVImage when you need to data bind to a list like IVFileList Use IVFile if you want to create the url to the image in code behind, using IVUrlBuilder. 31

Metadata, getting and setting IVMetaData Accessed through – IVDataFactory.GetAllMetaData() – IVAlbum.MetaData – IVFileData.MetaData Use [”MetaDataName”] to get a specific metadata from a collection Set the metadata for a file with IVDataFactory.UpdateFile(...) 32

Categories – getting and setting IVCategory Accessed through – IVDataFactory.GetAllCategories() – IVFileData.Categories Set the categories for a file with IVDataFactory.UpdateFile(...) // Add category with ID = 2 to the file IVCategoryCollection imageCategories = new IVCategoryCollection(); imageCategories.Add(new IVCategory(2)); IVDataFactory.UpdateFile(imageId, AlbumId, null, imageCategories, IVDataFactory.CurrentUser); 33

Uploading files to ImageVault Can be done with two types of files – System.IO.FileInfo For files located on disk – System.Web.HttpPostedFile For files uploaded through a web-form Uploaded files will always be saved to the UploadAlbum if (IsPostBack) { HttpPostedFile file = filePicker.PostedFile; int imageId = IVDataFactory.UploadFile(IVDataFactory.CurrentUser, file); if (imageId != 0) { // Move the file to a album …… IVDataFactory.UpdateFile(imageId, AlbumId, MetaData, Categories, IVDataFactory.CurrentUser); } 34

Events Available events are located in IVDataFactory Events to affect files/albums before/when/after they are created/modified/updated Should be used with extreme caution!!! private void InitializeComponent() { IVDataFactory.BeforeAddFileEvent += new IVDataEventHandler( IVDataFactory_BeforeAddFileEvent )... } void IVDataFactory_BeforeAddFileEvent( object source, IVDataEventArgs e ) { if( e.File.Length > 10 ) { e.Cancel = true; e.CancelReason = "To big!!!"; } 35

Exercise - installation Download and install the demo-templates Open and compile the project 36

Exercise - ImageVaultImage Use the ImageVaultImage property and the -tag to show a picture on a page. Max width should be 200px. Do the same in code behind using the IVUrlBuilder class. Hint, you could use a -tag with runat=”server” to show the picture in code in front. 37

Exercise – Meta data Get the ”Title” metadata for a IVFileData object Hint: Use [] and the meta data name on the IVMetaDataCollection object Search for files where ”Title” = ”test” Hint: Use the metod FindFilesWithCriteria in IVDataFactory 38

Exercise - Upload Make a simple upload page. Hint: Use to select the file. Extra excercise: Move the file to an album. Make sure metadata and categories is set correctly. 39

Exercise - Events Use events to prevent a file from being moved once it has been placed in an album. Hint: Use [PagePlugIn()] and public static void Initialize(int optionFlag) on a class to hook on to the events Hint: The events i accessed thru IVDataFactory 40

If we have time over… Complex media More examples 41

More info Demo User: productdemo Pass: productdemo 42

Solution - ImageVaultImage [Code in front] [Code in front] [Code behind] protected void Page_Load(object sender, EventArgs e) { IVUrlBuilder ub = IVUrlBuilder.ParseUrl(CurrentPage["IVImage"].ToString()); ub.Width = 200; Img1.Src = ub.ToString(); } 43

Solution - Meta data [Code behind] IVFileData file = IVDataFactory.GetFile(ub.Id); string title = file.MetaData["Title"].Value; [Code behind] IVMetaDataCollection mdc = new IVMetaDataCollection(); IVMetaData md = new IVMetaData (1, "test" ); mdc.Add(md); IVFileDataCollection files = IVDataFactory. FindFilesWithCriteria( IVDataFactory.RootAlbumId, "", null, IVSearchConditions. And, mdc, true ); 44

Solution - Events [PagePlugIn()] public class MoveFileEventHandler { public static void Initialize(int optionFlag) { IVDataFactory.BeforeUpdateFileEvent += new IVDataEventHandler(IVDataFactory_BeforeUpdateFileEvent); } static void IVDataFactory_BeforeUpdateFileEvent(object source, ImageStoreNET.CMS.Data.IVDataEventArgs e) { IVFileData file = IVDataFactory.GetFile(e.ID, IVAccessLevel.IgnoreAccess); // If currently in upload, or the album is the same if (file.AlbumId == IVDataFactory.UploadAlbumID || file.AlbumId == e.TargetID) { return; } e.Cancel = true; e.CancelReason = "This is not allowed!"; return; } 45

Solution - Upload [Code in front] [Code behind] protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { HttpPostedFile file = filePicker.PostedFile; int imageId = IVDataFactory.UploadFile(IVDataFactory.CurrentUser, file); if (imageId != 0) { // Move the file to album 1, adding a category and a metadata IVMetaDataCollection imageMetaData = new IVMetaDataCollection(); imageMetaData.Add(new IVMetaData(1, "UploadedTest")); IVCategoryCollection imageCategories = new IVCategoryCollection(); imageCategories.Add(new IVCategory(2)); IVDataFactory.UpdateFile(imageId, 1, imageMetaData, imageCategories, IVDataFactory.CurrentUser); } return; } 46