Wednesday, July 6, 2011

how to custamize footer links in joomla


How to Change the Footer in Joomla

How to Change the Footer in Joomlathumbnail
Editing The Joomla Footer
One of the most commonly requested changes to an installation of the Joomla content management system is how to change the footer information or delete it altogether. As Joomla is freely offered under the GPL License, you can edit or remove the copyright information as long as the information remains within the platform's php source code. This article assumes that you are using a default installation of Joomla version 1.5.15 with the default template rhuk_milkyway. Please note that if you implement a different template into your Joomla installation, the paths described in this article will change where appropriate.

Difficulty:
 
Moderate

Instructions

Things You'll Need

  • Computer
  • Internet connection
  • FTP client
  1. Changing the "Powered by" Footer

    • 1
      Download a copy of your index.php file from your \templates\rhuk_milkyway directory to your local system and make a backup copy. Open the original file with Notepad or your favorite editor and locate the following text starting at around line 158:
      <p id="power_by">
      <?php echo JText::_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
      <?php echo JText::_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a>
      <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
      </p>
    • 2
      Remove the "Powered by," "Valid," or "and" text, simply by deleting the text between the single quotes leaving only (' ') and save the file. Do not delete any code as you may decide at a later date that you would like to put some text in this area.
    • 3
      To retain the link functionality and change only the text and link destination, we can use eHow as an example of a different link by changing <a href="http://www.joomla.org">Joomla!</a> to <a href="http://www.ehow.com">eHow</a> and saving the file.
    • 4
      To delete the link functionality permanently, delete one or more of the default links by simply removing the encompassing code and text <a href="http://www.joomla.org">Joomla!</a> altogether.
    • 5
      Upload your new index.php file and check your results.

    Changing the Copyright Footer

    • 1
      Download a copy of your en-GB.mod_footer.ini file located in the \language\en-GB directory to your local system and make a back up copy of it. Open the original file and locate the following text:
      -
      FOOTER=Footer
      FOOTER_LINE1=Copyright © %date% %sitename%. All Rights Reserved.
      FOOTER_LINE2=<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License.</a>
    • 2
      To remove all traces of the copyright information, delete all of the text and code to resemble the lines below. Save the file and upload it to your website.
      -
      FOOTER=Footer
      FOOTER_LINE1=
      FOOTER_LINE2=
    • 3
      To edit the copyright information, examine the FOOTER_LINE1 code closely. To remove the "Copyright" text and its symbol, simply remove the following: Copyright ©. To remove the date or site name, remove the percent signs and appropriate corresponding text. For example, remove the date by deleting %date%.
    • 4
      Similar to the edits described in "Powered By" footer instructions, refer to line FOOTER_LINE2= and change the text and link destination to what and where you desire. Often, the original code is changed to point to back to your website similar to <a href="http://www.yourdomainname.com">Your Website</a>.
Ads by Google

Tips & Warnings

  • Experiment with changing both footers. Add additional text or hotlinks or perhaps an image and see how you can make them appear differently.
  • Save yourself some pain and back up your original files before making edits to them.

Saturday, July 2, 2011

How to create a poll in joomla


How to Create a Poll in the Poll Manager

  1. Log in to the Administrator back-end. To learn how to do this read: Logging in or out of the Administrator back-end.
  2. Click the Components> Polls menu item. You should see the Poll Manager screen.
  3. Click the New toolbar button to create your poll.
  4. Type the question that you wish to poll in the Title field .
  5. Type an abbreviated title of your poll in the Alias field.
  6. Change, if desired, the number of seconds between votes for each user in the Lag field.
  7. Select the No or Yes radio button to publish or not your poll.
  8. Type in the Options fields the possible choices for the answers of your poll.
  9. Click the Save or Apply toolbar button to implement the new settings:
    • The Save toolbar button will save your changes and return you to the Poll Manager.
    • The Apply button will save your changes but leave you in Poll [Edit]. You can then click Close if no other changes has been made orSave to leave this screen to return back to the Poll Manager.
