In gides about binding of Social Media Buttons and Breadcrumbs to certain pages of a Joomla-based website, only filtering by articles was considered. But what if you want to bind a module or other extension, and in general - any piece of code to the selected categories, components and their specific pages, or even to all listed at once? You may say that the modules are already linked to menu items, and in case of using more advanced module manager (eg, Advanced Module Manager) - even to categories, articles, users, components, etc. This is true; but to output module with different settings on the corresponding pages, you will have to create its multiple copies, linked to these pages. For example, on this website the Recent Comments module displays a list of comments made to articles of only those categories and components whose pages output this instance of module. Since the structure of the site is quite extensive, and besides, the site is multilingual, number of copies of the module exceeds 10. It's pretty inconvenient.

The proposed solution is intended to provide a flexible and contextual content output based on specified criteria. Coding knowledge is desirable, but I will try to give exact recommendations for its implementation, which will allow less qualified Joomla users to also utilize this methodology. In addition, in a separate article I have described the structure of internal links within Joomla site, which is designed to facilitate the understanding of the algorithm. Let's do it!

Upd: Русская версия статьи: Структура внутренних ссылок сайта на Joomla.

Recently I wrote and implemented several functions that allow you to filter the pages output of the website running CMS Joomla version 2.5 and later. Before sharing them with the public, I will touch on the subject posed in the title of this article, as the principle of formation of internal links to Joomla application pages will help to better understand their algorithms.

A bit of theory

Applications for the CMS Joomla are being developed as components. Components are responsible for the pages output. A link to each page is generated in the respective component in the standard URI format:

http://[site name]/index.php?[query string]

The query string is a sequence of key=value pairs separated by an ampersand. Keys' values just determine the output of each page. URI of pages are generated in accordance with the structure of the component. Currently we are not interested in the mechanism of these links formation, but the result for each page or group of pages of the application will be important. Knowing how to identify keys and their values, you can flexibly operate on the output of the page content.

Upd: Русская версия статьи: Использование псевдонимов пунктов меню в Joomla.

In a previous article I described the process of transferring content from source site to destination site and integration it as a separate section into the destination site structure. Component J2XML accomplished the task well enough. I would rate it "excellent", but, as noted later in that article, its functionality does not include the transfer and integration of menu structure. However, it did not take long to manually reproduce it on the site-receiver. But when I started to bind menu items to the corresponding elements of content, I have encountered with a certain problem. It is in the process of solving I got acquainted for the first time in my practice with the option placed in the title of this article.

Let me describe the problem. The source site has several menus. The need is to place them at the destination site in the same form - as separate modules, but since the new content is conceived to be a separate section, all sub-sections must include the name and alias of the parent section - in the URL and the breadcrumbs. But the menus, corresponding to the sub-sections, should remain the root level menus. However, if the second condition is satisfied then the first one is not. This is where the option of choosing menu item type as an alias of another menu item became helpful.

The logic of the problem appearance becomes clear when I will illustrate it with particular example. For greater clarity, I will replace narrow subject of my site with more popular one - namely cars. I hope that ladies forgive me for the theme, usually more interesting for gents )).

Upd: Русская версия статьи: Joomla: Сливаем два сайта в один при помощи компонента J2XML.

Not long ago I had another site in addition to this one. For some reason I decided to join that second site to this site as a separate section. Besides, that other site appeared even earlier and had several hundred articles, divided into a dozen of categories, as well as about fifty registered users. There was not less info on this site by the time. Objective: to transfer content to another site so as to create a unified structure.

I found an excellent component J2XML, created just for such a task. It's free and has flexible settings. It exports related structure of articles, categories and users from a donor site and integrates it into the structure of an acceptor site. It can also transfer pictures in articles as well as WebLinks. The transfer, as its name implies, is carried out through XML-files. The goal of this article is detailed examination of settings and functionality of the component J2XML.

Upd: Русская версия статьи: Photoshop: Обработка снимков картин для online-галереи.

As I noted in an article about editing of animated GIFs, I am not an expert on Photoshop. However, having examined some image processing scenarios I successfully use them. For example, when I opened galleries of two nearest and dearest to me young artists here on the site, I had attended to the method submitted in the headline of the article. Will describe the problem more clearly.

Initially: there is a photograph of a painting. In its original form, it does not suitable for posting on the website: | Photoshop: Processing photos of paintings for online gallery #01

Expected result: | Photoshop: Processing photos of paintings for online gallery #02

Sequence of operations allowing you to transform former into the latter is being put to the agenda today. Screenshots are clickable.

