Joomla 1.5 material in module. Create a new position for the module

Installation and removal of components is done in the Joomla 1.5 admin panel.

How to install a new component.

  • Login to the Joomla admin panel
  • Select an item from the menu installation - components
  • Click - install new component
  • In the Download installation package section, click the Browse button
  • Select the archive with the component on the local machine
  • Click download and install

Note:

If, when installing a component, the message “Another component is already occupying the folder...” is displayed, this means that the component is either already installed or was removed incorrectly (some files remain from the previous installation). In the second case, you need to delete the files and folders remaining from the previous installation of the component.

if a warning is issued that you need to enable compatibility mode, go to plugins and find (look carefully, the list of plugins is not on one page, scroll through and find turn on Compatibility Mode)

Installing a new joomla 1.5 component manually

  • Unpack the component distribution kit on your computer to any folder
  • We connect to Denver if you are working with it locally or via FTP to your server
  • In the root directory of Joomla 1.5 we find the media folder and create some directory in it, for example /mopsik
  • Copy files and folders from the component distribution to the created folder on local server(or just on the server)
  • Login to the admin panel of Joomla 1.5
  • Select an item from the menu installation - components
  • Opening install new component
  • In chapter install from directory indicate the full path on the server to the directory with the component distribution (for example /media/mopsik/) Click install

Removing the joomla 1.5 component

  • Login to the Joomla admin panel
  • Select an item from the menu installation - components
  • We see the list installed components
  • Select the component you want to remove from the list
  • Click delete

Note: When uninstalled, all component data is deleted and cannot be restored.

But you should pay attention to the following:

  • When you remove components, some files created during the operation of the component may remain on the server, and this can create problems when installing the component again. Therefore, just in case, you should check whether the component directories in /components/ and /administrator/components/ have been deleted.
  • Some components leave their tables in the database when uninstalled. Sometimes this can be useful - for example when updating components. If you definitely decide to delete a component, make sure that there are no tables left in the database from the deleted component.

User support is available on another forum https://joomla.com.ua/

A customer contacted the web development studio “Dvizhok” with a request to update their website. The tasks were the following: update Joomla 1.5 to Joomla 2.5 and install a new adaptive template, while maintaining all site content (materials, sections, menus, etc.). In this article we will describe how to migrate a site and save all site content.

We divide the work into three stages:

1. Saving the site. We make a full backup of the site. Checking hosting parameters for Joomla 2.5
2. Automatic update Cms Jomla 1.5 to version 2.5 via jUpgrade component
3. Installing a responsive template via quickstart
4. Replacement of tables which are responsible for site content, menus, sections

So, let's begin.

Point 1. Preparatory work before Joomla migration

If you decide to migrate Joomla 1.5, before starting work you need to conduct a preliminary analysis and preparation of the site.


First of all, check if your hosting meets the requirements to work with Joomla 2.5. To install version J 2.5, the following hosting assembly is required:

The PHP version must be from 5.2.4;
MySQL version 5.0.4 and higher;
Support for Apache version 2.x hosting,

To check, you don’t need to log into the server; just log into the site’s administrative panel. Next in the top menu find Help >>> System Information. Here you will find necessary information about your hosting software.

For proper operation jUpgrade component, you need to check whether the cURL module is enabled on the hosting. It's usually on. To check, go to the admin. hosting panel, then “PHP Information” and the cURL line should contain enable.

Website backup

Important to remember!

Do all your extensions support version 2.5? To check, search the Joomla Extensions Catalog, there you will see which extensions support versions 2.5 and 3.0. Please remember that jUpgrade is not yet able to update all 3rd generation extensions on its own. Here is the list of extensions it updates: AcyMailing, AdminPraise, Akeeba Backup, BreezingForms, CompoJoomComment, CommunityBuilder, Contact Enhanced, Hikashop, JCE, jEvents, JomSocial, Jumi, K2, Kunena, SobiPro, redFORM, redMEMBER, redSHOP, RSGallery 2, VirtueMart .

