Overloading virtual pages in UGC trees


This feature is available from version 2.11.

General point on virtual pages: Overloading virtual pages

As plugin ugc can be overloaded by another plugin (e.g. classifiedads), remember to check the virtual page definitions for overloading. 

  1. General overloads
  2. Overloads on others plugins

General overloads

Description

Overload file name

Default configuration file
( Ametys 4.9)

Default configuration file
( Ametys 4.8)

Intermediate pages in a tree structure

ugc-transitional. xml

<model template="ugc-transitional-page">
    <zone id="default"> 
        <service id="org.ametys.web.service.SitemapService">
            <parameters>
                <depth i18n="false">1</depth>
                <all i18n="false">false</all>
                <includeInvisiblePage i18n="false">true</includeInvisiblePage>
            </parameters>
        </service>
    </zone>
</model>
<model template="ugc-transitional-page">
    <zone id="default"> 
      <service id="org.ametys.web.service.SitemapService">
            <depth i18n="false">1</depth>
            <all i18n="false">false</all>
            <includeInvisiblePage i18n="false">true</includeInvisiblePage>
        </service>
    </zone>
</model>

Last-level pages in a tree structure

 ugc-page. xml

<model template="ugc-page">
    <zone id="default"> 
        <content view="main"/>
    </zone>
</model>
<model template="ugc-page">
    <zone id="default"> 
        <content view="main"/>
    </zone>
</model>

Reminder: The overload files must therefore be named: ugc-transitional. xml for intermediate pages of the tree and ugc-page. xml for the last level pages of the tree

These configurations have an impact on the tree structures linked to plugin . However, it is also possible to overload the configurations at the level of each plugin.

  • a template to "page"
  • Addition of the "default" zone
    • Add a service to the zone
    • Placement of content (the content of the tree structure, e.g. ads, in the case of the classified ads tree structure) after the service

Overloads on others plugins

Overloading virtual classified ad pages

Back to top

UGC