TYPO3 4.3 Multimedia Cookbook

Total Page:16

File Type:pdf, Size:1020Kb

TYPO3 4.3 Multimedia Cookbook TYPO3 4.3 Multimedia Cookbook Over 50 great recipes for effectively managing multimedia content to create an organized website in TYPO3 Dan Osipov BIRMINGHAM - MUMBAI This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 TYPO3 4.3 Multimedia Cookbook Copyright © 2010 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: January 2010 Production Reference: 1210110 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847198-48-8 www.packtpub.com Cover Image by Vinayak Chittar ([email protected]) This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Credits Author Editorial Team Leader Dan Osipov Mithun Sehgal Reviewers Project Team Leader Karsten Dambekalns Lata Basantani Mario Rimann Mathias Schreiber Project Coordinator Poorvi Nair Acquisition Editor Rashmi Phadnis Proofreader Andie Scothern Development Editor Reshma Sundaresan Graphics Technical Editor Nilesh R. Mohite Kavita Iyer Production Coordinator Copy Editor Adline Swetha Jesuthas Ajay Shanker Cover Work Indexer Adline Swetha Jesuthas Hemangini Bari This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 About the Author Dan Osipov has over 12 years of web development, graphic design, as well as system architecture and application development experience. He has worked on various multipurpose sites, including e-commerce, educational, informational, and dynamic news sites. For the last 4 years, he has worked in the media industry, designing and maintaining an online presence for journals and newspapers. At the moment of writing, Dan was employed at Calkins Media, where he worked on using TYPO3 as the CMS system powering high traffic, dynamic news sites, like phillyBrubs. com and Timesonline.com. He is also a member of the Digital Asset Management team, focused on the development of the DAM extension for TYPO3. I would like to thank the Phillyburbs team, as their needs served as an inspiration for a lot of the material in this book. I would like to thank the TYPO3 community at large for "inspiring people to share". Last, but not least, I would like to thank my family for their understanding and support. This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 About the Reviewers Karsten Dambekalns, born in 1977, learned the basics of web technology the hard way – by looking at other websites' HTML source. This happened after having learned BASIC and Assembler on a good old Commodore C128. Karsten discovered PHP in 1999 and and was caught by TYPO3's immense possibilities in 2002. Later, he joined the TYPO3 Association and today is part of the TYPO3 5.0 and FLOW3 development team. In 2000, he founded his own Internet company together with a friend from university, which he left behind in 2008 to become a freelancer working fully on the development of TYPO3. Karsten also speaks at conferences and writes articles about topics around PHP and TYPO3. Karsten mostly lives in Germany with his wife Līga, their three kids, and a nameless Espresso machine. Mario Rimann, born in 1982 in Zürich, Switzerland, started his journey through the IT jungle back in the early 90s. After his primary education as a service technician for office equipment like printers, copy machines, fax machines, and computers, he moved to his first job as a system administrator at a school. After collecting some years of IT and "people-skills", Mario moved onto the European headquarters of a company running a big website in the nightlife business, later he had his own company, and is now again a regular employee. While being employed at the above-mentioned school, he made his first contact with TYPO3. In the beginning, it was mainly a hobby—which evolved to be the main part of his own company. In 2006 and 2007, he organized the first two international TYPO3 Developer Days, which took place in Switzerland. This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Right now, Mario is employed as a project manager and developer at a mid-sized web-agency in central Switzerland that specializes in TYPO3 and Magento. Alongside his job, Mario also helps out in several TYPO3 projects. You can contact him at [email protected]. Mathias Schreiber has been working in the Web industry since 1995, developing websites with database-driven content for several large companies throughout Europe. He has been a part of the TYPO3 community since early 2002. Ever since then, he has been close to the core development and also hosted early developer meetings in 2004. He did more than 100 training sessions in Germany and Switzerland spreading the word about TYPO3 and has trained most of today's successful TYPO3 companies. In 2004, he founded wmdb Systems together with Peter Kühn, Diana Beer, and Bodo Eichstaedt and since then he maintains large TYPO3 projects for many well-known companies from Europe. For two years, he has been part of the 12 so called active members of the TYPO3 Association but resigned from his duties to focus on his company and family. Today, you can find him on almost any TYPO3 event there is—training snowboard- beginners at the TYPO3 Snowboard tours, mentoring bug-fixing sessions on the TYPO3 Developer days, or sharing ideas on the TYPO3 Conference. This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Table of Contents Preface 1 Chapter 1: Getting Started 7 Introduction 8 Setting up a web server on Debian 9 Setting up a multithreaded environment 12 Setting up a web server on Windows 14 Creating a scalable architecture 16 Setting up an NFS share 18 Setting up TYPO3 19 Installing needed extensions 23 Creating a template for a site 25 Chapter 2: Managing Digital Assets 31 Setting up a file structure 31 Setting up a filemount 35 Setting up rights for backend users 36 Setting up FTP access 39 Setting up a category tree 42 Creating a frontend upload form 44 Debugging code 51 Creating frontend user groups 53 Creating frontend users 54 Chapter 3: Operating with Metadata in Media Files 57 Inserting metadata into images 58 Extracting metadata from images 59 Inserting metadata into audio 64 This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Table of Contents Extracting metadata from audio 65 Extracting metadata from PDF 66 Chapter 4: Rendering Images 69 Rendering images using content elements 70 Embedding images in RTE 72 Rendering images using TypoScript 78 Rendering links to files using <media> tags 79 Creating a gallery using ce_gallery 83 Rendering metadata from a DAM object 87 Chapter 5: Rendering Video and Audio 89 Rendering video using media content object 89 Rendering audio using media content object 93 Rendering audio and video using media TypoScript object 94 Rendering audio and video using content elements and rgmediaimages extension 96 Extending the media content object for more rendering options 101 Using custom media player to play video 106 Connecting to Flash Media Server to play video 113 Chapter 6: Connecting to External APIs 117 Introduction 117 Getting files from Amazon S3 118 Uploading files to S3 121 Creating a bucket in S3 123 Uploading DAM files to S3 125 Getting recent Flickr photos 128 Uploading files to Flickr 130 Uploading DAM files to Flickr 132 Reading list of movies from YouTube API 137 Authenticating requests to YouTube API 140 Showing video list with frontend plugin 141 Chapter 7: Creating Services 149 Extracting metadata from OpenOffice documents 149 Processing audio using a service 156 Converting a video to FLV upon import 162 Converting audio using services 165 Building an audioConversion service 180 ii This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Table of Contents Chapter 8: Automating Processes 185 Adding FTP access to the media repository 185 Indexing downloaded files 194 Setting up indexing rules 197 Categorizing files by geolocation 204 Index 207 iii This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 This material is copyright and is licensed for the sole use by jackie tracey on 23rd February 2010 953 Quincy Drive, , Brick, , 08724 Preface TYPO3 is one of the world's leading open source content management systems, written in PHP, which can be used to create and customize your website.
Recommended publications
  • Debuggage D'applications PHP Avec Xdebug Introduction Dans Le Cadre De Cet Article Nous Nous Intérresserons Uniquement À Xdebug
    Debuggage d'applications PHP avec XDebug Introduction Dans le cadre de cet article nous nous intérresserons uniquement à Xdebug. Tout développement informatique a minima conséquent, comporte une phase de débuggage et, ou d'optimisation. Et Présentation même si l'on utilise des méthodes permettant de limiter au maximum les phases de débuggage en 'aval', via par Xdebug est une extension dynamique pour php, exemple des efforts de réutilisation, de tests unitaires et de développée par Derick Rethans. La dernière version relectures, l'on peut tout à fait se retrouver dans la situation, stable de Xdebug, au moment de la rédaction de cet où l'on doit intégrer du code développé par des tiers. article est la 0.9.0. La version 1.0 étant encore au stade de la RC1 : La plupart des autres languages orientées ou non Web, disposent à partir d'un certains niveau de maturité d'une http://www.jdimedia.nl/derick/xdebug.php pléthore d'outils ou d'IDE permettant d'assister les Le site officiel d' Xdebug développeurs dans ces phases de développement. Installation sous Linux Dès lors, il peut devenir intérréssant de se poser la question légitime : "quid des outils de débuggage avec php ?". La procédure décrite sur le site fonctionne correctement, à savoir : Jusqu'à récemment le seul outil de ce type se nommait Dbg : • Copier le .so dans le répertoire d'extension de http://dd.cron.ru/dbg/ php. Le site officiel de Dbg • Rajouter la ligne suivante dans le php.ini : zend_extension="{votre path d'extension php}/xdebug.so" • Relancer votre serveur Web si votre version de Il est notamment utilisés par des IDE tel PhpEdit ou PhpEd.
    [Show full text]
  • Linuxvilág Fejlesztõi Sarok
    Fejlesztõi sarok PHP nyomkövetõk (3. rész) Sorozatunk elõzõ részeiben áttekintést adtunk a Linux alatt elérhetõ PHP nyom- követõkrõl. Szó esett a PHP nyomkövetés általános meggondolásairól, valamint beszéltünk a Gubed/Quanta nyílt forrású programok mûködésérõl, beállításáról. Most a Nusphere::PhpED fejlesztõkörnyezetrõl és nyomkövetõrõl lesz szó. Miért éppen a PhpED? fájljaink. Semmi elõzményünk A webszerver újraindítása után Ebben a részben kivételt tennék nincs semmilyen fejlesztõkörnye- (sajnos rendszergazdaként lehet csak annyiban, hogy a PhpED program zetben, csak nyomkövetni akarunk, ilyet mûvelni, vagy – egy jól beállított több platformra is létezõ implementá- de még tegnap, ha lehet. Ekkor rendszeren – az erre kiválasztottak ezt ciói közül nem a Linuxos, hanem hogyan érdemes elkezdeni a munkát sudo-val is megtehetik) érdemes kiad- a Microsoft Windows-ra írt változatot a PhpED-del? ni egy php -m parancsot, ami a szer- venném górcsõ alá. Ennek verziószá- vermodulokat mutatja. A lista végén ma jóval elõrébb tart Linuxos társánál. A webszerver okosítása látszania kell a nyomkövetõ protokol- Nehezen érthetõ számomra, hogy Elõször is a webszerverben futó PHP- lért felelõs modulnak: a DBG szerzõje és a NuSphere vezetõ- értelmezõ verziószámával egyezõ je, Dmitri Dmitrienko miért intézi ezt számú dbg__.so-fájl másolandó fel [Zend Modules] így. Azonban népszerûsége és hasz- a PhpED kliens oldali könyvtárából DBG nálhatósága miatt nem hagyhatjuk a szerver extension_dir könyvtárába a PhpED-et figyelmen kívül. E sorok (aminek tényleges mivoltát pl. egy A PhpED beállítása nyomdába kerülésekor talán már phpinfo()-ból, vagy magából a php.ini- Abban az esetben, ha tényleg szinte a linuxos változat is eléri azt a 4.5-ös bõl tudhatunk meg). A PHP-értelmezõ semmit nem akarunk, csak hibát ke- verziószámot, ami alapján e sorok verziószámát a php -v parancs is resni, akkor is meg kell néhány infor- © Kiskapu Kft.
    [Show full text]
  • Develop Object Based Debugging Tool Technique for Improving the Performance of Object Oriented Softwares
    International Journal of Computer Science Engineering and Information Technology Research (IJCSEITR) ISSN (P): 2249-6831; ISSN(E): 85-92 Vol. 3, Issue 5, Dec 2013, 223-232 © TJPRC Pvt. Ltd. DEVELOP OBJECT BASED DEBUGGING TOOL TECHNIQUE FOR IMPROVING THE PERFORMANCE OF OBJECT ORIENTED SOFTWARES D. M. THAKORE1 & TANVEER S BEG2 1Professor, Bharati Vidyapeeth Deemed University College of Engineering, BVDUCOE, Pune, Maharashtra, India 2Reaserch Scholar, Computer Student, Bharati Vidyapeeth Deemed University College of Engineering, BVDUCOE, Pune, Maharashtra, India ABSTRACT Various functionalities and debugging techniques during software development may end with some blunder mistakes in later stages of software development, due to which intended and projected functionality of the software is difficult to achieve. In the process of Software Development and evolution, Developer has to answer multiple questions about how the code or software behaves at runtime. The traditional or classical debugger while debugging gives developer bunch of breakpoints in the source code. This is an vague and not consistent stage which is difficult to be used by the developer for development. Some of debugging tools are helpful for understanding the problems, as acknowledged from conventional tools that the difficulty of object oriented system expands, debugging becomes by a long way difficult. Developer needs a devoted user interface for such type of these operations related to objects and other; this need is pleased by facilitating a user interface for the programmer. Object based debugging tool looks ahead to analyse the relationship in between the objects at some point in the runtime. There exists therefore conceptual space between the interface offered by the debugger and the need of the developer, hence to beat this drawback or problem; there is a need for object based debugger and useful interface for it.
    [Show full text]
  • Phpeclipse: a User Guide
    PHPEclipse: A User Guide Shu-Wai Chow BIRMINGHAM - MUMBAI PHPEclipse: A User Guide Copyright © 2006 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: January 2006 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 1-904811-44-2 www.packtpub.com Cover Design by www.visionwt.com Credits Author Development Editor Shu-Wai Chow Douglas Paterson Reviewer Indexer Thomas M. Ose Ashutosh Pande Technical Editor Proofreader Nikhil Bangera Chris Smith Editorial Manager Production Coordinator Dipali Chittar Manjiri Nadkarni Cover Designer Helen Wood About the Author Shu-Wai Chow has worked in the field of computer programming and information technology for the past eight years. He started his career in Sacramento, California, spending four years as the webmaster for Educaid, a First Union company and another four years at Vision Service Plan as an application developer.
    [Show full text]
  • STM32 Microcontroller Debug Toolbox
    AN4989 Application note STM32 microcontroller debug toolbox Introduction STM32 end-users are sometimes confronted with non- or partially-functional systems during product development. The best approach to use for the debug process is not always obvious, particularly for inexperienced users. To address the above concerns, this application note provides a toolbox describing the most common debug techniques and their application to popular recommended IDEs for STM32 32-bit Arm® Cortex® MCUs. It contains detailed information for getting started as well as hints and tips to make the best use of STM32 Software Development Tools in STM32 ecosystem. This application note applies to the microcontrollers listed in Table 1. Table 1. Applicable products Type Sub class STM32 High Performance MCUs Microcontrollers STM32 Mainstream MCUs STM32 Ultra Low Power MCUs January 2021 AN4989 Rev 3 1/118 www.st.com 1 Contents AN4989 Contents 1 Foreword . 8 1.1 General information . 8 1.2 Software versions . 8 1.3 Acronyms . 8 2 STM32 ecosystem outlines . 9 2.1 Hardware development tools . 9 2.1.1 Hardware kits . 9 2.1.2 ST-LINK probe . 16 2.1.3 Alternative debugger probes . 19 2.2 Software development tools . 20 2.2.1 STM32CubeMX . 21 2.2.2 STM32CubeIDE . 22 2.2.3 Partner IDEs . 24 2.2.4 STM32CubeProgrammer . 25 2.2.5 STM32CubeMonitor . 27 2.3 Embedded software . 28 2.4 Information and sharing . 29 2.4.1 Documentation . 30 2.4.2 Wiki platform . 31 2.4.3 Github . 31 2.4.4 ST Community . 31 2.4.5 STM32 Education .
    [Show full text]
  • IAR Embedded Workbench®
    IAR Embedded Workbench® IDE Project Management and Building Guide UIDEEW-6 COPYRIGHT NOTICE © 1996–2013 IAR Systems AB. No part of this document may be reproduced without the prior written consent of IAR Systems AB. The software described in this document is furnished under a license and may only be used or copied in accordance with the terms of such a license. DISCLAIMER The information in this document is subject to change without notice and does not represent a commitment on any part of IAR Systems. While the information contained herein is assumed to be accurate, IAR Systems assumes no responsibility for any errors or omissions. In no event shall IAR Systems, its employees, its contractors, or the authors of this document be liable for special, direct, indirect, or consequential damage, losses, costs, charges, claims, demands, claim for lost profits, fees, or expenses of any nature or kind. TRADEMARKS IAR Systems, IAR Embedded Workbench, C-SPY, visualSTATE, The Code to Success, IAR KickStart Kit, I-jet, I-scope, IAR, and the logotype of IAR Systems are trademarks or registered trademarks owned by IAR Systems AB. Microsoft and Windows are registered trademarks of Microsoft Corporation. Adobe and Acrobat Reader are registered trademarks of Adobe Systems Incorporated. All other product names are trademarks or registered trademarks of their respective owners. EDITION NOTICE Sixth edition: September 2013 Part number: UIDEEW-6 Internal reference: M12, Too6.6.2, ISUD. 2 IDE Project Management and Building Guide AFE1_AFE2-1:1 Brief contents Tables ...................................................................................................................... 11 Preface .................................................................................................................... 13 Part 1. Project management and building ............ 21 The development environment ................................................................
    [Show full text]
  • An Efficient Debugging Tool for Object Oriented System
    International Journal of Computer Science Engineering and Information Technology Research (IJCSEITR) ISSN(P): 2249-6831; ISSN(E): 2249-7943 Vol. 3, Issue 5, Dec 2013, 1-10 © TJPRC Pvt. Ltd. AN EFFICIENT DEBUGGING TOOL FOR OBJECT ORIENTED SYSTEM D. M. THAKORE1& TANVEER S BEG2 1Guide, Bharati Vidyapeeth Deemed University College of Engineering, Pune, Maharashtra, India 2Research Scholar, Bharati Vidyapeeth Deemed University College of Engineering, Pune, Maharashtra, India ABSTRACT Inappropriate debugging techniques during software development may leads to some blunder mistakes in later stages of software development, due to which intended and projected functionality of the software is difficult to achieve. In the process of Software Development and evolution, Developer has to answer multiple questions about how the code or software behaves at runtime. The traditional or classical debugger while debugging gives developer bunch of breakpoints in the source code. This is an imprecise and inconsistent stage which is difficult to be used by the developer for development. Some of debugging tools are helpful for understanding the problems, as stated from traditional tools that the complexity of object oriented system expands, debugging becomes considerably difficult. Developer needs a dedicated user interface for these operations on objects; this need is fulfilled by facilitating a user interface for the programmer. Object based debugging tool looks forward to analyze the relationship in between the objects during the runtime. There exists therefore conceptual gap between the interface offered by the debugger and the need of the developer, hence to overcome this drawback or problem; there is a need for object based debugger and useful interface for it.
    [Show full text]