I need to add a value from the database to every view page. I wrote the code below, but wherever I put it, it didn't work.
<?php
if (CurrentPageID() == "view") {
echo '<meta name="dc.title" content="' . CurrentPage()->kitap_adi->CurrentValue . '">';
}
?>