Thứ Tư, 15 tháng 5, 2013
J1.5:Joomla! 1.5 Template Tutorial
This Joomla! 1.5 Template Tutorial is a collection of articles that explains the different aspects of creating a Template for Joomla! 1.5. You should start with the top article and work your way down the list.
Thứ Ba, 14 tháng 5, 2013
Installing Templates (Joomla 3.0)
Installing Templates (Joomla 3.0)
What is a Template?
A web template is a tool to help organize the information you'd like to present on your site. Simply, it's the style of the visual layout of your menus, modules and articles. There are many, many templates and template providers available throughout the Joomla community. There are commercial and non-commercial templates, and some include features like a module map, pattern and color controls, and other ways to manipulate the look and feel of the template. To maximize the amount of control you have, it's important that you look for these options before downloading and installing a template. Please visit our Templates & Themes Page to view 3rd party commercial and 3rd party non-commercial templates. The rest of this article explains how to install a template in Joomla and how to resolve the "xml file is missing in package" error that some users receive when installing templates.
Installing a template
Step 1: Locate and download a template. Once you've found the template you'd like to use, download it to your computer. It's extremely important to remember two things: 1) Only download and install a template if it is compatible with the version of Joomla that you're using. For instance, if you attempt to install a template in Joomla 3.0, but the template is meant for Joomla 2.5, issues will arise and your site could crash. 2) Download the .zip file for the template that you'd like to install. Joomla recognizes .zip files only. Trying to install anything but a .zip file can also create issues within your site.
Step 2: Once you've downloaded the template, it's time to install it in your site. Once you're logged into the administration area, or "back end" of your site, open the Extensions Manager.
Step 3: In the "Upload Package File" area, select the "Choose File" button, browse your PC for the template you downloaded, and click the "Upload & Install" button once the file name appears in the field.
Step 4: If you go to the front-end of your site, you'll notice that nothing has changed. That's because you've only installed the template, but you haven't yet told Joomla that you want to use that specific template. To tell Joomla to use that specific template, you'll want to go to Extensions -> Template Manager.
Step 5: You should see the name of the template that you installed. In that same table, you'll notice the golden star icon in the default column to the right. Changing this golden star icon to appear in the same row as the template you installed will make that template the default template for your site. Be sure to note that there are two golden star icons - one is for the front end or "Site", and one is for the back end, or "Administrator".
That’s it! At this point you should have successfully installed a template. Congratulations!
Using Multiple Templates (Joomla 3.0)
Many times clients are interested in using two different Templates for different pages on their site. Users can create a variety looks and styles for different pages by installing and assigning templates to different pages. This article explains how to assign a template to a page that is not the current default template. The video below and the written steps that follow contain similar instructions.
Installing a Template & Changing Default Templates
The first step is to install each Template that you'd like to feature on your site. Learn how to install a template. Once each template is installed, go to the Template Manager to select a default template.
Be sure that each of the templates you'd like to use appears in the list of templates in the Template Manager. Using the golden star icon in the "Default" column, select a default template. This is the template that will be featured on all of your pages unless you select a different template for individual Menu Item (as explained below).
Assigning Templates through the Menu Item
Next, go to the Menu Manager and open up the menu item (the page that you'd like to feature a template other than the default template). Once the menu item is open, look for the "Template Style" option under the "Details" tab. Using the dropdown menu, select the Template that you'd like to use exclusively for that menu item. Every other menu item will still use the default template. Be sure to save your work.
After saving your work, return to the front end of your site. Navigate to the page where you used a template other than the default template and you'll notice a difference.
Assigning Templates through the Template Manager
You can also assign that template to one or more pages through the Template Manager. To do this, open the template style, click on the "Menu Assignments" tab, and then select the Menu Items (the pages) where you'd like to feature the copied template. Any pages that you leave unselected will feature the default template that you've already chosen. Be sure to save your work.
If you return to your Template Manager, you will notice that copy of the template has been assigned to a specific page.
Now you can return to the front end of your site. Visit your different menu items, and you'll see the template appear differently on different pages.
How do you assign a template to a specific page?
In Joomla! there is a default template, but you can assign other templates to specific "pages" that are defined by menu links.
Joomla 1.6 introduced the concept of Template Styles. Styles allow you to set up different instances of the same template, each with different parameters. It is these styles that you can assign to different pages in Joomla.
To assign a template style to a page, you must first make sure that there is a direct menu link to the page.
- Go to Extensions>>Template Manager
- Select the style and click the edit icon (or click the template name)
- In the left column, change "None" to "Select from List."
- Select the links you want to apply the style to.
- Save
Note that you cannot assign the default style to individual pages.
Understanding
The templating system uses the ItemID to determine which template/style to show. ItemIDs are created when you create a menu link. This is why only menu items are shown in the list of pages to which you can assign templates/styles.
Assigning templates/styles according to other criteria
3rd party extensions allow you assign templates according to other critera. See the Templating section of the Joomla Extensions Directory.
Adding an image to an article
Images are added to articles using the Editor Buttons below the content editor window in the Edit Article screen. Note: It is possible to insert images using the editor in Joomla!. However, this feature provides a simple way of inserting images stored in the images/stories directory of Joomla!
- Open the Article for editing either by:
- Click the Content > Article Manager menu item to go to the Article Manager, select the Article and click the Edit toolbar button.
- Clicking the Add New Article button in the Control Panel.
- If logged in to the Front-end, you have appropriate permissions and are viewing the Article you wish to edit: Click the Edit toolbar button.
- Choose where you would like your image placed in the flow of the text by moving the cursor and click the Image editor button at the bottom of the screen.
- The Insert Image screen will open over the top of the Edit Article screen. Choose an image by clicking on it.
- You may also move directory by clicking on the folder icons.
- Use the drop down Directory field to quickly select a directory and click the Up button to go up a directory level.
- Set the image properties as required:
- Image Description: This becomes the alt attribute for the image, an important feature for accessibility and compliance with web standards.
- Image Title: Used for the optional caption and also becomes the title attribute in HTML.
- Align: Sets the image alignment. If left blank the align attribute is not set.
- Caption: Enables the caption which displays the Image Title below the image.
- Click the Insert button to insert the image. The Insert Image screen will close and the image will be displayed in the editor.
- Click the Cancel button to leave the Insert Image screen.
Uploading images using the Insert Image screen
You may also upload new images using the Upload section of the Insert Image screen.
- Click the Browse button to open a file browser.
- Select the image files you wish to upload. Click Open in the file browser to confirm the selection. Note: The file browser style and layout depends on the browser and operating system you are using.
- To remove selected files before uploading click the red icon next to the listed files.
- If you are uploading multiple files in batches you can clear the list of completed files by clicking the Clear Completed button.
- The selected file(s) appear as a list at the bottom of the Insert Image screen. Click Start Upload to begin uploading files.
- When the upload is complete a green tick will appear next to the file.
- You may now select and insert the uploaded image as before.
Thứ Hai, 13 tháng 5, 2013
JCE: Embedding HTML Code into an Article (Joomla 2.5)
JCE: Embedding HTML Code into an Article (Joomla 2.5)
There are many instances in which a user may want to incorporate HTML code into an article. This process is very similar to embedding code into a Custom HTML module (read these instructions). Typically, this can done using just about any editor. This article offers step-by-step instructions for inserting HTML code using the JCE Editor, or the TinyMCE Editor which is the default editor that comes with your Joomla! application.
After logging into the Administration area, go to the Global Configuration settings for your site to determine which editor you re currently using as the default editor.
If you ve already installed the JCE Editor, select it. CloudAccess.net recommends that you use the JCE Editor because it has a lot of features that many users prefer. Read these instructions to learn how to download and install the JCE Editor if you don t already have it.
The rest of this article contains two sets of instructions. The first is how to embed HTML code using the JCE Editor, and the second is how to embed the code using the TinyMCE Editor.
How to embed code using the JCE Editor
First, you ll have to create a new article. Read these instructions to learn how to create a new article. If you ve already created an article that you d like to work with, open it up.
Once inside the article, locate the "Article Text" area. Above the JCE Editor, you ll see the words "show/hide". This is actually a link that will allow you to see the HTML source code. Inside the JCE Editor itself, there is also an icon to view the color HTML version of the editor. Please see the screenshot below to for both features.
Below is a screenshot of out the color version of the HTML source code using the JCE Editor function.
This is the area where you ll cut and paste or alter the HTML source code for your article. Once you re finished, you can close the source code view by selecting the same icon. Be sure to save your work, and you ll be all set.
How to embed code using the TinyMCE Editor
If you re using the TinyMCE Editor, the process is very similar. First, you ll have to create a new article. Read these instructions to learn how to create a new article. If you ve already created an article that you d like to work with, open it up.
Once inside the article, locate the "Article Text" area. In the TinyMCE Editor, locate the "HTML" icon. When you select the "HTML" icon, a new window will open for you to edit the HTML code. Please see the screenshot below.
When you select the "HTML" icon, a new window will open for you to edit the HTML code. This is the area where you ll cut and paste or alter the HTML source code for your article. Be sure to update your work by selecting the "Update" button.
After you re done updating the code, save the article, and you ll be all set.
How to Link Articles in Joomla 2.5 (valid for Joomla 1.7 and 1.6 too)
How to Link Articles in Joomla 2.5(valid for Joomla 1.7 and 1.6 too)
In this part of our Joomla tutorial we will learn how to link articles to the web site menus. The tutorial is written for Joomla 2.5 but the same steps should be taken if you are using Joomla 1.7 or even 1.6.To make your articles and the corresponding pages accessible, you should set links to them. This can be completed by including these links in the web site menus.
Open your Joomla admin area->Menus->Main Menu.
Click on the New button.
Choose the Menu Item Type from the corresponding dialog. If you want to link a standard article pick the Single Articleoption.
Then enter the link title in the Menu Title field and select the corresponding article which will be linked through the Select Article functionality.
Save the changes and view the new menu item located on your frontend.
How to publish your article on the home page?
In order to make one of your articles the home page for the web site, navigate to the Joomla admin area->Menus->Main Menus.
Select the article and click on the Home icon.
The change of the default home page article will be confirmed with the following message:
One menu item successfully set to home
If you want to remove the old home page article, select it and click on the Trash button.
Đăng ký:
Nhận xét (Atom)