fidals / stroyprombeton

3 stars 1 forks source link

Add or fix tags to the category page's DB templates #745

Closed duker33 closed 5 years ago

duker33 commented 5 years ago

Like SE does. It's example: h1 = Блоки питания, 0.4 А for the page

duker33 commented 5 years ago

launched this script on the prod:

p = Category.objects.get(id=38).page
p.template.h1 = '{{ page.h1 }}{% if tags %} ,{% endif %}{{ tags.as_title }}'

p.display_h1
# 'Железнодорожные лотки. Альбом инв. №984, 750 мм'

Also this page contains required h1 https://www.stroyprombeton.ru/gbi/categories/38/tags/dlina__750/

duker33 commented 5 years ago

done the same for seo_text, h1, title, keywords, desctription