Welcome, Guest
Username Password: Remember me

Help needed with creation of a directory. Need to link articles to user profiles.
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Help needed with creation of a directory. Need to link articles to user profiles.

Help needed with creation of a directory. Need to link articles to user profiles. 1 year, 6 months ago #1

  • tektest
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Hi,

Here is my category structure:
TOP
- Theather Crew General Information (Imported via CVS)
- - Crew's Detailes (Taken from Crew's User Profiles)

I would like to display the Theather Crew General Information article and the Crew's Detailes information linking to the particular Theather Crew General Information article on the same page. Or atleast to display a link to this user added content on the Theather Crew General Information page.

Could anyone suggest how to set this up?

Re: Help needed with creation of a directory. Need to link articles to user profiles. 1 year, 6 months ago #2

  • tektest
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
I when a crew user completes his profile info he matches his user account to the specific Theather Crew General Information article via External Article field and so becomes linked to the primary article.
However I am not able to call this user profile information from the primary article. Is there some specific field type that allows for this to be done?

Re: Help needed with creation of a directory. Need to link articles to user profiles. 1 year, 5 months ago #3

  • tektest
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
My goal is to have user profiles linking to articles. (Example: Articles: Movie linking to Actor's Profile (Actors profile updated by Actor (User).
So when I open a Movie page I can browse through the llinked actors.

So far I ve managed to import movies into (Categories) and added all the necessay extra fileds and made Actors as user articles. However this option doesnt seem to work since there seems to be a limit to the number of possible categories and I get a blank screen when I try to display categories/blog view.

Different solution: add a dynamic select field to the actors content type in order to link actors to movies.
Problem: I cant figure a way to display the linked actors when I view the movie article.

Can you suggest a way of displaying a Movie article with a list of linked actors on the same page? (Without having to input each actor link manually to each movie?

Thank you in advance for your reply.
I hope you can help.

Re: Help needed with creation of a directory. Need to link articles to user profiles. 1 year, 5 months ago #4

  • tektest
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Peter:

Hi Anton

I'm not sure there is the perfect solution to your problem. The limitations come about through the limitations of the way that Joomla 1.5 is structured and although jSeblod CCK provides capabilities that work around Joomla in many areas, one-to-many and many-to-one relationships is not full catered for.

Perhaps your best solution would be to use jSeblod CCK with the Custom Properties tagging extension. I have used CP myself with the CCK and whilst I had to write a custom workaround it did to a large extent meet the need I have.

CP will allow you to set up a list of multiple tags (for movies in your case) which can then be accessed when you are adding content. So, for example, you could have a tag for every movie name and then when you create an article about a movie you would tag it with its CP tag. When an actor user extends their profile, they too would be able to see the list of movie tags and check the tag boxes for every movie they have acted in. They could also be given permission to create a tag for their name in an actors list of tags. Or you could add a tag for them when they register and before you approve their registration.

The result would be that you could then have a tag cloud on your site of movies which would link to the movie info and actors for each movie. Also, when you view the movie info you would have in the footer of the article a linked list of all of the actors who have tagged that movie. Likewise, when you view an actor's profile, you would have a linked list of all the movies they are tagged for.

That's how I think it would work in theory anyway. You would need to experiment to see if it meets your need and works in practice. I cannot think of a better way right now.

Anyway, I hope the above helps.

Peter
Last Edit: 1 year, 5 months ago by Peter L.

Re: Help needed with creation of a directory. Need to link articles to user profiles. 1 year, 4 months ago #5

  • leomiranda
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Joomla Designer and CCK Developer
  • Posts: 61
  • Karma: 0
Hi Peter,

My solution in Article template:


------------------------------

<?php

$profileId = CCK_DB_Result( 'SELECT contentid FROM #__jseblod_cck_users WHERE userid='.$this->content->created_by );
$database = JFactory::getDBO();
$query = "SELECT alias from #__content where id = $profileId";
$database->setQuery( $query );
$autoralias= $database->loadObject();

?>

<?php if($profileId){ ?>
<p><strong>User:</strong>
<a href="index.php?option=com_content&view=article&id=<?php echo $profileId ?>:<?php echo $autoralias->alias ?>&catid=35:autores&Itemid=68" ><?php echo $this->content->author; ?></a></p><?php } ?>

--------------------------

Modify your catid and itemid of link to user profile.

Best Regards
www.leomiranda.com
Joomla Designer and CCK Developer

www.jCursos.com.br
Curso de Seblod em Português
The following user(s) said Thank You: maik254
  • Page:
  • 1
Time to create page: 0.21 seconds