T
T
teen2016-10-08 15:29:10
Joomla
teen, 2016-10-08 15:29:10

How to display materials in a template through a module?

Good day.
I need to display the n-th number of materials in the form of a carousel slider from a certain category in a joomla template.
As an option, create a module in the admin panel "Materials - List of category materials" and write in the template:

<jdoc:include type="modules" name="slider-carusel"/>

The usual list of links will be displayed.
  • 1 post
  • 2 post
  • 3 post
  • n post

But I need to output it in blocks, where the Material Name, Image, Link Text A and Link Text B will be taken from the materials. Thus, set my own template for the block and all blocks should be displayed according to this template.
I need help, I couldn't find anything similar on the Internet.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lex, 2016-10-11
@MSkitalec

In your case, it's easier to find a ready-made solution.
and so take a custom module, clone and rewrite, taking into account the connection with the database of materials, and take anything from there

V
Vitaly, 2016-10-11
@Kens1n

The task can be solved by redefining the module template
Create the module "Materials - List of category materials"
Then you redefine the module template as follows "Extension" -> "Template manager" -> In the template column, to the right of the names, click on your template -> click on tab "Create override" -> select in the left column "mod_articles_category"
You will have an html folder in the template folder, mod_articles_category folder in it, inside this folder are the module template files, you actually make the layout you need in them and use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question