Page 1 of 1

META TITLE & DESCRIPTION in tablename_view.php

Posted: 2022-09-12 15:03
by laurent
Everything is in the title. For different reasons, I would like the META Title & Description to take the content of 2 fields that appear on pages like tablename_view.php?SelectedID

I haven't found any information on the forum, has anyone done this before, or has any advice to offer?

Thanks in advance

Re: META TITLE & DESCRIPTION in tablename_view.php

Posted: 2022-09-12 20:17
by pbottcher
Hi,

sorry, but I do not understand what you try to acheive. Can you maybe make a screenshot and highlight what you would expect.

Re: META TITLE & DESCRIPTION in tablename_view.php

Posted: 2022-09-13 07:21
by laurent
Hello !
Ok for an example with the Appgini demo

Look at the source code of this page : https://demos.appgini.com/northwind/products_view.php

Code: Select all

<meta name="description" content="">
<title>Northwind | Products</title>
Now look at the detail of a product:
https://demos.appgini.com/northwind/pro ... ectedID=40

=> Same Title & same description

Is it possible to have a different title and description on this page?
For example, a META title that includes the name of the product and the description that would copy another field present on this page...

I hope I am clear

Thanks

Re: META TITLE & DESCRIPTION in tablename_view.php

Posted: 2022-09-27 19:28
by pbottcher
Hi,

you can try to add to the hooks/TABELNAME-dv.js some code like:

Code: Select all


$j(function()) {
        document.title = 'YOUR NEW TEXT' ;
}