?
avatar RonakParmar
RonakParmar
15 Jul 2016

Expected result

While testing Article options settings I found that, I am not able to use individual settings of specific article at front-end.
I have debugged the code and found, If we used single article view using menuitem then the active menu-item's options settings will take first priority.
In code there is a comment that, we can use article individual setting if there is no "view=article" and "&id="(article id). So, as per my knowledge without article id and article view we are not able to see specific article, So each time menu-item's options setting will take priority.
Global Article options settings will take second priority and at the end there is no effect of individual article options setting at fron-end side.

Actual result

How to use individual article "Options" tab settings at front-end?
Is there any way to display article without menu-item id?

System information (as much as possible)

Joomal 3.6.0

Additional comments

avatar RonakParmar RonakParmar - open - 15 Jul 2016
avatar brianteeman
brianteeman - comment - 23 Jul 2016

Your observation is the expected behaviour

I do not understand what you mean by

Is there any way to display article without menu-item id?


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

avatar brianteeman brianteeman - change - 23 Jul 2016
Status New Information Required
avatar RonakParmar
RonakParmar - comment - 25 Jul 2016

What I am trying to say is, To display article we have to create menu-item for it.
So, how we can use individual Options settings of an article at front. because, each and every time menu-item's Options setting has first priority. Not able to see the settings which I have set in specific article new/edit view.

avatar bertmert
bertmert - comment - 25 Jul 2016

You could use this code in an override/alternative layout of article view

$articleParams = new Joomla\Registry\Registry($this->item->attribs);
...
if ($articleParams ->get('show_title')
...

Only in category based menu items (blog and featured as far as I know) is a further option "Use Article Settings"

avatar brianteeman
brianteeman - comment - 25 Jul 2016

If you set "show author - no" in blog menu option but "show author - yes"
in article option

Then the author* will not* be displayed i the blog view but will be
displayed in the detailed article view when you click readmore

On 25 July 2016 at 11:01, bertmert notifications@github.com wrote:

You could use this code in an override/alternative layout of article view

$articleParams = new Joomla\Registry\Registry($this->item->attribs);
...
if ($articleParams ->get('show_title')
...

Only in category based menu items (blog and featured as far as I know) is
a further option "Use Article Settings"


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11146 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8YUsCWfSKc8Qqqfnl4VUi-qnJtxmks5qZHtjgaJpZM4JNXzq
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar RonakParmar
RonakParmar - comment - 25 Jul 2016

@bertmert @brianteeman Thank you for sharing your knowledge, now I got it, if we want to use individual Options settings of an article then we have use "User Article Settings" option in menu item.
I have checked in my local system and works fine for me. Thanks again. 👍

avatar brianteeman
brianteeman - comment - 25 Jul 2016

Closed

avatar brianteeman brianteeman - change - 25 Jul 2016
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2016-07-25 09:27:21
Closed_By brianteeman
avatar brianteeman brianteeman - close - 25 Jul 2016

Add a Comment

Login with GitHub to post a comment