Joomla content introtext/fulltext question #667
-
Little question regarding introtext/fulltext. When I use NB: after playing I noticed that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 modelWhen you are using
Joomla extensionWhen you use The For example, both Pages, Joomla and the K2 integration all use the same base article content type and have the same entity properties and return the same type of data. This means that you can use Pages pages, Joomla content and K2 content with the same layouts and partials, you change the model type in the collection and everything just keeps working. The reason I'm doing this is because it's makes layouts and partials re-usable. If a partial is build to use a specific content type you can use the partial with any collection that extends from that content type. You can find a very basic definition a a content entity here: /extensions/joomla/model/entity/abstract.php This work is very much in progress, and quite rough but this is where I'm heading at. Some more resources on content modelling
How is this different from the UCM that was introduced in Joomla 2.5?
Pages is datasource agnostic and should work without a database, so I'm implementing the content model on a collection/entity (ORM layer) level, not a database level. This allows you to model any data, from any data source.
For example; both the article and category entity are implementing the abstract content entity: |
Beta Was this translation helpful? Give feedback.
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 afulltext
and aintrotext
field that you can accessJoomla extension
When you use
model: ext:joomla.model.articles
you are making use of the Joomla extension for Pages. This e…