Parameter settings are not respected

More
12 years 4 months ago - 12 years 4 months ago #26886 by gruz
This time I'm lazy and I have no solution, only point to bug.

After the last update I've found that my regular articles with Blog template have to titles.

I checked the template file components/com_flexicontent/templates/blog/item.php and checked the if statement in line 74
Code:
<?php if ($this->params->get('show_title', 1)) : ?>
.
I found out, that
Code:
$this->params->get('show_title', 1)
is always false disregarding item settings:
[img



I suspect it's because of J2.5 JForm, 'attribs' JSON format and so on. The form data with settings are stored to json but not extracted to the JRegistry object before calling $this->params->get().

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)
Last edit: 12 years 4 months ago by gruz.

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #26889 by Rooney
This might be related to my post: www.flexicontent.org/forum/index ... =viewtopic

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #26891 by ggppdk
mmm, you speak about JSON format, but i don't think there is a problem there because JParameter in J2.5 can parse JSON format

The order of merging parameters is

1. Component parameters,
2. Menu item parameter, (if Itemid or menuitem alias) exists in the URL)
3. Current category parameters (if cid exists the URL)
4. Item's Content Type parameters
5. Finally parameters of the item itself

So, unless you override in 5 (item itself) it should work as set in the Content Type ... (you did not make any changes to the item recently to change this parameter inside the item , right?)

I will check this further ...

-- Loading of parameters in the above order is done by function _loadItemParams()
in components/com_flexicontent/item/models/item.php

So if you put some echo statements there it will be easy to see what is happening ... in your particular installation and particular item


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #26894 by gruz
Sorry, the articles had disabled titles. So it was a bug it was working before (-:

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #26895 by ggppdk
So you mean current behavior is correct?

but old behavior was buggy?

(... and it was displaying titles, despite 'show_title' being disabled inside the item)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #26897 by gruz
Current is correct.

Before I think it was ok, because the client didn't complain. He complained after the last update. But, there is a possibility he have not noticed it before.

So I think the topic is not actual till something happens.

Thanks

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.586 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline