File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed
content/shared/v3-core-plugins Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -546,6 +546,25 @@ Insert warning markdown content here.
546
546
{{% / warn % }}
547
547
```
548
548
549
+ # ## Product data
550
+
551
+ Display the full product name and version name for the current page-- for example:
552
+
553
+ - InfluxDB 3 Core
554
+ - InfluxDB 3 Cloud Dedicated
555
+
556
+ ```md
557
+ {{% product- name % }}
558
+ ```
559
+
560
+ Display the short version name (part of the key used in `products.yml` ) from the current page URL -- for example:
561
+
562
+ - `/ influxdb3/ core` returns `core`
563
+
564
+ ```md
565
+ {{% product- key % }}
566
+ ```
567
+
549
568
# ## Enterprise Content
550
569
551
570
For sections content that relate specifically to InfluxDB Enterprise, use the `{{% enterprise % }}` shortcode.
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ influxdb3 install package <PACKAGE_NAME>
255
255
--name CONTAINER_NAME \
256
256
-v /path/to/.influxdb3/data:/data \
257
257
-v /path/to/.influxdb3/plugins:/plugins \
258
- quay.io/influxdb/influxdb3-core :latest \
258
+ quay.io/influxdb/influxdb3-{{ < product-key > }} :latest \
259
259
serve --node-id=node0 \
260
260
--object-store=file \
261
261
--data-dir=/data \
Original file line number Diff line number Diff line change
1
+ {{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
2
+ {{- $currentProduct := index $productPathData 1 -}}
3
+ {{ $currentProduct }}
You can’t perform that action at this time.
0 commit comments