Forum


Change sequence of card layout elements

Achim
7%
Posts: 7
TF Articles
May 23, 2024

Hi,

I would like to display only the title of an article above the intro image. I see no other possibility than to edit Card.php in the TF library. Is there a way to achieve this via an override in the template?

Regards, Achim

Joomla Fry
100%
Posts: 959
May 23, 2024

Hello

Please update the TF Library. We have included option to display image at bottom (under Styles tab, Layout setting).

Please don't edit library files as changes will be lost after update. You can create template override also.

Achim
7%
Posts: 7
May 24, 2024

Hi,

the new functions do not work for me because the new options in the layout on the Styles tab are not recognised by the library (Card.php).

The behaviour of the new option could also be achieved in the previous library with some css code.

As long as the image and the body are in different divs, you cannot use css (order:...) to set only the title above the image, for example. 

Regards, Achim

 

Joomla Fry
100%
Posts: 959
May 24, 2024

Hello

There is no need to add custom CSS or layout changes. Please update the library and select "Image Bottom" as layout option under Styles tab.

Achim
7%
Posts: 7
May 24, 2024

Hi,

I've did the update and test it without any custom css or an override and cassiopeia before I write my answer.

Regards, Achim

Joomla Fry
100%
Posts: 959
May 26, 2024

Hello

Please share Joomla login details to mail@techfry.com

I need to check this at site level.

Thank you!

Achim
7%
Posts: 7
May 27, 2024

Hi, 

I hope you receive all (account and URL) access infos.

As I said, I don't just want to swap the image and the text block. I just want to display the post title or another element from inside the text block above the image.

Regards, Achim

Joomla Fry
100%
Posts: 959
May 28, 2024

Thank you for the details. There was some issue with the layout setting.

Please check now.

Achim
7%
Posts: 7
May 28, 2024

Hi,

Thank you, I should have found that myself :-))

Do you have any ideas on how to put just the title above the picture without changing the library?

Reagrds, Achim

Joomla Fry
100%
Posts: 959
May 31, 2024

Hello

You can create a new alternate layout in the template html/mod_tfartcles/mylayout.php or template override at html/mod_tfartcles/default_card.php

Login to Reply