Get Category elements and display in sp page builder

Everything to do with Joomla! 5.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
mostafaafrouzi
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Aug 17, 2021 11:42 pm

Get Category elements and display in sp page builder

Post by mostafaafrouzi » Mon May 13, 2024 8:40 am

Hello
I want to receive the following items and display them in the sp page builder page
The title of the current Category
Category collection image + alt
Description of the current Category
What is the best and easiest way?
Articles Anywhere by regularlabs is great but only works for articles
Thank you.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1675
Joined: Tue Jun 30, 2020 12:17 pm

Re: Get Category elements and display in sp page builder

Post by Pavel-ww » Tue May 14, 2024 7:43 am

Hi.
mostafaafrouzi wrote:
Mon May 13, 2024 8:40 am
The title of the current Category

Description of the current Category
This is not clear. Through SPPB, you cannot create a category page type, so you cannot get its title and description.

mostafaafrouzi wrote:
Mon May 13, 2024 8:40 am
Category collection image + alt
You should make an override of the Joomla's Categories Module php template so that it displays the images of categories. By default, it cannot.

Then you can display this module on the SPPB page via Joomla Module Addon.

Or you should use Category Blog page type instead of SPPB page type. Then you will get all that you need by default from Joomla options


Post Reply

Return to “Templates for Joomla! 5.x”