Joomla! Custom Modules - php

I'm very new to Joomla! and I'm building a custom module. I've looked at the documentation and although there is a tutorial for creating custom modules:
https://docs.joomla.org/J3.x:Creating_a_simple_module/Developing_a_Basic_Module
...there's no instruction for how to actually use these files, or where to put them, or how to properly install them! I've created all 4 files (3 .php, 1 .xml) and I tried putting them in the same folder structure and location as the other "stock" modules (administrator / modules / mod_helloworld etc.) but the module doesn't show up as an option when creating a new module in the back end. I also tried zipping the group of files and installing through extension manager and that didn't work either.
Perhaps I'm coming at this all wrong? This just seems to be something that is assumed knowledge in the Joomla documentation tutorial. Are there other files that need to be created? Or edits need to be made to existing files?
I'm using Joomla! 3.4.1 and am working on it from a server. I apologize in advance for what seems like a very stupid question.

Once you have created your test module files you can put them in a folder that will have the same name as the one you used for your module in the XML file.
The Joomla naming convention is to start with mod_ for modules.
Let's say the module name is mod_myfirst_module in the XML file
<name>mod_myfirst_module</name>
The install folder must use the same name.
To install it you have two options:
For testing you can upload the files directly to the modules folder of your Joomla site (frontend modules go into modules folder, backend modules go into administrator/modules folder) and use the Discover functionality in the Extension Manager of Joomla administation backend. Menu Extensions->Extension Manager-> Discover on the left column.
Click on the button Discover and your module will show in the list if you have properly set the files.
You can create an installer package. Zip the folder you previously created with the module files, go to Joomla administation backend. Menu Extensions->Extension Manager->Install on the left column Click on Upload Package file tab and select the Zip archive you created. If the archive contains all the files needed, the module will be installed.

Delete mod_helloworld from administrator/modules and then
.zip this and instal using Extensions>Instalator in Joomla admin panel.
If it will not work, paste the error here.

Related

Drupal Recruiter issue with setup

I am very new to using this recruiter module on drupal and hence i decided to ask some few questions here.
I have recently downloaded this drupal Recruiter module, setting it up is where i have few challenges as i have never done this before, hence i have to ask here.
How do i go about setting it up. Like inside my Control Panel do i have to extract it and set it up from there using the database configuration details or? Please I do need some form of clarification here.
There are few different ways for installing drupal modules:
You can download module's archive, unpack it and upload module dir to (most common place) sites/all/modules. Then go to modules admin page and enable the module.
If you have drush installed you can use it to download, install and activate the module
If you have FTP access for your site you can install new module from Drupal's back-end. You just have to provide path to module archive. For example: http://ftp.drupal.org/files/projects/name.tar.gz

How to work with repository with module or extension for CMS

Lets say I'm working with module for CMS. Files of module can be in a different folders. For example, file structure can look like:
/catalog/controller/my_controller.php
/catalog/view/my_view.php
/admin/controller/my_controller.php
/admin/view/my_view.php
I want to version my module and at the same time i'd like to keep it in the ready-for-test environment.
While I'm using git what is the best way to work with the repo? Should i keep all the module files in a separate folder? But then I'll need to copy them to actual environment for tests each time perform changes on it.
Or mb can I install git-repo and module to CMS root folder and put all the CMS files to "Ignore List"?
What would you do?
When you are working on the extension you want this extension to be inside working environment. So what you can do is to install your extension into CMS and exclude all CMS files from the git repository with .gitignore
*
!/README.md
!*/
!*my_controller*
!*my_view*

Problems with adding an extension in Magento Root directory?

Not sure if i'm at the right place but oh well,
Since a month or two I've started working at a company which uses Magento. Everything was going smoothly, except for the fact that I now try to add an extension to the root directory of Magento through cPanel, in the installation guide I found the following steps:
Installation:
Before installing the extension, please make below notes complete:
Clear your website cache under located at var/cache directory.
If you’re installing extension on live website, please backup your store database and web directory.
Disable Compilation by going to Admin Control Panel -> System -> Tool -> Compilation.
Multi PRODUCT EDITOR Installation:
Extract Multi_Product_Editor-1.0.0.tgz file.
Upload the extracted folders (/app, /js, /skin) respectively into the root of your Magento installation.
From the Admin Control Panel, refresh cache at System => Cache Management. Log out and log in back
now I have found a problem with uploading the extracted folders, because
There are already a folder called App and one called Skin and I'm not sure if I should overwrite those
When I wanted to upload the specific folders, it can't, I can't upload the folder "App" and it only allows me clicking the folder and searching through the folder's folders.
I'm still new to Magento but I learn everyday! please tell me if I'm doing something wrong or if I need to take a step back, I gladly appreciate all your help!
Also, if I wasn't specific enough, or if you need more details, just say so and I'll try adding as much as I can :)
kind regards
Clay
In magento app and skin are mandatory folders so you must not erase them. But if your module you want to add is adding properly, it will just add based on magento structure and create a new module in community or local for the app, and a new design in skin.
Be always careful of where the modules installs things anyway

Joomla - Plugin available in more languages

I need to know and how, if I can put my custom joomla-plugin v2.5 in multiple languages.
Actually, when I upload my Plugin on the Extension Manager, I can't install and joomla say: Unable to write file.
Help please :)
It could be due to folder permissioin.
Why can't you install any extensions?
JFolder::create: Could not create directory - Joomla

How to install Joomla 2.5 component by copying the files without using the J install manager

When installing custom component on a Joomla 2.5 everything works well. If I just copy and paste the content of the component in the appropriate folder /components/com_mycomponent without installing it the directory structure becomes the same but the component doesn't get found when requested.
I assume that installation is needed for a component to work. My question is how can I simulate this installation without actually installing the component. So how can I tell Joomla that there is a component copied in the components directory.
I need that to be able to create test components and develop them without actually installing them on the platform until they are ready.
Thanks in advance.
Select Extensions → Extension Manager from the drop-down menu of the Joomla! Administrator Panel. Then select the Discover menu item in the Extension manager screen that appears.
As it says in the Joomla docs manual: Discover searches the Joomla! installation directories for uninstalled extensions. Any uninstalled extensions found will be displayed in the extension listing. Caches the search results so they continue to be displayed on subsequent visits to this screen."
Here is the link to the actual manual page.
Hope this helps.
Stoyan
I have tried this for my projects
First, login to your Admin panel
Go to Extend Tab, then click on Extension Manager
You will find Discover tab and the component you have copied in the list. just click on Install button at the top and it will work as you have install any component.

Categories