Jump to content

Recommended Posts

Posted

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'.

Posted (edited)
3 hours ago, Nelion Audio said:

CSS

Yes you can.

Assuming you are talking about this:

Could contain: Page, Text, File

 

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:

Could contain: Page, Text

 

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 by Nathan Explosion
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...