Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1494

Migrating and Upgrading to Joomla! 5.x • Re: What tables does Joomla 5 use for Articles?

$
0
0
For me this is the query that returns data for a category blog:

Code:

SELECT `a`.`id`,`a`.`title`,`a`.`alias`,`a`.`introtext`,`a`.`fulltext`,`a`.`checked_out`,`a`.`checked_out_time`,`a`.`catid`,`a`.`created`,`a`.`created_by`,`a`.`created_by_alias`,`a`.`modified`,`a`.`modified_by`,CASE WHEN `a`.`publish_up` IS NULL THEN `a`.`created` ELSE `a`.`publish_up` END AS `publish_up`,`a`.`publish_down`,`a`.`images`,`a`.`urls`,`a`.`attribs`,`a`.`metadata`,`a`.`metakey`,`a`.`metadesc`,`a`.`access`,`a`.`hits`,`a`.`featured`,`a`.`language`,LENGTH(`a`.`fulltext`) AS `readmore`,`a`.`ordering`,`fp`.`featured_up`,`fp`.`featured_down`,CASE WHEN `c`.`published` = 2 AND `a`.`state` > 0 THEN 2 WHEN `c`.`published` != 1 THEN 0 ELSE `a`.`state` END AS `state`,`c`.`title` AS `category_title`,`c`.`path` AS `category_route`,`c`.`access` AS `category_access`,`c`.`alias` AS `category_alias`,`c`.`language` AS `category_language`,`c`.`published`,`c`.`published` AS `parents_published`,`c`.`lft`,CASE WHEN `a`.`created_by_alias` > ' ' THEN `a`.`created_by_alias` ELSE `ua`.`name` END AS `author`,`ua`.`email` AS `author_email`,`uam`.`name` AS `modified_by_name`,`parent`.`title` AS `parent_title`,`parent`.`id` AS `parent_id`,`parent`.`path` AS `parent_route`,`parent`.`alias` AS `parent_alias`,`parent`.`language` AS `parent_language`FROM `xumaf_content` AS `a`LEFT JOIN `xumaf_categories` AS `c` ON `c`.`id` = `a`.`catid`LEFT JOIN `xumaf_users` AS `ua` ON `ua`.`id` = `a`.`created_by`LEFT JOIN `xumaf_users` AS `uam` ON `uam`.`id` = `a`.`modified_by`LEFT JOIN `xumaf_categories` AS `parent` ON `parent`.`id` = `c`.`parent_id`LEFT JOIN `xumaf_content_frontpage` AS `fp` ON `fp`.`content_id` = `a`.`id`WHERE `a`.`access` IN (1,5) AND `c`.`access` IN (1,5) AND `c`.`published` = 1 AND `a`.`state` = 1 AND `a`.`catid` = 14AND (`a`.`publish_up` IS NULL OR `a`.`publish_up` <= '2024-07-23 07:27:44') AND (`a`.`publish_down` IS NULL OR `a`.`publish_down` >= '2024-07-23 07:27:44')ORDER BY  c.lft,   CASE WHEN a.publish_up IS NULL THEN a.created ELSE a.publish_up END  DESC ,  a.created   LIMIT 9;
I have edited in values in place of the bind placeholders just so I can run the query in phpMyAdmin. You can try this but use your own database prefix and change catid 14 to a category id that is not returning data.

You need to look at each of the where items to see which may be filtering out articles. In Joomla 3 the default publish_up value is 0000-00-00 00:00:00 but that is not allowed in Joomla 5. That is why I suspected a problem with your publish_up and publish_down values. The values in my example are 'now' datetime values.

Statistics: Posted by ceford — Tue Jul 23, 2024 8:08 am



Viewing all articles
Browse latest Browse all 1494

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>