All other extensions will have to be updated manually, or not updated at all. In our case, the following third-party extensions are installed on the site:
joomlaComment, Community Builder, XMap, FireBoard, uddeIM

Have you made any changes to the kernel files? Be careful, all changes will be lost.

Is your template compatible with version 2.5? If not, would you be comfortable switching to any of the standard ones?

Is localization present in the version you want to upgrade to? Make sure of this.

If you have rights to create and edit Joomla 1.5 files and folders?

Create a backup and a copy of a copy!

Missing this point is perhaps the most fatal mistake of all. if you have backup copy, you can rollback the changes whenever you want. If you do not follow this advice, if something goes wrong, the data recovery process will result in a waste of time.

We save the site database and all directories and files of the site.

Point 2. Updating Joomla with the jUpgrade component

Requirements for the jUpgrade component to work - for migrating (updating) Joomla 1.5 to Joomla 2.5:

PHP v5.2.4 or later
IIS / Windows: MySQL v5.1 - Linux / Apache: MySQL v5.0.4 +
Curl module of PHP enabled
Joomla 1.5.19 preferably 1.5.25
Included system plugin - Mootools plugin update
Browser with Javascript and JQuery support

Download and install latest version jUpgrade. It is very important to use the latest version available as there are fixes with each release. a large number of errors.

Then install it as a regular Joomla extension. Next, to work of this extension necessary Mootools Upgrade Plugin

After installation, go to the plugin manager and activate it.

After installation, go to the control panel of the JUpgrade component.


Then into the parameters of this component.

Distribution – the version of the engine to which we are updating;
SQL Driver – driver for working with a database;
Target Directory – the folder in which the new site will be saved;
Prefix for old database – prefix of tables (outdated version);
Prefix for new database – table prefix for the new engine;
Disable set_time_limit () - disable the time limit for performing update operations;
Disable Error Reporting - disable error messages.
Skip checks – disable checking;
Skip download - skip download, if YES, then you need to write it to the folder with the new site source files Joomla, that is, the Joomla 2.5 distribution;
Skip unpacking – if not, the distribution will be unpacked;
Skip templates copy – skip copying templates. Only standard templates are supported;
Skip 3rd party extensions – skip updating third party extensions.
Skip users – skip transfer of users to new version;
Skip categories – skip the transfer of categories to the new version;
Skip content – ​​skip the transfer of content to the new version;
Skip menus – skip moving the menu to the new version;
Skip modules – skip the transfer of modules to the new version;
Skip banners – skip the transfer of banners to the new version;
Skip contacts – skip the transfer of contacts to the new version;
Skip newsfeeds – skip moving the news feed to the new version;
Skip weblinks – skip link transfer.
Keep original positions? – save the original positions of the modules;
Delete previous migration – delete previous update attempts;
Enable migration debug – enable debugging mode;
Enable Mootools version debug – Mootools debugging mode;

Important!
In parameters specify the folder to store the updated version of the engine, if necessary (we left it as default), we also cancel the distribution download and unpacking. Since in jupgrade folder we will copy the Joomla 2.5 distribution. Therefore, download the Joomla 2.5 distribution and unpack it into jupgrade folder.



Joomla update. Solving a JavaScript Problem

After the settings, save the changes and return to the component control panel. Now you can start updating by clicking on the appropriate button. We would like to note that the “Start update” button was not working, which means that there is a JavaScript error.
You can fix it by editing the file media/system/js/modal.js, in which you need to find the line:

this.setOptions(this.presets);

And replace with:

this.options=this.presets;

This replacement should be performed only after setting up the jUpgrade component. Next we perform the update:



After the update is completed, the component provides us with links - to the user part of our site and to the admin panel. Now the updated version of the engine is contained in the jupgrade folder. In this case, this version uses the newly created tables, with the prefix that was specified when setting up JUpgrade. That is, you and I received a completely new website, with its own file structure and its own database.

