?
avatar brianpeat
brianpeat
22 Dec 2016

Steps to reproduce the issue

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.

Expected result

You should see the custom field content under the article title

Actual result

Custom field content does not appear under the title.

System information (as much as possible)

Running 3.7 alpha 1 on Mamp and php 7.0.10

Additional comments

If you make the field appear Before Display or After Display, it DOES appear, just not under the title.

avatar brianpeat brianpeat - open - 22 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Dec 2016
avatar Bakual
Bakual - comment - 22 Dec 2016

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 ?

avatar laoneo
laoneo - comment - 23 Dec 2016

As I did that feature, I saw that as well, but was to shy to ask because I tough it has to be like that. But unfortunately I'm not the only one. IMO it should be placed on line 66. Like here #13345. What you guys think?

avatar Bakual
Bakual - comment - 23 Dec 2016

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 ?

avatar Bakual
Bakual - comment - 23 Dec 2016

Closing as we have a PR

avatar Bakual Bakual - change - 23 Dec 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-12-23 10:04:52
Closed_By Bakual
avatar Bakual Bakual - close - 23 Dec 2016

Add a Comment

Login with GitHub to post a comment