I tried installing advanced custom HTML plugins on my Joomla 3.2 based site but I keep getting the same error again and again
JInstaller: :Install: Cannot find Joomla XML setup file,error
The xml file does exist inside the zip file. Here are the contents of the xml file
<?xml version="1.0" encoding="UTF-8"?>
-<install client="site" method="upgrade" version="1.5.0" type="module">
<name>Custom HTML advanced</name>
<author>Pluginaria.com</author>
<creationDate>November 2013</creationDate>
<copyright>Copyright (C) 2013 Pluginaria.com.</copyright>
<license>GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html</license>
<authorEmail>feedback#jtricks.com</authorEmail>
<authorUrl>www.pluginaria.com</authorUrl>
<version>2.3</version>
<description> Allows to place custom HTML into module position. Unlike standard mod_custom, can modify module chrome it is displayed with (to remove boxes around the module usually imposed by some templates in certain module positions). </description> -<languages>
<language tag="en-GB">language/en-GB/en-GB.mod_custom_advanced.ini</language>
</languages> -<files>
<filename module="mod_custom_advanced">mod_custom_advanced.php</filename>
</files> -<params>
<param type="textarea" cols="40" rows="32" description="" label="Custom HTML" default="" filter="raw" name="customHtml"/>
<param type="textarea" cols="40" rows="16" description="" label="Custom PHP code" default="" name="evalPhp"/>
<param type="text" description="Use 'none' (without quotes) to remove chrome imposed by template." label="Override module inclusion style (chrome) set by template" default="" name="moduleStyle"/>
<param type="spacer" default="HTML Header options" name="#spacer"/>
<param type="textarea" cols="40" rows="16" description="Will be placed inside style tag in HTML header." label="CSS style overrides" default="" name="cssOverride"/>
<param type="text" description="Style sheet (.css) file. Will be referenced in HTML header." label="CSS style sheet" default="" name="styleSheet"/>
<param type="text" description="Javascript file (.js) file. Will be referenced in HTML header." label="Javascript file" default="" name="javascriptFile"/>
</params> -<params group="advanced">
<param type="text" description="PARAMMODULECLASSSUFFIX" label="Module Class Suffix" default="" name="moduleclass_sfx"/> -<param type="list" description="Select whether to cache the content of this module" label="Caching" default="1" name="cache">
<option value="1">Use global</option>
<option value="0">No caching</option>
</param>
</params>
</install>
Here is the folder structure of the plugin if that will help
It look like your module is not compatible for Joomla 3.x the XML file is for older Joomla versions.(1.5.x)
You have to create new xml file based on Joomla 3.x version.
Download the module from this link the make it that way , then it will works..
Hope its helps..
Joomla 3.1 uses a root element of extension instead of install in the XML manifest file. My guess is plugin isn't for your version of Joomla.
Related
I am currently working on a Magento project where I have to add a custom system configuration to manage my hosts.
I followed an old configuration I have used in an old project which uses the Magento version 2.2.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="catalog" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="config" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Setup</label>
<field id="host" translate="label" type="text" sortOrder="67" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Host</label>
</field>
</group>
</section>
</system>
</config>
But starting from Magento 2.3 this solution doesn't work anymore.
Do I have to enable the configuration manually in order to see it in the admin configuration panel?
I tried your snippet and it works fine with me.
Maybe there is a confusion between the Catalog Tab (blue underline), and the 'Catalog Section' (yellow highlight) ?
Tell me if so, i'll give you the snippet that you need.
Inside the section, you are missing the following nodes:
<section ...>
<tab>$TAB</tab>
<label>$LABEL</label>
<resource>$RESOURCE</resource>
</section>
I'm trying to set a custom icon for a specific file extension in the solution explorer in visual studio 2019. What do i need to add to the vsix project to make it happen?
I have tried to add a imagemanifest including the new icon as a .png file and in the pkgdef hook it up to the extension, but it will not show up. I tried a lot of different things to make it work. When i set an KnowMoniker as the icon for the extension it does show up.
The manifest is set to content and include in vsix is set to true.
The icon is set to resource.
icon.imagemanifest
<?xml version="1.0" encoding="utf-8"?>
<ImageManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/VisualStudio/ImageManifestSchema/2014">
<Symbols>
<String Name="Resources" Value="/Test;Component/Resources" />
<Guid Name="Guid" Value="{35e0e52d-a955-451d-86e4-5813fef55368}" />
<ID Name="icon" Value="1" />
</Symbols>
<Images>
<Image Guid="$(Guid)" ID="$(icon)">
<Source Uri="$(Resources)/icon.png">
<Size Value="16" />
</Source>
</Image>
</Images>
<ImageLists />
</ImageManifest>
icon.pkgdef
[$RootKey$\ShellFileAssociations\.ext]
"DefaultIconMoniker"="35e0e52d-a955-451d-86e4-5813fef55368:1"
I am using Magento 2.2.3 version. I have facing the problem in override core Magento CatalogInventory system xml file.
In default magento 2 backorders system configuration setting is global. I want to change that setting website wise.
For this i have created one module in which etc/adminhtml directory i have created system.xml. Here is my custom module system.xml code.
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="cataloginventory" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="item_options" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="backorders" translate="label" type="select" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Backorders</label>
<source_model>Magento\CatalogInventory\Model\Source\Backorders</source_model>
<backend_model>Magento\CatalogInventory\Model\Config\Backend\Backorders</backend_model>
<comment>Changing can take some time due to processing whole catalog.</comment>
</field>
</group>
</section>
</system>
</config>
I have research in google and found this link :
https://inchoo.net/magento-2/allow-backorders-website-scope/
but it's did not worked for me.
I want to override Magento_CatalogInventory system.xml file and change backorders setting showInWebsite from 0 to 1.
Can you please help me for override or chnage core system.xml file in my custom module ?
I'm trying to make a separate feature for registering a file association in WiX installer:
<Feature Id="AssociationFeature" Title="File Association" Description="Register file association">
<ComponentRef Id="AssociationComponent" />
</Feature>
However, the parts responsible for registering a file association and installing the executable itself are located in different components:
<!-- Component containing application executable -->
<Component Id="ExeComponent" Guid="F183BFA1-A7AB-45E4-1FB7-0A680826C58E">
<File Name="my-application.exe" Id="Executable" />
</Component>
<!-- Component registering the file extension association -->
<Component Id="AssociationComponent" Guid="1575A831-5FE0-4720-9646-535C88CDE46B">
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\my-application.abc" Name="FriendlyTypeName" Value="My Application" Type="string" />
<ProgId Id="my-application.abc">
<Extension Id="abc">
<Verb Id="Open" TargetFile="Executable" /> <!-- This gives the error -->
</Extension>
</ProgId>
</Component>
This leads to the following error:
error LGHT0204 : ICE69: Mismatched component reference. Entry '...' of the Registry table belongs to component 'AssociationComponent'. However, the formatted string in column 'Value' references file 'Executable' which belongs to component 'ExeComponent'. Components belong to different features
Is there any way to register a file association in a separate component different from the executable?
The general way to deal with this is to have two components. Both contain the file, but only one component contains the shortcut. At install time just choose the appropriate component. As long as the conditions on the components (or the features) ensure that both components won't be installed, this just works.
I think the problem lies in my xml.
<?xml version="1.0" encoding="UTF-8"?>
<extension version="2.5" type="plugin" group="content">
<install>
<name>Content - eya</name>
<author>eya</author>
<creationDate>February 2013</creationDate>
<copyright>(C) 2013 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>anigag#grzeit.com</authorEmail>
<authorUrl>www.eya.com</authorUrl>
<version>2.5.0</version>
<description>Adds eya plugin ot your site</description>
<files>
<filename plugin="eya">eya.php</filename>
</files>
</install>
<administration >
<filename>admin.php</filename>
</administration>
</extension>
This is my main php file that executes the content:eya.php.
I have got another file (admin.php) that takes 2 session variables from eya.php and put them in an iframe. There are two problems. One is that I dont know if the eya.php runs everytime before admin.php (or at least once to set the session variables). The second problem is that I dont know how to display only the admin.php and nothing else.
to build an admin interface for your plugin just add the config part to your xml
<config>
<fields name="params">
<fieldset name="basic">
<field name="testfield" type="text" default="mytest" label="field_label" description="field_description" />
</fieldset>
</fields>
</config>
but I didn't get the part of your admin.php/eya.php