This feature is available from version 1.11.
General point on virtual pages: Overloading virtual pages
Description Overloads Example Description In the classifieds tree, created from the "classifieds root" button, there are 2 types of virtual pages that can be overloaded:
Overloads
Description
Overload file name
Default configuration file
Intermediate pages in the classifieds tree
ugc.classified-ads .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 the classifieds tree structure
ugc.classified-ads .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.classified-ads .transitional.xml for intermediate pages in the tree structure and ugc.classified-ads .page.xml for pages containing ads.
Example Overload of the configuration file of the virtual pages that contain the ads (ugc.classified-ads .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 Placing content (the ad) after the service