Now it is necessary delete all source files of the old 1.5 engine and replace with new ones (from jupgrade folders). In the database, you also need to delete tables that were used by the old version of Joomla (we delete all tables whose prefix jos- this is in our case).

As you can see, this is really Joomla 2.5. Now if we look at the installed components, we will see that Community Builder remains installed, it was transferred to a new version of the engine and for it to work correctly, we also need to reinstall it. Therefore, we download the latest version of the component and install it as a regular Joomla extension. After this, you can verify that all data for this component was successfully transferred to the new version of the engine. All content from previous version Joomla: materials, categories, and menus.

Installing a template

Thus, we have completed updating Joomla 1.5 to Joomla 2.5. All that remains is to install the template that was used previously. To do this, open the file templateDetails.xml ( this file contained in the template archive) and make several changes to it in accordance with the requirements of Joomla 2.x. Namely, we change the install block to the extension block:

We also replace the parameter block in accordance with as follows:
















After this, you can install the template on the new Joomla engine (again, having previously created a zip archive). Of course, there are still a lot of things that will have to be corrected in this template before it becomes completely identical old version. But in any case, it is already working and displaying information.

After making all the changes to the template, you need to update the module positions and check the functionality of the site as a whole.
This completes the update.

Point 3. Installing an adaptive modern template via quickstart while saving content

Step 1.
- After we have updated the site, we enter the site database and copy individual tables of the site, namely:

Materials:
#_content — Materials
#_content_rating – Materials in the rating
#_contentitem_tag_map

Section Manager:
#_categories

Home Page Manager:
#_content_frontpage

Menu:
#_menu — All site menu items (back-end + front-end).
#_menu_types – Back-end menu.

Select these tables in the database and Save.

We save the entire updated site just in case. Then download the adaptive template with the option “ quick launch" This is the tested version of the CMS and also yours Joomla template with all necessary functional modules and components. All you need to do is upload these files to the server where your site will be located.

In the archive of such a template there is a directory: QuickStart

The number of folders and their names may differ depending on the different manufacturers templates As a rule, the QuickStart folder weighs more than the others, except, of course, for the folder with PSD sources. In general, finding it will not be difficult.

After which you need to: unpack the archive, which is located in . The unpacked folder should contain the following documents:

Now, enter the URL of your site in the address bar of your browser. If you did everything correctly, the Joomla installer start page will open. It looks like this:

We enter all our hosting data and our website data.
After that the site is installed! The template and modules with components work. BUT the content on the site is DEMO. All that remains is to replace the content with your own.

Step 3. Replacement of content on the site.

Log in to phpMyAdmin and delete from the database the tables that you previously copied to your PC. Namely:

#_content
#_content_rating
#_contentitem_tag_map
#_categories
#_content_frontpage
#_menu
#_menu_types

After removal. We add the same tables copied earlier to our database.
As a result, we get: An updated Joomla 2.5 “engine” with an installed adaptive template and all the necessary modules and components + the site content as it was before (materials, sections, menus). That's what needed to be done.

If you need to do this - but you don’t want to do it yourself - you can contact our studio with this problem, we can do it. Just write to us: [email protected] and describe the task.

That's all, if you want to “thank” ours, you have this opportunity: on the right there are options for donations for the development of the portal. Or share the article on your social media using the services below.

In this lesson, we’ll see why we need and how to configure the “Archive Materials” module of a Joomla site.

About the module Archived materials

Let me immediately note that the Materials module in the archive is a very small module with a minimum of settings. In the Joomla directory of the site, this module is located in the /mod_articles_archive folder. If you want to make system editing of the module, welcome to the file /mod_articles_archive/default.php.

Let me remind you, so that the module revision is not reset after updating the system, make an override of the edited module file on the Templates>>>Create override tab. We look in the left column for “Modules”, the system name of the module is mod_articles_archive. This module does not belong to any other component.

