Create a new Field Group
Create a new Field and assign it to one or more categories and assign it to the Field Group you made in step 1.
Set the Field Automatic Display to Under Title
Go to an article in the 3.7 demo such as First Blog Post and fill in the field with some content and save the article
Now view the article on the front end. It should be at something like:
http://yourdomain/joomla-cms/index.php/article-category-blog/17-first-blog-post
or use the "All Front End Views" side bar and click "Article Category Blog" and then click on First Blog Post.
You should see the custom field content under the article title
Custom field content does not appear under the title.
Running 3.7 alpha 1 on Mamp and php 7.0.10
If you make the field appear Before Display or After Display, it DOES appear, just not under the title.
From a fist glance looks fine. At least it does what it says now and doesn't show up in the same place as the other event.
It may be worth looking at the other places that event content is shown and make sure it's halway consistent
Closing as we have a PR
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-23 10:04:52 |
Closed_By | ⇒ | Bakual |
The code to show the field is https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/article/tmpl/default.php#L91
<?php if (!$params->get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?>
I have honestly no clue why there is an if clause around that.
If you set the option "Show Intro Text" to "Hide", the field will show. But also not under the title as expected but between info block and content. So this is fishy?