Upd: Русская версия статьи: Кастомная страница 404 в Joomla 2.5.

Subject in the headline of this article had been seemingly described and discussed in the web many times. Nevertheless, as it often happens, the information in each source is incomplete. The overall picture is composed of disparate information, and some particular glitches which I encountered are not covered at all - at least I have not found such coverage and came up with my own solutions. Therefore, the purpose of this article (and all others) - to bring together information from different online sources, to structure it, supplement with my own experience and pass into judgement of the Internet community.

Upd: Русская версия статьи: Joomla 2.5: Убираем хлебные крошки с выбранных страниц.

Breadcrumbs, also known as site navigator, is useful Joomla module. And, as every module, it can be linked to all or only certain menu items. It is also possible to unlink this module from all or specific items. Many Joomla website owners wish to hide navigator on the home page, since it contains only one item "Home" with no link and does not incurs thus any functional load. Perhaps the site structure also provides other pages on which, for whatever reasons, it makes sense to hide navigator. The most typical example is a custom 404 error page, which, as I emphasize in the corresponding article dedicated to the rules of its creation and configuration, should fit into a site template, but at the same time to be by itself. Navigator on page 404 is not only unnecessary, but also ideologically harmful. We will consider this particular page as a special case, which describes the general principle of unlinking breadcrumbs from certain article.

Upd: Русская версия статьи: Кнопки социальных сетей в Joomla 2.5. Выборочное подключение.

While writing an article about the customization of page 404, I raised the issue of how to get rid of unwanted items in a page interface. Another article is devoted to the selective hiding of the breadcrumbs module. I also came to the conclusion not to display social buttons on page 404. There are other cases where it's worth to hide social media icons on certain pages, or vice versa - to display them only on some. Arranging articles of this series, I just faced a similar need: some button panels are displayed for illustration only in the relevant articles. So I decided to add this topic to the series.

Upd: Русская версия статьи: Кнопки социальных сетей в Joomla 2.5. Плавающая панель от Share42.

In previous articles you learned how to insert a horizontal bar of social buttons into the article body. We now consider the option to hang vertical "floating" buttons panel to have it at any site page. The same service will help in this. Generate the panel template same way as in case of horizontal option, but the type of panel with icons choose this time - vertical "sticky".

Upd: Русская версия статьи: Кнопки социальных сетей в Joomla 2.5. Варианты от Яндекса и Pluso.

After localizing files and places where scripts of social button panels are inserted in their code, let's move on to the question of where to get the script. There are many services that can generate such a code in accordance with the needs of webmasters. Consider one of them.

There is a pretty nice solution called Share42 which allows both to just insert a horizontal bar in the article body or to hang vertical "floating" panel. In the second case buttons will be present on every page, and it will be discussed in the next article. Now we focus on the first version.

Upd: Русская версия статьи: Миграция с Joomla 1.5 на Joomla 2.5. Эпилог.

The series of articles which this afterword accomplishes does not claim the complete guide to migration of website on Joomla 1.5 to Joomla 2.5. It does not cover transfer of such powerful and popular tools like K2, components of forums, online stores, galleries and heaps of other extensions. The question of the multilingual site transfer was not broght up either. Many issues were considered rather superficially. On top of that this guide is outdated - as, indeed, any information instantly becomes obsolete in the rapid progress of digital technology. It is - on the one hand.

Upd: Русская версия статьи: Миграция с Joomla 1.5 на Joomla 2.5. Ч.2-2. Шаблон, редактор и другие расширения.

As usual at the beginning - the appeals for reading introduction and for not forgeting about backup!


As we know, Joomla 1.5 uses templates based on table layout, which is now obsolete. Starting from 1.6 templates use the technology of div layout. Therefore, the installation of templates designed for 1.5 to newer versions is impossible by definition - they are just incompatible. Hence, there are several options:

Upd: Русская версия статьи: Миграция с Joomla 1.5 на Joomla 2.5. Ч.2-1. Перенос jDownloads и jComments.

In the first part we have hard, but worthy moved our menus, categories, articles and other content to the new site with preserving the structure. We now consider how to restore the customary set of extensions. Let's start with a separate examination of two very popular components. jDownloads and jComments are considered nearly the best each in its own sphere of application, a great many of Joomla users take advantage of them. In addition, both are free and have been translated into many languages. There is an obvious desire to transfer the entire set of comments and downloads to the new site. Detailed review of reliable and proven methods of migration jDownloads and jComments from Joomla 1.5 to Joomla 2.5 is the goal of this article.