Module objectives

The “Materials in the archive” module is needed to display on the frontend of the site NOT the materials themselves that you placed in the archive. This module displays a list of calendar months in which materials were archived. For example, May 2018, June 2018, etc.

It may seem that this module does not have much significance for site navigation. This is true if you have few materials and you do not create an archive as unnecessary.

On the other hand, if you have an archive, then there are no other ways to compactly display the archive by date on the frontend of the site. There is a menu item “Archival materials”, but it displays a list of archive articles by category.

So if you need to show your users an archive of materials by year and month, the Joomla Archive Materials module is for you.

Articles are stored by creation date, not by archive date. In module bOnly those months and years with archived articles will be displayed.This list is generated automatically.

How to create

  • To create a materials module in the archive, go to the Extensions >>>Modules >>>Create tab.
  • From the list, select the module type “Materials - Archived Materials”.
  • Fill in the required settings.
  • We save and publish in the selected position of the template for modules.

How to setup

As I already said, this module does not have many settings.

First of all, you definitely need to give the module a name.

class="eliadunit">

Don't forget to fill out right side settings. Here, as always:

  • Allow or disable display of the module title;
  • We indicate the status of the module (Published-Unpublished-In cart),
  • Select the module position to display. If you want to create several similar modules, make one module in the “NO” position, and then multiply with the “Batch processing” button.

Additional settings module is a personal matter. By default, they are quite reasonable.

Rights to manage the module (access rights) depend on your work with different levels of users.

The module archive module does not work

On version 3.9.1, when creating the “Archive Materials” module, the module itself is created normally, the list of months with years of creation of materials that are placed in archives is created correctly.

However, when calling up the month of archive materials (clicking on the link with the month and year of the archive), there is NO list of materials. The filter does NOT work.

I managed to fix this error like this:

  • Open the Materials tab. On the right, at the top, click the “Settings” button;
  • On the Materials>>Settings>>General settings tab, in the “Sorting date” item, the value should be “Created”. Let me remind you that in archives materials are sorted by the date of creation, and not by the date they were placed in the archive.

Hi all! Finally, the wait! Today we will start filling out our website useful information! We will learn how to create and publish materials, work with the appropriate manager.

Material in Joomla- this is not a site page as such, it is only information that can be displayed in the content area. Once again I want to remind you that in Joomla pages are created using menu items. Their content consists of:

  1. information in the central area (content area) - they are responsible for it;
  2. information along the perimeter of the content area - is formed by .

The material must belong to some category.

A similar hierarchy is typical for other Joomla elements - notes, contacts, news feeds, links, and so on.

Creation and editing

Go to the Material Manager. To add new information to Joomla, use the “Create” button in the toolbar (toolbar).

All the main settings are located on the left in the block called “Create material”.

  • Title is a required field. Whether or not to display the title on the site can be set in the “Display Options” subsection on the right.
  • Alias ​​- automatically filled in if Joomla is configured with .
  • Category – we’ve already talked about categories.
  • Status - there are four states to choose from: published, unpublished, archived, in the trash. We'll talk about states in more detail below.
  • Access—set the access level.
  • Rights - rights are configured at the very bottom of the page.
  • Favorites—mark as favorite.
  • Language—specify the language.
  • ID - unique identification number.
  • The text of the material - and here is the field for entering information.

Joomla provides a choice of three content creation/editing tools:

  1. TinyMCE - visual editor;
  2. CodeMirror - editor with code syntax highlighting;
  3. Without an editor - there’s nothing here, a blank window without any help in formatting the text.

Display options

For each material, you can set your own display parameters, but it is better to immediately set the default values ​​and use them in the future. Default display options are set in the Material Manager settings.

Just mark as “Show” those items that interest you. There shouldn’t be any difficulties understanding the options, because when you hover the mouse cursor over them, a hint appears in Russian.

