create template joomla3 - joomla

hi everyone I am using joomla 3 for my project
I create a template. this is my templateDetail.xml
<files>
<folder>css</folder>
<folder>images</folder>
<folder>js</folder>
<filename>index.php</filename>
<filename>index.html</filename>
<filename>templateDetails.xml</filename>
</files>
<positions>
<position>menu</position>
<position>cabecera</position>
<position>slider</position>
<position>carrusel</position>
<position>noticias</position>
<position>menuArquero</position>
<position>menuHardware</position>
<position>contenido1</position>
<position>contenido2</position>
<position>contenido3</position>
<position>contenido4</position>
<position>footer</position>
<position>debug</position>
</positions>
</extension>
I create my zip file and try to install but obtain this error
JInstaller: :Install: File does not exist /Users/maitepiedrayera/Sites/VistaMar/tmp/install_50eff5971c7cd/VistamarTemplate/js
any idea!

Related

Create nuget package and installing issues

I created a nuget package, all seems to be ok (no error message), when I install it from Package Manager Console, the dll is in XXX/lib/lib ... I don't know why there are two lib folder ??? I tried to change my nuspec with several solutions but I always had the same folder
<package>
<metadata>
<id>Telerik.Reporting.OpenXmlRendering</id>
<version>8.1.14.804</version>
<title>Telerik.Reporting.OpenXmlRendering</title>
<authors>XXXXX</authors>
<owners>XXXXX</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Assembly XXXX</description>
<copyright>Copyright XXXX</copyright>
<references></references>
<tags></tags>
</metadata>
<files>
<file src="*.dll" target=".\" />
</files>
</package>
I tried
<file src="*.dll" target="lib\net45" />
<file src="*.dll" target="lib\" />
<file src="*.dll" target="" />
And the installed always put the dll in :
C:\XXXXXX\packages\Telerik.Reporting.OpenXmlRendering.8.1.14.804\lib\lib
Do you have any ideas ?
Thanks

Joomla Component Develpment: JInstaller: :Install: Cannot find Joomla XML setup file

I developed a joomla component. But I got this error while trying to install it.
"JInstaller: :Install: Cannot find Joomla XML setup file"
Error
Path does not have a valid package.
Below is myforms.xml file
<? xml version = "1.0"encoding = "utf-8" ?>
<extension type="component" version="3.2" method="upgrade">
<name>My Forms!</name>
<creationDate>Sept 09 2014</creationDate>
<author>Toni Ezeamaka</author>
<authorEmail>tons613#ymail.com</authorEmail>
<copyright>A-One GlobalSoft Technologies</copyright>
<version>1.0.1</version>
<description>A component for adding forms to my sites</description>
<installfile>install.php</installfile>
<uninstallfile>uninstall.php</uninstallfile>
<scriptfile>script.php</scriptfile>
<update>
<schemas>
<schemapath type="mysql">sql/updates/mysql/</schemapath>
</schemas>
</update>
<files folder="site">
<filename>index.html</filename>
<filename>myforms.php</filename>
<filename>controller/myforms.php</filename>
<folder>views</folder>
<folder>models</folder>
</files>
<administration>
<!-- Administration Menu Section -->
<menu>My Forms!</menu>
<files folder="admin">
<filename>index.html</filename>
<filename>myforms.php</filename>
<filename>controller.php</filename>
<folder>sql</folder>
<folder>tables</folder>
<folder>models</folder>
<folder>views</folder>
</files>
</administration>
</extension>
can someone help please?
The Issue was with the space in <? xml
I changed it to <?xml version = "1.0"encoding = "utf-8"?>
and it worked. Thanks to #Irfan

After JUpdate my content position is gone from list - joomla

I used JUpdate to update a joomla 1.5.23 site to 2.5
when i tried to re-link the content area to the article i cant find the position from my main content area in the menu anymore.
the left sidebar is still there and also the right one.
Can anyone shine some light on this? i already tried all the positions from the template twice but i cant seem to find it?
--- template details ---
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.6//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site" >
<name></name>
<version>1.0.0</version>
<creationDate>07/2009</creationDate>
<author>SiteGround</author>
<authorEmail></authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license>GNU/GPL</license>
<description>TEMPLATE_DESCRIPTION</description>
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
<filename>template_thumbnail.png</filename>
<filename>templates.php</filename>
<filename>template_preview.png</filename>
<filename>error.php</filename>
<folder>css</folder>
<folder>images</folder>
</files>
<positions>
<position>user4</position>
<position>user3</position>
<position>breadcrumb</position>
<position>user2</position>
<position>left</position>
<position>right</position>
<position>debug</position>
</positions>
<languages>
<language tag="en-GB">en-GB.tpl_siteground-j15-80.ini</language>
</languages>
<administration>
<languages folder="admin">
<language tag="en-GB">en-GB.tpl_siteground-j15-80.ini</language>
</languages>
</administration>
</extension>
I'm not too sure why you used JUpdate to update to 2.5. I personally don't always trust 3rd party extensions to update the CMS as it sometimes causes problems. What you should do is (providing you have a backup of your old 1.6 site):
Upgrade to 1.6.6 by downloading the patch and extracting it via FTP on to the root of your site
IN the Joomla Backend, go to Extensions >> Extension Manager >> Find Updates
If you can't find any updates, then go to Options and select the Long Term Release. Once saved, Purge Cache and try to find updates again.
Update:
change this:
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
to this:
<jdoc:include type="component" />
So basically remove the PHP that is wrapped around

Joomla Install/Uninstall SQL FIles Location in a Package

I am building a Joomla package with a component, multiple modules and a plugin.
My question is, where should I place the install.sql and uninstall.sql files, relative to the package root? Right now they are at root/com_mypackage/administrator/sql/install.mysql.utf8.sql and they are defined in the component's manifest as:
<install><!-- Runs on install -->
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
</sql>
</install>
However, this doesn't seem right to me. Should I include administrator before the path in the <file> tag?
Of course, the component itself will be packed in its own .zip, to be included in the Package's XML install file.
No there is no need to this tag in administrator tag. you missing some in manifest.xml
for fully doc try:-
http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Adding_an_install-uninstall-update_script_file
http://docs.joomla.org/Components:xml_installfile
on my end manifest.xml (my .sql in admin/install/install.mysql.utf8):-
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="2.5" method="upgrade">
<name>Social</name>
<license>Open Source License, GPL v2 based</license>
<author>me</author>
<authorEmail>developers#me.com</authorEmail>
<authorUrl>http://www.me.com</authorUrl>
<creationDate>2012-01-01</creationDate>
<copyright>2013, me</copyright>
<version>1.1</version>
<description></description>
<!-- Installation -->
<install>
<sql>
<file driver="mysql" charset="utf8">install/install.mysql.utf8.sql</file>
</sql>
</install>
<installfile>install/install.php</installfile>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">install/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>
<uninstallfile>install/uninstall.php</uninstallfile>
and rest of

How to create a simple administration panel for my joomla plugin

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

Resources