[SOLVED] v2.2.x / v3.0 BETA6b, some fields appear regardless of type assignment

More
11 years 4 months ago - 10 years 8 months ago #49453 by jrodgar
Some fields looks like they ignore the type assignation and show themselves as long as they appear on the template

I think this is the case for special fields with no associated values like the social toolbar

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7
Last edit: 10 years 8 months ago by ggppdk.

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

More
11 years 4 months ago - 10 years 8 months ago #49455 by ggppdk
Hello

-- about fields showing without value,
this normal and it depends on field configuration and implementation, e.g. as you said toolbar field, or a text or image field with default values


-- about fields ignoring their type assignments, this may happen in category view (and other listing views)

Question:
it does not happen in item view, but only in listing views right?

... about category/listing views indeed i think we may have an issue (i think remember that we do not check), but it should not be difficult to fix


-- 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 review. Thanks!
Last edit: 10 years 8 months ago by ggppdk.

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

More
11 years 4 months ago - 10 years 8 months ago #49456 by jrodgar
It happens.


Type1 - Field toolbar
Type2


Type1 - TemplateA (blog)
Type2 - TemplateA (blog)


TemplateA - Field toolbar


Toolbar appears on Type 2 items.

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7
Last edit: 10 years 8 months ago by ggppdk.

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

More
11 years 4 months ago - 10 years 8 months ago #49458 by ggppdk
Hello

but i ask if it is only in category view or in both item and category view


-- 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 review. Thanks!
Last edit: 10 years 8 months ago by ggppdk.

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

More
11 years 4 months ago - 10 years 8 months ago #49472 by jrodgar
It happens on item view, don´t know if in category view

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7
Last edit: 10 years 8 months ago by ggppdk.

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

More
11 years 4 months ago - 10 years 8 months ago #49479 by ggppdk
Hello

yes i can confirm this,

fix will be in next revision, and new public beta in weekend

regards


-- 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 review. Thanks!
Last edit: 10 years 8 months ago by ggppdk.

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

More
10 years 8 months ago - 10 years 8 months ago #54264 by jrodgar
Hi!

Did you solved this already? Because I found something that could be related

Lets see this query github.com/FLEXIcontent/flexicontent-cck...tent.fields.php#L344

I have a custom field that copy a core field. I have it assigned to mytypeA and it appears on mytemplate1. Nowadays, when I´m looking a mytypeB article, the field appears again, why?

If you haven´t solved the social toolbar problem (can´t confirm, I haven´t installed last versions), I think is the same problem. I executed a similar query and got something like
Code:
SELECT fi.name, ftrel.* FROM joom_flexicontent_fields AS fi LEFT JOIN joom_flexicontent_fields_type_relations AS ftrel ON (ftrel.field_id = fi.id) AND ftrel.type_id = 5 WHERE fi.published = 1 GROUP BY fi.id ORDER BY ftrel.ordering, fi.ordering, fi.name
Code:
name, field_id, type_id field1, null, null fieldcorrectlyassigned, 80, 5

So on the fields assigned, it appears "fieldcorrectlyassigned", but also "field1", that is not assigned. Why that nulls? Because is a left join and the "AND ftrel.type_id = 5" criteria is on the "on" clause

If I do instead
Code:
SELECT fi.name, ftrel.* FROM joom_flexicontent_fields AS fi LEFT JOIN joom_flexicontent_fields_type_relations AS ftrel ON (ftrel.field_id = fi.id) WHERE fi.published = 1 AND ftrel.type_id = 5 GROUP BY fi.id ORDER BY ftrel.ordering, fi.ordering, fi.name

The results are
Code:
name, field_id, type_id fieldcorrectlyassigned, 80, 5

More info here: www.tech-recipes.com/rx/47637/inner-and-...clause-vs-on-clause/


What do you think? I´m correct about this? I guess that this normally is not an issue because there are other checks (the templates are differents, have different assignations, have empty values...)

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7
Last edit: 10 years 8 months ago by ggppdk.

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

More
10 years 8 months ago - 10 years 8 months ago #54292 by ggppdk
Hello

thanks , i was suspecting it was a LEFT JOIN,

but then neglected this and never looked at it
- also same effect will be by making LEFT JOIN be a JOIN,
because we do not want fileds that are not assigned to the content type

will commit fix !


-- 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 review. Thanks!
Last edit: 10 years 8 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
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
Save