Go to the category manager and click the “Create” button in the toolbar.

Most of the settings are identical to those already discussed above. Only the “Parent” option has appeared, which allows you to set the parent category. If you leave “No parent”, then the category will be top level. The category description should be filled out if you are going to display it on the site pages.

Display options

Categories have their own display parameters, which can be set for a single category or for all at once. Default values ​​for display options are set in the Category Manager settings.

To understand them, use the tips for each parameter. Also, don't be afraid to experiment. You set some settings - looked at the result, if you didn’t like it - experiment further.

Display parameters can be overridden by setting the corresponding menu item responsible for displaying them on site pages.

Material condition

To change the state, you need to tick the desired material and use the buttons in the toolbar. There are 5 states in total:

  • Published - the material is ready for publication and all that remains is to create the appropriate menu item to display it on the site page.
  • Not published - if there is already a page with this material, then when you remove it from publication, the page will display a 404 error - page not found.
  • Favorites - content marked as favorites can be displayed separately from others.
  • To archive—articles sent to the archive are automatically grouped by month. The archive can be displayed either in the content area separate page, using the “Archival Materials” menu type, or using the “Archive Materials” module.
  • In Trash—move to the Trash and then empty it.

Only by going into the trash can you empty it. To do this, mark unnecessary items and click on the “Empty Trash” button in the toolbar.

There is even a separate section for the chosen ones.

Five of the six buttons from the toolbar shown in the picture above have been disassembled, leaving only one - “Unlock”. Joomla is multi-user, that is, several people can work simultaneously with its admin panel. To prevent several users from working with one material at once, Joomla automatically blocks access to it after the first opening. Thus: while one user edits the material, it becomes inaccessible to other users.

The lock is removed immediately after correct closure—by clicking the “Save and Close” or “Close” button. If the material was closed incorrectly, using the back button in the browser or simply closing the browser tab, the material remains blocked. A lock icon appears next to its name in the manager.

If the material is in currently is not used, you can unlock it by clicking on this lock icon, or by checking the box and using the “Unlock” button from the toolbar.

To unblock all inactive material in Joomla, use the “Site” - “Maintenance” - “Unlock” section.

Joomla on the server allocates a separate folder /images for media files. You can work with it directly, for example through ftp client, and through the Media Manager section.

There is nothing difficult about working with a media manager. On the right you can see the directory tree, which is located in the /images folder, on the left the contents of the selected directory, and at the bottom there is a “Create directory” button and a form for uploading new files to the server.

There are three buttons in the toolbar:

  • Reference - brief instructions on working with a media manager in English.
  • Delete - deletes the selected directory or file. Please note that there is no trash can here, so it is deleted immediately and forever.
  • Settings - we’ll look at them now.
  • Allowed extensions - a comma-separated list of file extensions available for uploading to the server.
  • Maximum size (in MB) - Joomla will prevent you from uploading files whose size exceeds the size specified in this paragraph. To remove restrictions, enter “0”. In addition, the server itself can impose its own restrictions on the maximum allowed size of downloaded files.

Path to the directory with files and images - you can override the folder for storing media files. According to the warning, redefining the directory for honey files can lead to broken links, so you should be careful with this, especially if you are already using files from standard folder/images.

  • Download restriction - makes downloading media files unavailable for users with rights below “Manager”.
  • Check file type (MIME) - filter files uploaded to the server by their type and extension. Allowed/disallowed types and extensions are specified in the options below.
  • There is also image filtering, which is done by extension - the “Allowed image extensions” option
  • Use Flash Loader - Allows you to download multiple files at once.

Publication on the site

