1 saunders Jun 29, 2019 10:19
3 saunders Jun 29, 2019 13:36
@amoun yes, this is clear information. In my case the subline (item-info) is defined in _item_block.inc
I managed some little customizing like date format but don't know how to add those special lines for printing contents update in echo.
Attachments:
- _item_block.inc.php.zip (4.3 KB)
4 amoun Jun 29, 2019 14:01
Looking at the file /_item_block.inc.php
// We want to display the post time:
$Item->issue_time( array(
'before' => '',
'after' => '',
'time_format' => 'M j, Y',
) );
You could comment it out and try
$Item->mod_date($format = 'F jS, Y', $useGM = false)
I can't remember why I added $useGM = false
https://github.com/mgsolipa/b2evolution/commit/1afefe848d5343425c5b7967502a5bfd601a1a07
If it works you then have the two options and then work out where to place either or both
5 amoun Jun 29, 2019 17:24
Hi again @saunders
I thought I'd look into the issue with your 'bricks' skin so installed it, thinking I could either edit that or find out about your initial issue of 'Missing container'
But what I have noticed is that in the version I have, 7, there exist the files I first mentioned, single.main.php
and page.main.php
So before I go any further, can you confirm if you have these files in what maybe version 6 ??
6 saunders Jun 30, 2019 21:16
@amoun thanks for your reply.
It is not the issue_time that is missing, but the date that shows content update
this is the full code for the info line beneath the title
Here are the files listed under bricks sin6 (the bricks versioning is confusing, after 1 followed 7. I did some customizing and kept some of version 1 files, so I called the version bricks_skin6
7 saunders Jul 01, 2019 10:33
@amoun thank you for your patience and support
For SEO reasons I don't want to have the item info or part of it combined with title or tagged as hx.
Meanwhile I added this line to _item_block.inc.php
$Item->mod_date( $format = ' / j. M Y ', $useGM = false );
Now the item info line shows the "last touched date". That is a progress. mod_date shows last touch but I don't know the tag that shows "content updated.
Additionally I added the item info lline widet to item single container and so the information is given at the end of each post:
In this example "last touched" and "contents updated" share the same date. But there are other pages with different dates. E.g in case I do some work in customizing like adding another category the information only sets "last touched" to the actual date. That is correct, because the post itself has not been updated.
Do you know the Tag for contents updated?
8 amoun Jul 01, 2019 14:46
Oh! So the 'mod_date' shows last touched not contents updated ??
Will look into it :)
Meanwhile from the data base table [evo_items__item] I can see the options.
This post has 1 feedback awaiting moderation...
Hi @saunders
Not sure if this is an option for you. You can look at my site https://calstock.org.uk/2015/09/19/the-first-six-pears
or see image below
You will see each post has both the date last updated and the creation date in the heading.
Here follows the code I have in my [skin/single.main.php and page.main.php] for example.