Change/remove date in Resource Item Description

Sean Engle

Member
Hi -

I just migrated am setting things up. One thing I would like to change is the description field of the Resource Manager items list - where it shows the date uploaded in huge font immediately after the resource description:

1579855616829.webp

I find this information really redundant and it clutters up the field. Is there some way I can reduce the size of that font - or better yet, hide/remove the date all together? Where does it live in the template?

Thanks - am very happy with XenForo so far - you guys ROCK.

//sse
 
Hello. Read this:
Hope it help!
 
At risk of kicking an old thread back to life, did you manage to make this change to the date font? Interesting & useful as Marian-Sebastian's link is, it doesn't help me identify where the edit needs to be made in this case.
 

Attachments

  • Resource date upload font size.webp
    Resource date upload font size.webp
    91.2 KB · Views: 4
@Sean Engle In your case it's due to a customisation you have made.

This is the standard layout:
1612561287718.png

This is yours:
1612561318756.png

There is an additional span element after the title.

Check for edited templates.
 
That looks to be a version of the resource.

Ref:
PHP:
    public function setDefaultVersionString()
    {
        $this->version->version_string = date('Y-m-d', \XF::$time);
    }
in file path: upload/src/addons/XFRM/Service/ResourceVersion/Preparer.php:40

You can try putting this
Less:
.structItem--resource
{
    .structItem-title
    {
        .u-muted
        {
            display: none;
        }
    }
}
and it should hide the version number block from everywhere.
 
Back
Top Bottom