Skip to content

Commit ac34416

Browse files
author
markzegarelli
authored
Merge pull request #3155 from segmentio/DOC-544_integration-object
Update integration object use depending on connection mode
2 parents c2dcc13 + fedb603 commit ac34416

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

src/_includes/content/destination-dossier.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@
4343
<h6>Destination Info</h6>
4444
<ul class="qi">
4545
{% if destMethods.size > 0 %}<li>Accepts {% for method in destMethods%}{% if destMethods.size == 1 %}{{method}} calls.{% else %}{% unless forloop.last == true %}{{method}}, {% endunless %}{% if forloop.last == true%}and {{method}} calls{%endif%}{% endif %}{% endfor %}</li>{% endif %}
46-
<li>Referred to as <strong>{{previous_names | join: '</strong>, or <strong>' }}</strong> in the <a href="/docs/guides/filtering-data/#filtering-with-the-integrations-object">Integrations object</a></li>
46+
{% if previous_names.size == 1 or components.size == 0 %}
47+
<li>Refer to it as <strong>{{previous_names | join: '</strong>, or <strong>' }}</strong> in the <a href="/docs/guides/filtering-data/#filtering-with-the-integrations-object">Integrations object</a></li>
48+
{% else %}
49+
{% if connectionModes.cloud.web == true or connectionModes.cloud.mobile == true or connectionModes.cloud.server == true %} <li>In Cloud-mode, refer to it as <strong>{{previous_names | join: '</strong>, or <strong>' }}</strong> in the <a href="/docs/guides/filtering-data/#filtering-with-the-integrations-object">Integrations object</a></li>{%endif%}
50+
{% if connectionModes.device.web == true or connectionModes.device.mobile == true or connectionModes.device.server == true %} <li>In Device-mode, refer to it as <strong>{{previous_names | first}}</strong> in the <a href="/docs/guides/filtering-data/#filtering-with-the-integrations-object">Integrations object</a> </li>{%endif%}
51+
{% endif %}
4752
{% if destinationInfo.status == "PUBLIC_BETA" %}<li>This destination is in <span class="release-pill">Beta</span></li>{% endif %}
4853
</ul>
4954
{% if components.size > 0%}

src/_includes/content/destination-footer.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,7 @@ Segment lets you change these destination settings from the Segment app without
4646
{% endunless %}
4747
{% if currentIntegration.previous_names.size > 1 %}
4848

49-
{% unless page.hide-integrations-object == true %}
50-
## Adding {{ currentIntegration.display_name }} to the integrations object
5149

52-
To add {{ currentIntegration.display_name }} to the `integrations` JSON object (for example, [to filter data from a specific source](/docs/guides/filtering-data/#filtering-with-the-integrations-object)), use one of the following valid names for this integration:
53-
{% if page.name-override %}
54-
{% assign currentIntegration = site.data.catalog.overrides.items | where: "slug", currentSlug | first %}
55-
{% endif %}
56-
57-
{% for valid_name in currentIntegration.previous_names %}
58-
- {{ valid_name }}
59-
{% endfor %}
60-
61-
{% endunless %}
6250
{% endif %}
6351

6452
{% endif %}

src/connections/destinations/catalog/algolia-insights/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Algolia Insights Destination
33
rewrite: true
4-
layout: dest-test
54
beta: true
65
redirect_from: '/connections/destinations/catalog/algolia/'
76
id: 5d373a350abf930001a6b70f

0 commit comments

Comments
 (0)