Greg1234 Posted October 20, 2020 Share Posted October 20, 2020 I believe this is a bug, during editing CMS page, there is field "title" and it's described that it should display in template h1 But not only the classic template uses meta title instead of this, but also the "title" in $page variable in .tpl is empty: I think some developer who made it doesn't get the difference between meta title, and page title. These are two separate things, used for totally different purposes. Does someone know, how can I get the page title (not meta title) in the tpl, using some built in mechanism? I know I can query the database, but this is very basic thing and I am sure there has to be some prepared way to do it. Link to comment Share on other sites More sharing options...
Greg1234 Posted October 20, 2020 Author Share Posted October 20, 2020 If anyone else had problems with it: It turns out, that to get page title (not page meta title) you have to use $cms.meta_title, and to get page meta title you have to use $page.meta.title. This is not only confusing, but just incorrect. Meta title is not equal title, but they are used interchangeably in the code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now