Issue with Media Object Bootstrap in Drupal: Title Repetition

Honestly, I don’t know what happened, but when I created a block using Views with a media object, the title was looping or repeating, as shown in the picture below.

Issue with Media Object Bootstrap in Drupal: Title Repetition

In this situation, I ended up with two titles. I tried to fix this, but there was no option in the Views settings to address the problem. So, I decided to fix it by theming the Views or using a custom theme.

Here's what I did:

  1. In the Advanced option module view, I clicked on "Theme: information".
  2. I created a file named views-bootstrap-media-plugin-style—artikel—block.tpl.php.
  3. I modified this file and removed the print row heading.
  4. Finally, I added the file to my bootstrap_subtheme/templates folder.

Actually, there is another way to fix this problem by activating “Exclude from Display” in the configuration field for the content title. However, I wasn't sure if this was the normal approach.

exclude from display

After a few minutes, I had another idea. Without adding or changing any options, I set the media object to display on the left or right without excluding the title field from the display. In this case, if I chose the image field or heading field, the result was that the views had double images or titles.

option media object

Eventually, I realized that this might not be an issue.

I just activated the image field but not the heading field in the media object format and then excluded the image from the display in the field settings, not the title field. As a result, you might not need to create the views-bootstrap-media-plugin-style—artikel—block.tpl.php file in your custom theme. However, I decided to keep the custom theme file.


0 Response to "Issue with Media Object Bootstrap in Drupal: Title Repetition"

Post a Comment

Komentar yang Anda kirim akan terlebih dahulu di moderasi oleh Admin