Merge 2 items views

3 years 5 months ago #66977 by nexteo
Merge 2 items views was created by nexteo
Hi
On the one hand, I have a country directory with a detailed listing for each country, and on the other hand, I have a directory of people with a detailed personal profile.
So far I have used the plugins of relationship between the records of the 2 directories.
But will there be a possibility to display in the item view of a country the detail of one or more personal profiles?

A big thank you If you have an idea

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

3 years 5 months ago #66979 by ggppdk
Replied by ggppdk on topic Merge 2 items views
Hello

both the "country" and the "personal profile" are content items
that are related with FLEXIcontent 'relation' field ?


-- 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!

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

3 years 5 months ago #66980 by nexteo
Replied by nexteo on topic Merge 2 items views
Not yet, because it is a question of creating a new site meeting the expectations of 2 different sites.
I was thinking of using the flexicontent plugin relationship, but that means that in my item view of the country I have a link to the country manager. Which works perfectly.
But it would be even better if I could display the complete profile

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

3 years 5 months ago #66982 by ggppdk
Replied by ggppdk on topic Merge 2 items views
Hello

the relation field creates a list of related items,
the HTML display of the related items can be customized,
there are parameters for this , have you seen them ?


-- 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!

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

3 years 5 months ago #66985 by nexteo
Replied by nexteo on topic Merge 2 items views
No, I had not paid attention,
I imagine that this field is there?
See attached image

And in the "item HTML" field I imagine that it is enough to paste the same syntax as in the item view:
<? Php if (isset ($ item-> positions )):?>
<Div id = "title">
<? Php foreach ($ item-> positions as $ field):?>
<? Php echo $ field-> display; ?>
<? Php endforeach; ?>
</ Div>
<? Php endif; ?>

Is this correct ?
Attachments:

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

3 years 5 months ago #66996 by micker
Replied by micker on topic Merge 2 items views
yes but you can't use php inside this field only html
if you want to se php use template

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

3 years 5 months ago #66997 by nexteo
Replied by nexteo on topic Merge 2 items views
Hi,
Nevertheless, I must test whether the field is used or not in the item view in relation
In the JCE editor for example, I can allow the insertion of php

I do not see how to retrieve the value of a strict html field.
Would you have an example?

Thank you

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

3 years 5 months ago #66999 by micker
Replied by micker on topic Merge 2 items views
did you read popup description ? you can use {fieldname##0} (0 for first value)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

3 years 5 months ago #67002 by nexteo
Replied by nexteo on topic Merge 2 items views
No, I have no popup by flipping over the field "HTML of the item"
I will test with this syntax: {fieldname ## 0}

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

3 years 5 months ago #67007 by micker
Replied by micker on topic Merge 2 items views
you have a popip on label for sure

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.