Skip to content
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

Insert Field in Articles shows as Field Number {field } when clicked on Title in Category Blog #15751

Closed
esskay303 opened this issue May 3, 2017 · 13 comments

Comments

@esskay303
Copy link

esskay303 commented May 3, 2017

Steps to reproduce the issue

  1. Insert Field in Article
  2. Article Options - Set Linked Titles to Yes, Show Unauthorised Links to Yes, Show Intro Text to Hide,
  3. Set Article Access to Registered
  4. Create any custom field with access right to public and insert in the article before read more (intro text)
  5. Create category blog menu item
  6. Check front end as non logged in user.

Expected result

Clicking on article title should show inserted field value.

Actual result

Clicking on article title show field name as (field --}

System information (as much as possible)

  1. PHP 7.0.18
  2. Joomla 3.7
  3. Database 5.6.28
  4. Database Collation utf8_general_ci
  5. Joomla Platform Version 13.1.0 Stable

Additional comments

@AlexRed
Copy link
Contributor

AlexRed commented May 3, 2017

I can confirm the problem on Joomla! 3.7.1-dev (nightly Build)

@esskay303
Copy link
Author

Hello...Any update on this...? When this will be fixed...?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15751.

@ghost
Copy link

ghost commented May 15, 2017

@esskay303 if there is a Developer having free Time for fixing this Issue. Maybe @laoneo or @Bakual in this Case, but its their Decision on what Issue they are willing to work.

@laoneo
Copy link
Member

laoneo commented May 15, 2017

I guess a event is not triggered correctly.

@Bakual
Copy link
Contributor

Bakual commented May 15, 2017

The problem is how the "Show Unauthorized" thing is working. If that parameter is active, then the layout only displays the introtext hardocded. See https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/article/tmpl/default.php#L135

The plugin event however doesn't act on the introtext, it acts on the $item->text property in the view class. See https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/article/view.html.php#L166-L177

So if someone wants to take and fix that, he needs to refactor the "Show Unauthorized" feature so it uses the text property or triggers the evens on the introtext.

@esskay303
Copy link
Author

Any update on this? When it is likely to be fixed?

@ghost
Copy link

ghost commented Jul 11, 2017

@esskay303 if there is a Developer having free Time for fixing this Issue.

@esskay303
Copy link
Author

If somebody can give me raw code I will test it thoroughly...

@ghost
Copy link

ghost commented Jul 11, 2017

me too, @esskay303

@laoneo
Copy link
Member

laoneo commented Jul 19, 2017

Please test #17175, which should fix the issue.

@zero-24
Copy link
Contributor

zero-24 commented Jul 19, 2017

Closing as there is a a PR for testing. Thanks.

@zero-24 zero-24 closed this as completed Jul 19, 2017
@esskay303
Copy link
Author

Unfortunately after updating to 3.8.1 this problem has again popped up...


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15751.

@ghost
Copy link

ghost commented Oct 9, 2017

@esskay303 please open a new Issue as Comments on closed Issues didn't get much Notice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants