Overloading virtual pages in UGC trees


This feature is available from version 2.11.

General point on virtual pages: Overloading virtual pages

In general, in plugin ugc, virtual pages are linked to tree structures.

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. Example
  3. Overloads on others plugins

General overloads

Description

Overload file name

Default configuration file 

Intermediate pages in a tree structure

ugc.transitional.xml

<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>

Reminder: Overload files should therefore be named: ugc.transitional.xml for intermediate tree pages and ugc.page.xml for final tree pages.

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.

Example

Overloaded configuration file for last-level virtual pages ( ugc.page.xml)

<model template="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>
        <content view="main"/>
    </zone>
</model>
  • Change 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