[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][ENH] wikiplugin_article.php: add article type option and update default field options
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <691f02fdc07d0_2acb311c96df@gitlab-sidekiq-low-urgency-cpu-bound-v2-6f7cb86f8c-674p5.mail> |
ushindi bienvenu pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
cefae8e7 by Joseph Lwanzo Kausi at 2025-11-20T11:54:20+00:00
[BP][ENH] wikiplugin_article.php: add article type option and update default field options
---
* [ENH] wikiplugin_article.php: add article type option and update default field options
---
* [ENH] wikiplugin_article.php: add article type option and update default field options
See merge request tikiwiki/tiki!8065
See merge request tikiwiki/tiki!8164
- - - - -
2 changed files:
- lib/objectlib.php
- lib/wiki-plugins/wikiplugin_article.php
Changes:
=====================================
lib/objectlib.php
=====================================
@@ -240,6 +240,7 @@ class ObjectLib extends TikiLib
public function getSelectorType($type)
{
$supported = [
+ 'article' => 'article',
'blog' => 'blog',
'calendar' => 'calendar',
'category' => 'category',
=====================================
lib/wiki-plugins/wikiplugin_article.php
=====================================
@@ -18,9 +18,22 @@ function wikiplugin_article_info()
'Field' => [
'required' => false,
'name' => tra('Field'),
- 'description' => tra('The article field (component) to display. The default field is "Heading".'),
+ 'description' => tra('The article field (component) to display.'),
'filter' => 'word',
- 'default' => 'heading',
+ 'options' => [
+ ['text' => tra('Title'), 'value' => 'title'],
+ ['text' => tra('Heading'), 'value' => 'heading'],
+ ['text' => tra('Body'), 'value' => 'body'],
+ ['text' => tra('Topline'), 'value' => 'topline'],
+ ['text' => tra('Subtitle'), 'value' => 'subtitle'],
+ ['text' => tra('Author Name'), 'value' => 'authorName'],
+ ['text' => tra('Author'), 'value' => 'author'],
+ ['text' => tra('Publication Date'), 'value' => 'publishDate'],
+ ['text' => tra('Rating'), 'value' => 'rating'],
+ ['text' => tra('Topic Name'), 'value' => 'topicName'],
+ ['text' => tra('Type'), 'value' => 'type'],
+ ['text' => tra('Language'), 'value' => 'lang'],
+ ],
'since' => '1',
],
'Id' => [
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cefae8e7ccd459c89c68290eee8b8a99f3d29a5a
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cefae8e7ccd459c89c68290eee8b8a99f3d29a5a
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs