Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Nelion Audio Posted November 11, 2023 Posted November 11, 2023 Hello, I'd like to remove creation dates from database records. It looks like the timestamp template is global, so you can't make changes to CSS or Templates to affect only database entries. Before I hire a programmer, are there any shortcuts to changing this? I want only database records to show the current time and date, not creation date, so that visitors don't get the impression that the information in the records is 'old'.
Nathan Explosion Posted November 11, 2023 Posted November 11, 2023 (edited) 3 hours ago, Nelion Audio said: CSS Yes you can. Assuming you are talking about this: body[data-pageapp="cms"][data-pagecontroller="page"] div.ipsPhotoPanel time{ display:none; } If you want to do it only on a specific page: body[data-pageapp="cms"][data-pagecontroller="page"][data-pagename="articles.html"] div.ipsPhotoPanel time{ display:none; } 3 hours ago, Nelion Audio said: Templates to affect only database entries Pages has its own templates, outside of the theme, where you can simply remove the following line: <li>{datetime="$record->mapped( 'date' )"}</li> ...from the indicated template: 3 hours ago, Nelion Audio said: I want only database records to show the current time and date, To do this, you would have to edit the indicated template and change: <li>{datetime="$record->mapped( 'date' )"}</li> to: {{$now = time();}} <li>{datetime="$now"}</li> Edited November 11, 2023 by Nathan Explosion Marc, Meddysong and Nelion Audio 3
Recommended Posts