Hello everyone,
Only recently I started to work with Portals and I would really appreciate your help!
Here my Issue:
I have created 2 Web Pages that have the same parent web link:
- customer/active-customer;
- customer/prospect-customer;
Both are using different custom templates where I am deciding which is the right entity list to display, actually the templates have almost the same content and the only difference is the key value of entity list that they should call.
Somehow, both of my pages are using only one of the templates, I have checked the pages properties and I am sure that the template names used are correct.
Template1
{% fetchxml webroleList %} <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="adx_webrole"> <attribute name="adx_webroleid" /> <attribute name="adx_name" /> <order attribute="adx_name" descending="false" /> <link-entity name="adx_webrole_contact" from="adx_webroleid" to="adx_webroleid" visible="false" intersect="true"> <link-entity name="contact" from="contactid" to="contactid" alias="ab"> <filter type="and"> <condition attribute="contactid" operator="eq" value="{{user.id}}" /> </filter> </link-entity> </link-entity> </entity> </fetch> {% endfetchxml %} {% for item in webroleList.results.entities %} {% if item.adx_name == 'Role1' %} {% include "entity_list" key:"Partial-ActiveCustomer-List" %} {% endif %} {% if item.adx_name == 'Role2' or item.adx_name == 'Role3' or item.adx_name == 'Role3' %} {% include "entity_list" key:"Full-ActiveCustomer-List" %} {% endif %} {% endfor -%}
Template2
{% fetchxml webroleList %} <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="adx_webrole"> <attribute name="adx_webroleid" /> <attribute name="adx_name" /> <order attribute="adx_name" descending="false" /> <link-entity name="adx_webrole_contact" from="adx_webroleid" to="adx_webroleid" visible="false" intersect="true"> <link-entity name="contact" from="contactid" to="contactid" alias="ab"> <filter type="and"> <condition attribute="contactid" operator="eq" value="{{user.id}}" /> </filter> </link-entity> </link-entity> </entity> </fetch> {% endfetchxml %} {% for item in webroleList.results.entities %} {% if item.adx_name == 'Role1' %} {% include "entity_list" key:"Partial-ProscpectCustomer-List" %} {% endif %} {% if item.adx_name == 'Role2' or item.adx_name == 'Role3' or item.adx_name == 'Role3' %} {% include "entity_list" key:"Full-ProscpectCustomer-List" %} {% endif %} {% endfor -%}
Note:
Something maybe worth to mention is the fact that all the entity lists belong to the same CRM entity.
The template was working when I had only one, but customer wanted to divide further the list and the result in different pages and I had to switch from 2 to 4 entity list & from 1 to 2 web pages.
Many thanks in advance!
*This post is locked for comments