Upd: Русская версия статьи: Миграция с Joomla 1.5 на Joomla 2.5. Ч.1. Перенос информационного наполнения.

Attention! Before you read this article and follow the instructions outlined therein, be sure to read the Introduction!

I took advantage of a known component jUpgrade. At that time, it was the latest version 2.5.2. I've been keeping to use it, although at the time of this writing, they have already released 3.0 PRO, radically different from 2.5.2. I tried it, but abandoned after a couple of failed attempts to run. Functionality of the previous one still suits me, at least for the options that I have used. Why I refused to transfer third-party extensions with the same utility, I tried to justify in the introduction. And the couple of bugs that came across on the road do not bother, if you know the easy ways to get around them. What is all about - it will be clear from the following description.

Upd: Русская версия статьи: Миграция с Joomla 1.5 на Joomla 2.5. Предисловие.

It took 4.5 months from the time of writing an article, where I tried to talk about choosing a version of CMS Joomla! and reasonability of transfer from old versions to new ones. During this time, Joomla 1.5 has ceased to please me completely, especially since the sites running this version started make problems - in particular, one of them had been hacked twice. 3.0 has been continuing to expand, third party developers has been actively creating extensions for it, but I still stopped at 2.5, which had time to study and appreciate very positively. The site, which you are reading now, moved from 1.5.22 to 2.5.8 at the beginning of December 2012, and at the end of February 2013 I upgraded it to 2.5.9. Another site, the one that hacked when it was at 1.5, had been transfered directly to 2.5.9 in mid-February. At both - normal flight.

Upd: Русская версия статьи: Вписываем картинку в контейнер используя серверный код PHP.

The problem arose when I was making a website with an online store. Pictures of products on the pages have to be displayed identically, whereas the customer has pictures of all possible sizes and proportions. In order to free him from the image editing, it was decided to inscribe them in a container - <div> block of fixed size, framed with border. Horizontally elongated images will be inscribed by width, while vertically elongated ones - by height respectively. The images should be clickable.

Actually, the problem is quite typical and has existing solutions, for example, only using CSS-styles. However, when such a powerful weapon as a server-side code is in hands, it's a sin not to use it when you are rather a programmer than a designer. So I wrote a function that covers every possible aspect ratio of the container and inscribed image. Let me offer it to the public.

Upd: Русская версия статьи: Как отцентрировать контент в блоке по вертикали.

At first glance it may seem that the solution of the problem posed in the title is trivial: set the CSS-attribute vertical-align:middle - and this is it. But it's not that simple. Principle of layout elements traditionally based on scaling by width, and content stretches or shrinks vertically in accordance with new width. vertical-align is useful for centering contents of table cells, as well as of DIV blocks having the display:table-cell attribute. The expected behavior of content vertical centering can also be achieved for elements of the page normal flow - blocks with the attribute display:inline-block. In all other cases this approach does not apply, as most modern browsers simply uses vertical-align attribute to be inherited by the child inline elements of the block. It will require a different method, the description of which is the focus of this article.

Upd: Русская версия статьи: osCommerce: Как увеличить время длительности сессии.

The default session duration in OSC is 1440 seconds (24 minutes). There is the following code snippet in the file /includes/functions/sessions.php:

if (STORE_SESSIONS == 'mysql') {
    if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {
        $SESS_LIFE = 1440;
//--------- More code... -----------

The first line indicates that the session must be stored in a database. An appropriate parameter in the file configure.php should be assigned like this:

define('STORE_SESSIONS', 'mysql');

Upd: Русская версия статьи: Редактирование анимированных GIF-имиджей в Photoshop CS3. | Editing animated GIF-images in Photoshop CS3Not being a designer, I nevertheless have been using Photoshop for simple operations with images. When it took to cut an animated GIF, I did not seek specialized software to edit animated graphics (such as the same Fireworks), but tried to find out whether it's possible to do it using itself Photoshop. It turned out - it is quite possible, though not obvious without proper instructions.

Photoshop CS3 provides creating of animated GIF file, but does not have an option to edit an existing one in a standard way without PSD source. If you try to open an animated image through File → Open... or by dragging it to the program's window, you get a message like: "This is an animated GIF. You can only see one frame. Saving a file will result in loss of information." Fortunately, there is less standard method, but it works very well.

© 2011-2017
Use and reprint of the site materials are allowed and welcome. Direct indexable link to the used article or, at worst, to the site itself would be a good contribution to the author for his hard work.