In joomla, menu items are responsible for creating site pages, and menu item types are responsible for their content. So, to display material on the site pages, you should use a menu item of one of seven types:

  1. Archived materials - displays a list of materials from the archive.
  2. Material - specific material will be displayed in the page content area.
  3. List of all categories - displays a list of categories.
  4. Category Blog - Displays a description of the selected category and its children.
  5. List of category materials - displays a list of materials with brief description from a certain category
  6. Favorites - displays a list of favorites.
  7. Create material—a page with a form for creating a new material. Available only to registered users with access rights allowing the addition of new material to Joomla. For other readers, a page will appear with a 403 error - access denied.

In addition, Joomla modules with links to existing pages with categories and materials can be added to the site:

  • Categories - Displays a list of categories that belong to one common parent category.
  • News - displays a fixed number of materials from one or more categories. The selection criterion may be date of publication, date of creation, order of occurrence, or randomly.
  • Most Read - a list of materials with the highest number of views.
  • Category Content List—Displays a list of content from one or more categories.
  • Materials in the archive - a list of records from the archive, sorted by month according to the date of their creation.

As I promised, starting with this article, we will get acquainted with various types of menus in Joomla. And we will start from the very first - this is " List of materials in the archive".

If you don’t know, then read the corresponding article about it first. Also, if you don’t know, then you also need to read about it first.

Now let's start analyzing the menu type - " List of materials in the archive":

Various settings on the left we have already discussed in the article: . But the options on the right differ depending on the type of menu. And now we will get acquainted with the parameters for " list of materials in the archive":

As we can see, there are three blocks. Let's start with the block: " Options - Basic":

  • Order. Here, from the drop-down list, you need to select an option for sorting materials when displaying them on the page.

The second block is much larger. But, nevertheless, I give a description of all the settings:

  • Show links to closed content . There are links that are open only to registered users (I think you've seen this often). And with this option you can show all visitors that links exist and display them. However, if the visitor is not authorized, he will still not be able to follow the link - he will be asked to log in first.
  • Show title text. Show article titles or not.
  • Title as a link. Show title in plain text or as a link to an article.
  • Show introductory text. This setting allows you to display the introductory text of materials on the page.
  • Section title. Show or hide the title of the section to which the article belongs.
  • Section title as a link. Display the section title with a link or plain text.
  • name of category. Whether or not to show the name of the category to which the article belongs.
  • Category name as link. Show the category name as a link or in plain text.
  • Author's name. Whether or not to show the author of the article.
  • Creation date and time. Display the date and time the article was created or, conversely, not display it.
  • Last modified date and time. Whether or not to display the date and time the article was last modified.
  • Show navigation. Show article content or not. This refers to materials that consist of several pages.
  • Link more details. If you put " Show" and the material has a main text, then this link will appear. If at least one of the conditions is not met, then the link " More details" will not be displayed.
  • Votes/Article Rating. Show the rating of the article, and also allow users to rate it.
  • Icons. Show print icons, PDF And Email or not.
  • PDF icon. Show or hide icon PDF.
  • Print icon. Show or hide the icon for displaying the printable version of the article.
  • Email icon. Display an icon for the ability to send an article via Email to a friend, or, conversely, not to withdraw.
  • Hits. Show or hide the number of views of an article.
  • Show in RSS. Here you can choose to show only the introductory text or only the main text. It’s a matter of taste, but I advise you to show only the introductory one, so that the person subscribed to your RSS feed, I came to your site to finish reading the article.

The third and final block is " Options - System":

  • Page title. A very important option in which you need to put the tag value<title> on the page where the menu item will lead.
  • Show page title. Whether or not to show the page title not only in the tag<title>, but directly and in the site content.
  • Page class suffix. If you want to make an individual design, then to prevent confusion with others CSS classes, You need to specify a unique suffix that you will use when designing the page.
  • Menu picture. Here you can select a picture that will be located next to the name of the menu item.
  • SSL enabled. This option determines whether a secure connection should be required when following this link. In most cases, you should leave " Ignore".

So we looked at all the settings when creating a menu item like: " List of materials in the archive". In the next article I will continue to describe this process, but with other Joomla menu types.