From 9e3a2f96d7c27ac4b6cdd84d778ecf73d4aa54b7 Mon Sep 17 00:00:00 2001 From: TopDevPros <136071495+TopDevPros@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:21:08 +0000 Subject: [PATCH 1/2] Add support for external links. --- bakerydemo/templates/search/search_results.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bakerydemo/templates/search/search_results.html b/bakerydemo/templates/search/search_results.html index 029664126..c7f98c2e1 100644 --- a/bakerydemo/templates/search/search_results.html +++ b/bakerydemo/templates/search/search_results.html @@ -49,6 +49,7 @@
+ External link +
++ {% if search_promotion.description %}{{ search_promotion.description|richtext }}{% endif %} +
+- {% if search_promotion.page.specific.content_type.model == "blogpage" %} - Blog Post - {% elif search_promotion.page.specific.content_type.model == "locationpage" %} - Location - {% else %} - Bread - {% endif %} -
-- {% if search_promotion.page.specific.search_description %}{{ search_promotion.page.specific.search_description|richtext }}{% endif %} -
-+ {% if search_promotion.page.specific.content_type.model == "blogpage" %} + Blog Post + {% elif search_promotion.page.specific.content_type.model == "locationpage" %} + Location + {% else %} + Bread + {% endif %} +
++ {% if search_promotion.page.specific.search_description %}{{ search_promotion.page.specific.search_description|richtext }}{% endif %} +
+- External link -
-- {% if search_promotion.description %}{{ search_promotion.description|richtext }}{% endif %} -
-+ External link +
++ {% if search_promotion.description %}{{ search_promotion.description|richtext }}{% endif %} +
+