You should now see the title of your Poll in the Poll Manager table. If you need to edit it, you can either double click the Poll Title or select the Poll by checking the check mark box and then click the Edit the toolbar button.

How to Publish Your Poll Using the Poll Module

In order for your visitors of your site to participate in your poll, you must now publish it in the Front-end of your site. You must first activate a new Poll module.
  1. Click the Extensions> Module Manager menu item to view the Module Manager screen.
  2. Click the New toolbar button to activate your new poll module.
  3. Select the Poll radio button from the list of installed modules.
  4. Click the Next toolbar button
Details:
  1. Type the title of your Poll module in the Title field.
  2. Select the No or Yes radio button to choose if your module title is published.
  3. Select the No or Yes radio button to enable/publish your module to your site.
  4. Select the module position from the drop down menu.
  5. Select the order that you want this module to appear on your web site if there are more than one module assigned to this position
  6. Select the Access Level as to who is able to see this module on your Web site.
Menu Assignment
  1. Select from the Menu radio buttons AllNone or Select Menu Item(s) from the List. If you choose this last option, then...
  2. Select the Menu items to determine which pages you wish to appear your poll.
Parameters: Module Parameters
  1. Select the Poll from the drop down list
  2. Type the CSS class (if needed) that is included with your CSS file (Cascading Style Sheet). This class is determined by the author of your template.
Advanced Parameters
  1. Select Global or Cashing from the drop down Cashing menu.
    • Global is the setting you have for this module in the Global Configurations section of your Administrator site. (??? to verify)
    • Cashing is the setting for (??? What is this for?)
  1. Click the Save or Apply toolbar button to implement the new settings:
You can now visualize your work in the Front-end of your site.

How to Publish Your Poll Results as a Menu Item

  1. Click the Menu> Mainmenu (or other menu) menu item to view the Menu Item Manager: [mainmenu] screen.
  2. Click the New toolbar button to create a new menu item.
  3. Select Poll> Poll Layout from the list of Select Menu Item Type
Menu Item Details:
  1. Type the title of your poll in the Title field.
  2. Type the abbreviated title in the Alias field.
  3. Leave the Link field as is. (??? - to verify)
  4. Select the menu from the Display In drop down menu that you wish to present your poll results.
  5. Select the parent/child menu item as to where you wish your menu item to be located in the Parent Item drop down menu.
  6. Select the No or Yes radio button to publish/unpublish your new menu item to your site.
  7. New Menu Items default to the last place. Ordering can be changed after this Menu Item is saved in the Order drop down menu.
  8. Select the Access Level as to who is able to see this module on your Web site.
  9. Click from the On Click, Open in: items:
    • Parent Window with Browser Navigation (creates the link within your site with browser navigation)
    • New Window with with Browser Navigation (creates an external link with browser navigation)
    • New Window without Browser Navigation (creates an external link without browser navigation)
Parameters - Basic:
  1. Select the poll from the Poll drop down menu.
Parameters - System
  1. Type (if needed) the page title. (If left blank, the menu item title will be used)
  2. Select the No or Yes radio button to publish/unpublish your page title.
  3. Type the CSS class of your page if different from the standard CSS class for pages.
  4. Select from the Menu Image drop down menu an image that goes to the left or right of your menu item.
  5. Select the SSL Enabled radio button OffIgnored or On. This selects whether or not this link should use SSL and the Secure Site URL.
You can now visualize your work in the Front-end of your site.

Thursday, June 9, 2011

How to add widget in magento??

image 

Overview

Magento Widgets allow business users with no technical knowledge to easily add dynamic content (including product data, for example) to pages in Magento Stores. This allows for greater control and flexibility in creating informational and marketing content through administrator tools, enabling intuitive and efficient control of content such as:
  1. Dynamic product data in Marketing Campaign Landing Pages
  2. Dynamic Information such as Recently Viewed Items into Content Pages
  3. Promotional images to position in different blocks, side columns and other locations throughout the storefront
  4. Interactive elements and action blocks (external review systems, video chats, voting and subscription forms)
  5. Alternative navigation elements (tag clouds, catalog image sliders)
  6. Create interactive and dynamic flash elements easily configured and embedded within content pages for enhanced user experience
  7. And lots more ...

