https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× This is the optional Forum header for the Suggestion Box.

Pulling from specific categories

  • alatka
  • alatka's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 8 months ago #740

First off -- fabulous extension! Thank you so much!

Now my issue...I'm not new to Joomla, but I am new to custom MySQL coding. I'm trying to create content grids that contain articles from specific categories.

So, for example, I have "News" articles. On the news page, I want to create a grid that has the Title, Created Date and Summary only from the category NEWS. I've been able to create the table, but it either pulls ALL my content (not just the news) or NONE of my content.

What query do I need to use to pull from specific categories? Do I use that query in the "Additional Conditions" area?

Thanks!

Please Log in or Create an account to join the conversation.

  • alatka
  • alatka's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 8 months ago #741

I figured it out! For those newbies with the same issue, I used this command in the Additional Conditions area:

(catid = '45') OR (catid='46')

45& 46 were the two categories I wanted articles pulled from to populate my column of "news" articles.

Thank you again!

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.149 seconds

Contact Us

Contact us on Discord

Contact us on Facebook