Sep 12, 202211:19 PM - edited Sep 13, 20222:49 AM
Contributor
Page meta title and description based on combination of hubDB columns
SOLVE
Hello community!
I've been developing my new blog and list site with hubDB, loving it!
But I'm having dificulty working this meta optimization and maybe someone solved something like this before:
Each row in my hubDB table has columns like keywords, countries, availability, and I'm combining these columns on the H1 and first paragraph of the dynamic pages. Someting like:
On some pages, I use the total number of rows of a specific query on the H1 too:
H1 = column3 + totalrowsquery + row_title
The issue is: I need this combination of columns to also be applied to the meta title and meta description of the dynamic pages. I can select a specific column on the hubDB table for description, but I can't apply the same combination of columns (maybe this could be a future update on HubDB? 😅 ).
Has anyone ever worked something like this before?
Maybe you can do what you want. Basic thought is write title and meta description codes by yourself. The problem is the codes generated from {{ standard_header_includes }} such as og:title and og:description.
But acutually we can control them by using regex_replace filter.
Maybe you can do what you want. Basic thought is write title and meta description codes by yourself. The problem is the codes generated from {{ standard_header_includes }} such as og:title and og:description.
But acutually we can control them by using regex_replace filter.
What you're meaning is "Whether modules in <body> can rewrite elements in <head> such as meta title, description, standard_header_includes, etc." right? Unfotunatelly, it is impossible. Rewriting them must always be done in the template.
If you still have some problems, I could answer if you share them with me!