Is that possible to link (related) by field value ?

More
12 years 3 months ago - 12 years 3 months ago #34327 by Chabi01
Hello,
Back for a question !

I saw there is a related field in FC. If i understood well, the field is able to link to a specific category to show other contents store in these category.

My question is the following :
I have a field "mycontent".
In this field, i will have a number (corresponding to one particular "user").
I would like to have in the detailed view one or more links (or a dropdown or anything else) with the link to all the others content filtered with the value of the field of the user of the content to all the other content of the same user (i don't know if i'm clear enough !!).

If i look to the related field, i don't see if i can do that with, as i saw only category links filtering...

So if i resume :
- i have a field "myarticle" populated with a different number id (typed manually).
- i have in my detailed content a button, a dropdown, a collection of links, etc.. to have a direct acces to all the other content populate with the same number id in the field.

Is that possible ? How ?

Thanks for your help and clue :)
Regards,
Last edit: 12 years 3 months ago by Chabi01.

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

More
12 years 3 months ago #34358 by ggppdk
These fields are use to link e.g.

an Artist to its Albums
thus when you view the Artist you can see a list of his/her Albums with
-- links to these
-- optionally with various fields e.g. images, date etc

The use of relation and relation reverse is described here:

Relations Between Types, Using relation and Relation Reverse Fields


-- 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 3 months ago #34361 by Chabi01
Hi Georges,
I read this doc but if i understand well, i have to bound the content i want to show to a specific category no ?
I that possible to do this with something like : "show the related content filtered by a value in a specific field" ?
Thanks for your presence here :)

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

More
12 years 3 months ago #34368 by micker
you can do a link with filter
read this
www.by-creationnumerique.com/tut ... e-url.html

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.

More
12 years 3 months ago #34380 by Chabi01
Thanks Micker,
I used this method and it works.
For the records and to help others who can have the need of this, here what I've done (i change the name of field but this is how to do).

I have a field "member_number" which have the id 32 in the database.
The field is a text one, filled with number (and only number in this example).

I create a button called "mybutton.jpg" to create the link in the template.
Here is the code in the template :
Code:
<?php $num_member = "http://www.mysite.com/Mycategory/?filter_32=".$this->fields['member_number']->display; ?> <?php echo "<a href=\"$num_member\" target=\"_blank\"> <img title=\"Take a look to all contribs of this member...\" alt=\"Take a look to all contribs of this member...\" src=\"http://www.mysite.com/images/stories/flexicontent/mybutton.jpg\" /> "; ?>
As i use SH404Sef to make clean url, that's why i dont have the "index.php&......"

Problem solved ! (I'm going to put another one found right now !! ;)

Thanks again to everybody,
Chabi01

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

More
12 years 3 months ago #34389 by micker
with pleasure

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
Time to create page: 0.334 seconds
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