User tests: Successful: Unsuccessful:
Pull Request for Issue #30145 .
complete the list of com_content fields to render via API GET
fixed the Notice reported #30134 (review)
call the api
--for article list
{{base_url}}api/index.php/v1/content/article
--for article item
{{base_url}}api/index.php/v1/content/article/{id}
these fields are not rendered:
fields are rendered
{
"links": {
"self": "http://localhost/4beta/api/index.php/v1/content/article/6"
},
"data": {
"type": "articles",
"id": "6",
"attributes": {
"typeAlias": "com_content.article",
"id": 6,
"asset_id": 91,
"title": "Your Template",
"alias": "your-template",
"state": 1,
"created": "2020-07-26 09:35:57",
"created_by": 223,
"created_by_alias": "",
"modified": "2020-07-26 09:51:30",
"modified_by": 223,
"publish_up": "2020-07-26 09:35:57",
"publish_down": "2020-07-31 11:43:29",
"images": {
"image_intro": "",
"float_intro": "",
"image_intro_alt": "",
"image_intro_caption": "",
"image_fulltext": "",
"float_fulltext": "",
"image_fulltext_alt": "",
"image_fulltext_caption": ""
},
"urls": {
"urla": "http://alikonweb.it/A",
"urlatext": "alikonweb",
"targeta": "0",
"urlb": "http://alikonweb.it/b",
"urlbtext": "alikonweb",
"targetb": "0",
"urlc": "http://alikonweb.it/c",
"urlctext": "alikonweb",
"targetc": "0"
},
"version": 5,
"metakey": "",
"metadesc": "",
"access": 1,
"hits": 0,
"metadata": {
"robots": "",
"author": "",
"rights": ""
},
"featured": 0,
"language": "*",
"note": "a Note",
"tags": [],
"featured_up": null,
"featured_down": null,
"text": "<p>Templates control the look and feel of your website.</p>\r\n<p>This blog is installed with the Protostar template.</p>\r\n<p>You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).</p>\r\n<p>For example you can change the site background color, highlights color, site title, site description and title font used.</p>\r\n<p>More options are available in the site administrator. You may also install a new template using the extension manager.</p> "
},
"relationships": {
"category": {
"data": {
"type": "categories",
"id": "8"
}
},
"author": {
"data": {
"type": "users",
"id": "223"
}
}
}
}
}
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content |
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-27 21:40:47 |
Closed_By | ⇒ | Quy | |
Labels |
Added:
?
?
|
Awesome, I have verified the new fields render.
Before:
After:
The warnings from Joomla backend is gone too.