What are Widgets?

Magento Widgets are frontend blocks with a predefined set of configuration options. These configuration options are displayed in a special edit form in the backend panel when a widget is being added or edited by a store owner. The ability to easily set widget configuration options allows for the full control of widget placement on a page to store owners.
Configuration options for selecting a product link widget to be inputted in the header of all product pages and in all Pages using a Three-Column layout

The Magento Community Edition Version 1.4, and the Enterprise Edition Version 1.6, facilitate the ease of using custom frontend extensions even more by introducing this new concept of customizable Magento Widgets, which can help Magento contributors and commercial extension developers provide more control over the frontend extension behavior and visual block placement to store owners.

How to Develop a Widget

Typically, developing a widget doesn’t differ much from developing a regular Magento extension which provides frontend functionality. If you want to allow a store owner to define different configuration options per block instance and to have full control over the placement of the block instance on a page (that also includes ability to add block into a CMS page or CMS static block) – the widget format will help you to do so.
Extension can then have any number of Magento Widgets. Widgets are typically related to the functionality which is provided by the extension itself. You can also develop widgets which add configuration options and placement control to the functionality which already exists in extensions.
Your Magento extension can also create and add pre-configured widget instances to defined pages right upon the extension installation.
You can package Magento extensions with widgets as you would any other extension and then upload them to Magento Connect under the Widgets category.
There is a new tutorial available in the Magento Knowledge Base which covers creating custom widgets:
  • Tutorial: Creating a Magento Widget, Part 1 is a quick introduction to widget development which describes creating simple widgets for adding social bookmarking links on a page.
  • Tutorial: Creating a Magento Widget, Part 2 introduces widget configuration options. You will learn how to define widgets configuration options that can be modified by a store owner and create another simple widget which adds a configurable list of bookmarking links on a page.
All the sample widgets described in the tutorial are available to download on Magento Connect. Please note that the widgets are compatible with Magento 1.4.0.0-alpha3 and up. You can also download the full source code of the sample widgets in archived format from the tutorial pages.

Terminology

You can check the Magento Designer’s Guide Design Terminologies chapter to get a general understanding of the blocks concept.
  1. Frontend Block – an element which creates the visual output either by assigning visual structure or by producing the actual content.
  2. Magento Widget – a frontend block that implements a special widget interface which allows for having different configuration options per each block instance, and the ability to have multiple independent block instances on pages.
  3. Magento Widget Instance – a concrete block on a single page or multiple pages which receives its configuration options as defined by a store owner in the backend. The same widget can be added to the frontend multiple times producing multiple instances of the same widget.
    * Please note, that a single widget instance can also be added to multiple pages (with the same configuration options values) and managed as a single entity.

Widget Examples in Magento CE 1.4, EE 1.6

Magento Widgets' flexibility provides many possible uses. Magento CE 1.4 and EE 1.6 includes the following configurable widgets, and new widgets can be created by developers as detailed in the sections above.
  1. CMS Page Link – displays a link to a selected CMS Page, and allows specifying custom text and title. Two templates are available for this widget – inline link and block template.
  2. CMS Static Block – displays content of a selected static block.
  3. Catalog Category Link – displays a link to a selected catalog category, and allows specifying custom text and title. Two templates (inline and block) are available.
  4. Catalog Product Link – displays a link to a selected catalog product, and allows specifying custom text and title. Two templates (inline and block) are available.
  5. Recently Compared Products - displays a block which contains recently compared products. This Widget allows for specifying the number of products to be displayed and has two templates available (product list or product grid view).
  6. Recently Viewed Products - displays a block which contains recently viewed products. This Widget allows for specifying the number of products to be displayed and has two templates available (product list or product grid view).