Building Websites with Joomla! 1.5 phần 7 ppt

37 304 0
Building Websites with Joomla! 1.5 phần 7 ppt

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Chapter 12 [ 207 ] You wind up in the edit screen: More on Extensions [ 208 ] Dene the title and the alias for the menu link. You can also activate a particular category of documents directly. Just enter the category ID in the parameters. You will nd this ID in the category section of DOCman's administration. If you click the Save icon now and reload your website, you will see a professional-looking download directory: If someone clicks the Download button now, the license for this download is displayed. The user has to conrm agreement with it and then the download starts. Preparing Content You can set up new les and descriptions for downloading from the administration area or from the front end. For example, if you log in as admin user on your website, you will see an icon and a Submit File link in the top area. It takes three steps to upload documents. Chapter 12 [ 209 ] In the rst step you dene where the document is coming from: from your own PC, from another server, or should it "merely" be a link to an existing document? Next Upload a le your computer is selected and the zip-le of the component is uploaded. More on Extensions [ 210 ] After the successful upload, we are in Step 3, and we have to select a Description, the Permissions, the Category, and the License. By clicking the checkmark in the top area, the new download is saved and immediately published if you are signed in as admin. The admin user also sees a lot more buttons than the normal user. Normally the document would have to be explicitly approved in the administration area. Search Plug-in You have to install an additional plug-in for the documents to be included in Joomla!'s internal search function. Use the Extensions | Install/Uninstall installer again. Download the bot_docman_search_ 1.4.0rc1.zip le and install it with the installer. You will now nd the DOCman search plug-in under Plugins Manager, and you still have to activate it. If you now use the normal website search eld to search for the newly added document, it will appear in the hits list with its category. Supplementary Module If you are offering a lot of downloads, you may want to display the most often downloaded documents on your website. You need a module for this. Let's install a module that displays the most often downloaded documents. Use the installer to install the mod_docman_mostdown_1.4.0rc1.zip le and activate it under Extension Modules. The module is positioned on the left by default. You can position it wherever you want with the Edit function and you can, of course, also change its title. In the parameters you can also dene the number of items and whether the icon and the number should be displayed. Chapter 12 [ 211 ] Exposé Flash Gallery Image galleries and video uploads are becoming more and more popular in today's Web 2.0 world. Applications such as Flickr's photo platform (http://www.flickr. com/) and YouTube's video platform (http://www.youtube.com/) make it easier for an individual to publish multimedia content in today's increasingly broad-banded Internet. The expectations of design are also getting higher and higher. A simple listing of photographs is now considered to be a bit outmoded. Exposé is one of the Adobe Flash-format-based galleries for pictures, graphics, and videos and it is visually outstanding. Exposé can: Create as many picture albums as you want Compress images during the upload to different image sizes Create thumbnails for the albums Play videos with the Flash Player in a compressed format Add audio commentary to the individual images A version of Exposé that can be installed on your PC allows you to assemble pictures on your own computer. Due to the compact Flash format, the pictures can also be viewed without a broadband connection. The Album Manager, which administers the data in the administration section, makes a few demands on the PHP interpreter; GD, DOMXML, and the iconv extension have to be installed. These preconditions were taken care of by the server in our local XAMPP lite environment. It is possible that your web space provider doesn't offer these PHP features, but there is a solution for that as well (see Album Manager in the Administration Section). When it comes to the front end, the visitor must have at least Flash Player version 8 available in his or her internet browser. This is now installed in 96% of all browsers. • • • • • More on Extensions [ 212 ] Installation To install the Exposé gallery, download the com_expose_4.6.2.zip package from http://joomlacode.org/gf/project/expose/frs/ ?action=FrsReleaseBrowse&frs_package_id=2985. Click on the Browse button in the installation template, select the le, and click on Upload & Install File. The Joomla! installer uploads the les, deals with the menu items, and displays a success message as shown in the following screenshot. Read this message carefully and remember the password! Chapter 12 [ 213 ] At the time of printing of this book, the gallery had incompatibility problems with Joomla!'s Legacy plug-in. This is peculiar, since Joomla! "merely" uses the gallery as a container and it runs independently. There is a workaround (http://www.gotgtek.net/forum/index. php?topic=1345.0) in the gallery's developers' forum. By the time you have this book in your hands there will probably be a customized installation package available for it. If not, you have to insert these SQL commands manually into your database: INSERT INTO 'jos_components' ('id', 'name', 'link', menuid', 'parent', 'admin_menu_link', admin_menu_ alt', 'option', 'ordering', 'admin_menu_img', 'iscore', 'params') VALUES (51, 'Expose', 'option=com_ expose', 0, 0, '', 'Expose', 'com_expose', 0, ' / administrator/componenets/com_epose/expose_icon.png', 0, ''), (52, 'Manage Albums', '', 0, 51, 'option=com_ expose&task=manage', 'Manage Albums', 'com_expose', 0, ' /administrator/components/com_expose/manage.png', 0, ''), (53, 'Configuration', '', 0, 51, 'option=com_ expose&task=config', 'Configuration', 'com_expose', 1, ' /administrator/components/com_expose/config. png', 0, ''), (54, 'Manual", '', 0, 51, 'option=com_ expose&task=manual', 'Manual', 'com_expose', 2, ' / administrator/components/com_expose/docs.png', 0, ''); Subsequently you will have to unzip the le package and copy the les it contains into the appropriate directories as shown in the following gures. You can get the information of what goes where from the expose.xml le. The les in /components/com_expose are shown in the following screenshot: More on Extensions [ 214 ] The les in /administrator/com_expose are shown in the following screenshot: If the previously described installation of the gallery scares you, keep an eye on the aforementioned forum thread and wait until the developer has a solution. Integration into the Website The component is now installed with sample data and still needs to get a menu link in the front end. Let us put it into the Joomla! 1.5 Book menu. Click on Menus | Joomla! 1.5 Book and then on the New icon. Now create a menu link as described in Chapter 7 in the Creating a New Menu section. If you go to your website now, you will see the Gallery link in the Joomla! 1.5 Book menu. When you click on this link you will see two example folders: one called Collection, which contains additional albums, and the other called Videos. If there is an arrow beside the thumbnail picture, it contains additional albums, if there is a number there, the number refers to the number of media les contained in it. If you click on Sample Collection, the albums that are contained in it appear. Chapter 12 [ 215 ] If you click on Sample Album, you are taken to the so-called Image Strip. This strip can be moved manually with the mouse buttons. The image in the middle is magnied. Navigation triangles can be seen on the right and on the left of the Image Strip. You can also move the image strip by clicking on these. If you click on the picture, you get an individual view: More on Extensions [ 216 ] There you can: Scroll forward and backward within the pictures Call up an automatic slide show Go back to the Image Strip Go back to the albums Click on the magnier and see the image in its original size Get an indiction which album contains the images Call up a help screen that explains the symbols Videos Go back to the albums and request the Video View. You can see an Image Strip here as well with a preview picture of the video. If you click the picture, you get an individual view of the video. Here you can: Navigate through the video Turn the sound on and off by clicking on the loudspeaker sumbol and adjust the volume of the sound with the slider Album Manager in the Administration Section To load your own pictures and videos into the gallery, go to the Administration section and go to the Components | Extensions menu. You will see a login screen asking you for a password. The default password is manager. You can (and you should) change the password by clicking on the Change Password button. If you make a mark in the checkbox, the password is stored and you won't have to enter it again. • • • • • • • • • [...]... login procedures With Joomla! 1.5, a lot of these features can now be integrated more elegantly and all of the third-party teams have already been working on the integration of their components since the beginning of 20 07 Problems with Third-Party Components Update problems become more of an issue as the popularity of Joomla! grows Updates This past year, a new improved version of Joomla! was released... middle) separately without tables However, Joomla! has a solution for this as well Template Overrides (Customize HTML Output without Changing the Core Files) In order to get grip on the problem of table display, you would normally have to change the Joomla! core files Your content would then be free of tables, but the file could possibly be overwritten with the next update From Joomla! 1.5. 0 on there are... combination of tags with CSS commands was specifically developed for the purpose of being formatted with CSS commands Until 2004, it was common practice to define website structures with generous employment of HTML tables With CSS and the HTML element becoming more and more popular and with browsers being able to interpret these, more and more templates are being structured without HTML tables... technology Joomla! Metadata: . component is now installed with sample data and still needs to get a menu link in the front end. Let us put it into the Joomla! 1. 5 Book menu. Click on Menus | Joomla! 1. 5 Book and then on the New. "fresh" system. There are rarely any table updates for the database. Even with the upgrade from Joomla! 1. 0.x to Joomla! 1. 5. x, only two elds have been changed! But there are often no updates or. have to enter it again. • • • • • • • • • Chapter 12 [ 2 17 ] The administration section is divided into several areas. More on Extensions [ 218 ] (1) Here you can create a collection and individual

Ngày đăng: 14/08/2014, 10:22

Từ khóa liên quan

Mục lục

  • Chapter 12: More on Extensions

    • DOCman (Download section, Document Management)

      • Preparing Content

      • Search Plug-in

      • Supplementary Module

      • Exposé Flash Gallery

        • Installation

        • Integration into the Website

        • Album Manager in the Administration Section

        • Uninstallation

        • Album Manager as a Stand-Alone Program

        • Integration into the Joomla! Framework

        • Problems with Third-Party Components

          • Updates

          • Security

          • What should you Do?

          • Summary

          • Chapter 13: Writing Your Own Joomla! Templates

            • Corporate Identity

            • HTML/XHTML, CSS, and XML

              • HTML/XHTML

              • CSS

              • XML

              • Creating Your Own Templates

                • Concept

                • HTML Conversion

                • Directory Structures of the Template

Tài liệu cùng người dùng

Tài liệu liên quan