VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Marga123 on January 06, 2012, 17:00:43 PM

Title: How To Make a XML Installer For New Layout Please
Post by: Marga123 on January 06, 2012, 17:00:43 PM
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
Title: Re: How To Make a XML Installer For New Layout Please
Post by: PRO on January 06, 2012, 17:07:37 PM
yea, download the default one, and look at it. Change the values

Title: Re: How To Make a XML Installer For New Layout Please
Post by: Marga123 on January 06, 2012, 17:21:43 PM
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
Title: Re: How To Make a XML Installer For New Layout Please
Post by: PRO on January 06, 2012, 17:42:54 PM
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?

Title: Re: How To Make a XML Installer For New Layout Please
Post by: Marga123 on January 06, 2012, 17:56:16 PM
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
Title: Re: How To Make a XML Installer For New Layout Please
Post by: PRO on January 06, 2012, 18:34:57 PM
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">
Title: Re: How To Make a XML Installer For New Layout Please
Post by: Marga123 on January 12, 2012, 12:53:47 PM
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