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.
General overloads Example Overloads on others plugins General overloads
Description
Overload file name
Default configuration file
Intermediate pages in a tree structure
ugc.transitional.xml
Oops! Copy to clipboard failed. Open the code and copy it manually.<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> <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>
<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
Oops! Copy to clipboard failed. Open the code and copy it manually.<model template="ugc-page">
<zone id="default">
<content view="main"/>
</zone>
</model>
<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: 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)
Oops! Copy to clipboard failed. Open the code and copy it manually.<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> <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>
<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