Skip to content

Commit

Permalink
Including core_params field in SELECT
Browse files Browse the repository at this point in the history
In my project I needed to access `attribs` field from #__content which is stored as `core_params` in #__ucm_content. This commit will allow to access this field when outputting tags related articles. It's especially useful if you have custom parameters associated with your article.
  • Loading branch information
Oleksandr Panasenko committed Apr 17, 2015
1 parent d5fc4bc commit cdf37b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/cms/helper/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ public function getTagItemsQuery($tagId, $typesr = null, $includeChildren = fals
. ', ' . 'count(m.tag_id) AS match_count'
. ', ' . 'MAX(m.tag_date) as tag_date'
. ', ' . 'MAX(c.core_title) AS core_title'
. ', ' . 'c.core_params'
)
->select('MAX(c.core_alias) AS core_alias, MAX(c.core_body) AS core_body, MAX(c.core_state) AS core_state, MAX(c.core_access) AS core_access')
->select(
Expand Down

0 comments on commit cdf37b6

Please sign in to comment.