Read Blogger Query Params In XML



If you want to make some features only visible with some conditions, we usually use headers, post body, or query params to make it happen.

It's easy to think about how to use query params in any backend language programming, but how about reading query params in blogger theme XML?

Blogger only allows us to read query params in "?view=xxxx", so if you want to add a condition in the URL to make some content visible when query params match with your condition, we can use data:blog.view which will return the value from params ?view=


Komentar