Sunday, July 7, 2013

Joomla 2.5: overwrite com_search layout

As overwriting layout of any component, e.g. overwrite com_content blog layout, to customize layout of com_search, you may copy its original 2 files below:
/components/com_search/views/search/tmpl/default_form.php: display search box and search filters / conditions
/components/com_search/views/search/tmpl/default_results.php: display search results
to the html folder of your template:
/templates/your_template/html/com_search/search/default_form.php
/templates/your_template/html/com_search/search/default_results.php

Let do a sample, in which we only search in Articles and display every search result with an intro image of the article if any.

Below is an example for an article with intro image:


The following image is before this customization:

Here are the image after this customization:

To do this sample, we modify the file /modules/mod_search/tmpl/default.php of mod_search to search Articles only. Add the following line to this file:
<input type="hidden" name="areas[]" value="content" />
before line:
<input type="hidden" name="task" value="search" />

And download this file and unpack, then copy folder html/com_search to your template and plugins/search/content/content.php to joomla content search plugin.

Base on this post, you can create your search layout as you want.



Saturday, July 6, 2013

Check pricing of all cloud server providers

Do you have a plan to move your application / website to a cloud server / cloud computing? There are many providers for you choosing. If your budget is limited, you can use the tool in cloudorado.com to compare pricing between providers such as: Amazon EC2, Rack Space, Elastic Hosts, E24Cloud, etc.

Recently Google has joined to this market with Google Compute Engine (GCE). Hope cloudorado.com that will add GCE to their tool.

Remember that price is just one of many criteria to choose the best cloud server for you. Below are some other criteria for choosing your best server:

1. Price: should be in your budget. Use the above tool for choosing the best price.

2. Features / Capacity: the features / capacity of the server must meet your application / website.

3. Maintain Cost: you can use your application / website with minimum cost for changing your application / website. Cost for monitoring your application / website should be lowest.

4. Policy:  the contractual terms must be clear, no risks for you.

5. Backup: you can create a backup for your all applications easily.

6. Moving / Upgrade: you can move to other server or upgrade it without stopping any things.

Cheers,
Hung
Subscribe to RSS Feed Follow me on Twitter!