-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[new feature] Article notes field #19134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
a6cae91
ecc1221
b164cf4
8a34919
15c48e1
699a436
f3d710f
a1279ad
852d8a5
8e40297
c78fdf4
e67b603
3366d9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ALTER TABLE `#__content` ADD COLUMN `note` VARCHAR(255) NOT NULL DEFAULT ''; | ||
|
|
||
| UPDATE `#__content_types` SET `field_mappings` = | ||
| {"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}} WHERE `type_title` = 'Article'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ALTER TABLE `#__content` ADD COLUMN `note` VARCHAR(255) NOT NULL DEFAULT ''; | ||
|
|
||
| UPDATE `#__content_types` SET `field_mappings` = | ||
| {"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}} WHERE `type_title` = 'Article'; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ALTER TABLE [#__content] ADD [note] [nvarchar](255) NOT NULL DEFAULT ''; | ||
|
|
||
| UPDATE [#__content_types] SET [field_mappings] = ' | ||
| {"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"asset_id", "note":"note"}, "special":{"fulltext":"fulltext"}} WHERE `type_title` = 'Article'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,16 @@ | |
| size="40" | ||
| /> | ||
|
|
||
| <field | ||
| name="note" | ||
| type="text" | ||
| label="COM_CONTENT_FIELD_NOTE_LABEL" | ||
| description="COM_CONTENT_FIELD_NOTE_DESC" | ||
| class="span12" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please check the other notes fields in modules and menu. I am sure this si the same |
||
| size="40" | ||
| maxlength="255" | ||
| /> | ||
|
|
||
| <field | ||
| name="version_note" | ||
| type="text" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,6 +138,13 @@ | |
| <a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>> | ||
| <?php echo $this->escape($item->title); ?> | ||
| </a> | ||
| <span class="small" title="<?php echo $this->escape($item->path); ?>"> | ||
|
||
| <?php if (empty($item->note)) : ?> | ||
| <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS', $this->escape($item->alias)); ?> | ||
| <?php else : ?> | ||
| <?php echo JText::sprintf('JGLOBAL_LIST_ALIAS_NOTE', $this->escape($item->alias), $this->escape($item->note)); ?> | ||
| <?php endif; ?> | ||
| </span> | ||
| <div class="small"> | ||
| <?php echo JText::_('JCATEGORY') . ': ' . $this->escape($item->category_title); ?> | ||
| </div> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use '"' (double quote) instead '`' to escape names in postgresql.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks - should be ok now