News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How To Make a XML Installer For New Layout Please

Started by Marga123, January 06, 2012, 17:00:43 PM

Previous topic - Next topic

Marga123

Hi There  :)
I've heard I can make a joomla xml installer for virtuemart 2 product flypages.
does anyone have a example how to do this please?

Many Thanks and Best Regards

Charles

PRO

yea, download the default one, and look at it. Change the values


Marga123

Hi BanquetTables.pro
Thank you always for your fast replies

Sorry do you mean this file

com_virtuemart/views/productdetails/tmpl/default.xml


<?xml version="1.0" encoding="utf-8"?>
<metadata>
    <layout title="COM_VIRTUEMART_PRODUCTDETAILS_VIEW_DEFAULT_TITLE">
          <message><![CDATA[COM_VIRTUEMART_PRODUCTDETAILS_VIEW_DEFAULT_DESC]]></message>
    </layout>
    <state>
        <name>COM_VIRTUEMART_PRODUCTDETAILS_VIEW_DEFAULT_TITLE</name>
             <description><![CDATA[COM_VIRTUEMART_PRODUCTDETAILS_VIEW_DEFAULT_DESC]]></description>

        <url addpath="/administrator/components/com_virtuemart/elements">
            <param name="virtuemart_product_id" section="com_virtuemart" type="vmproductsmenu"  value_field="product_name" label="COM_VIRTUEMART_PRODUCTDETAILS_FIELD_SELECT" description="COM_VIRTUEMART_PRODUCTDETAILS_FIELD_SELECT_DESC" />
        </url>
    </state>
     
    <fields name="request" >
        <fieldset name="request" addfieldpath="/administrator/components/com_virtuemart/models/fields">
            <field name="virtuemart_product_id" type="product"
            label="COM_VIRTUEMART_PRODUCTDETAILS_FIELD_SELECT"
            required="true"
            description="COM_VIRTUEMART_PRODUCTDETAILS_FIELD_SELECT_DESC"
         />
        </fieldset>
    </fields>
</metadata>


Many Thanks and Best Regards

Charles

PRO

only 1 way to find out, try one

, but you know you can just upload them to the folder though right? Or is this for distributing to others?


Marga123

Thank you for your reply.
Yes, it's for distributing to others.

Is there anything in the virtuemart 2
manuals how to make a template xml installer
because, that will be very helpful

Many thanks again for your time

PRO

no manuals on this.
Its going to be the same as installing themes for all joomla components.

Do you have any xml theme installer files for other components?

For module, and template there is a type=module   type=template

Etc, Im sure its going to be different for view/themes though. It somehow has to know what files go where.

edit::

I just looked in my mosets tree site at one of the themes.
It has this.
<install type="template">

Marga123

Sorry for the late reply BanquetTables.pro

Is it possible please can you send me
the mosets tree site theme xml please
because it will really help

Many Thanks again

Best Regards

Charles