Skip to content

Joomla content introtext/fulltext question #667

Answered by johanjanssens
woluweb asked this question in Q&A
Discussion options

You must be logged in to vote

Happy to help.

You are using 2 different collection models that both get data from the Joomla content table, but each in a different way.

Database model

When you are using model: database?table=content you are accessing the Joomla content table directly. Pages will return all the rows and fields without any further processing. The Joomla content table has a fulltext and a introtext field that you can access

---
collection:
    model: database?table=content
---

<? foreach(collection() as $article) : ?>
<article>
   <?= $article->fulltext ?>
<article>
<? endforeach ?>

Joomla extension

When you use model: ext:joomla.model.articlesyou are making use of the Joomla extension for Pages. This e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johanjanssens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants