Can i install component and plugin with single extension in joomla package? - joomla3.0

I want to know if we can install plugin and component with a single extension? for example i created a plugin to send the trackback, and i create a component to import articles and i want to include them in a single package . Is it possible?Thanks in advance.

Sorry My bad. There is this thing called package in joomla where you can pack module and plugin or vice-versa.
You can find the detailed explaination here.Sorry for the quick question
Joomla Packages

Yes, it is possible... Try http://joomla-extensions-packager.org, there is a form for generating extension packages online by uploading extensions / filling a form. If you need some automation, you can use the php library to generate your packages programatically (by php cli scripts, phing etc.)

Related

ModuleNotFoundError: no module named 'transformers'

this is my first post and I am very new to coding so please let me know if you need more information. I have been running some AI to generate artwork and it has been working but when I reloaded it the script won't work and it is now saying "No module named 'transformers'". Can anyone help me out? It was when I upgraded to google colab pro that I started to encounter issues although I am not sure why that would make a difference
ModuleNotFoundError
Probably it is because you have not installed in your (new, since you've upgraded to colabs pro) session the library transformers. Try to run as first cell the following: !pip install transformers (the "!" at the beginning of the instruction is needed to go into "terminal mode" ). This will download the transformers package into the session's environment.
assuming you are referring to the module here: https://pypi.org/project/transformers/
you need to install transformers with pip
after you install transformers, make sure to import it , and import the Module youre gonna use

Is there a way to get Atom to autocomplete 'html' tags when building React Apps?

I'm just starting to learn React and am enjoying using it. However, it is very frustrating to me that Atom doesn't autocomplete html tags in .js files. Is there a way to fix this?
Yes, install this plugin on your atom https://orktes.github.io/atom-react/#automatic-closing-tag
Yes, I installed a community package "html-shortcuts-react", which I found quite helpful. You could go to Packages -> Settings View -> Install Packages and search for that package.

Joomla 3.xx - how to uninstall and install component or package programmatically

Normally when you want to uninstall or install a component, package, plugin or module, you normally do this manually from within the Joomla admin interface.
In this case I´m looking for a way to programmatically uninstall and install a component or package directly from PHP (within the Joomla framework), probably from a system plugin.
So basically I want to initiate the uninstall and install process of a package programmatically, so that all the components, modules, plugins etc. are uninstalled and installed, the same way the would normally be unstalled and installed by uninstalling and installing the package manually from within Joomla admin.
Can someone give me a hint to how I would accomplish this, preferably using Joomla´s core class specific functions.
I have tried to find information about this by searching various Joomla documentation, but no luck so far.
UPDATE
I have located the core model files that are used when installing and uninstalling extensions from Joomla admin.
I have found a function that I might be able to use for uninstalling extension(s) from a plugin, in this class file:
/administrator/components/com_installer/models/manage.php
The function is: "remove($eid = array())" as part of the class: "InstallerModelManage" which extends "InstallerModel"
I have also found a function to use for installing extension(s) from a plugin, in this class file:
/administrator/components/com_installer/models/install.php
The function is: "install()" as part of the class: "InstallerModelInstall" which extends "JModelLegacy"
Now I only need to find the best (correct) way to include these functions in my plugin file so that I can execute remove($eid = array()) and install()
This is how you call it.
JModelLegacy::addIncludePath(JPATH_ROOT . '/administrator/components/com_installer/models');
$model = JModelLegacy::getInstance('Install', 'InstallerModel');
$model->install();
But It will take some data from input. So you have to prepare it BEFORE
$input = JFactory::getApplication()->input;
$input->set('installtype', 'url');
$input->set('install_url', 'path/to/instalation/asyou/would/enter/it/in/installation/interface');

angular-ui-tree complex to use in project . need guidance

i try to use angular-ui-treeview library in my project available on below mentioned link :
https://github.com/angular-ui-tree/angular-ui-tree
on this , in readme.md ,
in Usage section following things mentioned ;
Download
1.) Using bower to install it. bower install angular-ui-tree
2.) Download from github.
bower install angular-ui-tree exactly do what and if i need to download all the code from github and need to inject in my project then why i need to install angular-ui-tree
i am new to angular and github as well
Please provide guidance to use this treeview in project
what they're trying to say is that first you must install angular-ui-treeview and once it has been installed to your proyect they suggest you to download the example code for you to learn to implement it. All you have to do if you want to learn first is download the code from github and then run it in your machine and get along with it. And when you feel prepared you should install it in your project using bower.
Let me know if helps.

Adding packages like moment.js & account.js to meteor Project

How do I add these JS packages to a meteor project? Do I simply place the JS files in the public folder so the client and server can access them? Or is there some specific steps that I need to follow?
These kind of standalone libraries can be directly placed in the /lib directory under your project.
For use on both the client and the server, place them into project/lib folder.
Or if you want to use them only at client-side, place them as usual in project/client/lib
In short, It depends.
I would recommend you check out http://atmosphere.meteor.com for a list of packages. If what you're looking for is there, install meteorite with npm install -g meteorite (https://github.com/oortcloud/meteorite)
Once you have metorite installed you can install these community packages quite easily using mrt add packagename
Most packages are on http://atmosphere.meteor.com.
But if for some reason the JS package you want isn't on atmosphere, depending on the package, if its a UI package (e.g datepicker, etc) put it in the /client/lib folder to avoid meteor crashing (only accessible by client).
If its a type of module abstractor (e.g backbone - backbone is included in meteor already btw: add using meteor add backbone) you could put it in the /lib directory of your package, it will be referenced automatically by both the server and client.
You have to add the packages via console.
Type "meteor add accounts-password" for example.
See here
Perhaps you should watch some of these videos here
to get an idea how meteor packages are added.

Resources