Skip to main content
Answer

How to remove duplication of asset title and description

  • September 16, 2024
  • 4 replies
  • 53 views

sigamoline
Helper II
Forum|alt.badge.img+1

Hello,

I'm working on a project where asset titles and descriptions are often duplicated, meaning the same information appears in both fields. I'm looking for a way to clean this up by removing the duplication, as it's redundant to display the same content twice.

Has anyone written code or come across a solution for this? I'd appreciate any guidance or examples.

 

Thanks in advance! 

Siga

Best answer by DPatel

Hi there,

This appears when using the link asset out to a webpage.

You could utilise the following CSS to hide the top part you have boxed off if you wish

/** Hides Title of Asset and description when using Link Asset START **/

.link-player-wrapper .title.text-main, .link-player-wrapper .description{
display: none!important
}

/** Hides Title of Asset and description when using Link Asset END **/

 

4 replies

dklinger
Hero III
Forum|alt.badge.img+11
  • Hero III
  • September 16, 2024

Hi - briefly - this is done as a practice when the org needs to one-up on a delivery point during a regular annual window.

The only thing that I can think of is to look at the creation date as well as course codes to help disambiguate anything that is the latest from past ones. You may want to tack on a year in the course code or in the naming convention of the course to help you further.

Lastly, DO NOT DELETE - archive the old by putting the older ones under maintenance and into a course catalog that no one has access to (so you can track them later).

 


sigamoline
Helper II
Forum|alt.badge.img+1
  • Author
  • Helper II
  • September 16, 2024

Hi, as far as I know, assets do not have codes. I wish they did. 


Forum|alt.badge.img+2
  • Novice II
  • Answer
  • September 16, 2024

Hi there,

This appears when using the link asset out to a webpage.

You could utilise the following CSS to hide the top part you have boxed off if you wish

/** Hides Title of Asset and description when using Link Asset START **/

.link-player-wrapper .title.text-main, .link-player-wrapper .description{
display: none!important
}

/** Hides Title of Asset and description when using Link Asset END **/

 


sigamoline
Helper II
Forum|alt.badge.img+1
  • Author
  • Helper II
  • September 17, 2024

@DPatel , That worked perfectly! Thanks so much for your help!