Notice

This old forum is now only available for consultation/read. User accounts on this old website are blocked.
Please create a new account on seblod.com and use the new forum http://www.seblod.com/community/forums.
Apologies for this perturbation and thank you for your understanding!
Welcome, Guest
Username Password: Remember me

Field Related Article
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Field Related Article

Field Related Article 3 years, 1 month ago #1

  • webcaju
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 140
Hello everybody I am using the type field Related Article but it is printing the ID of the article as I can not print the article title instead of ID.

Thanks to all

Re: Field Related Article 3 years, 1 month ago #2

  • dan1dyoung
  • ( User )
  • OFFLINE
  • Administrator
  • Posts: 978
Hi,

Do you have a screenshot to explain better??

Thanks

Dan
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. For any of my jSeblod CCK Packs or tips visit my site D.Y.Solutions

To keep up to date with new videos about Seblod 2.0 subscribe or visit our channel here

Re: Field Related Article 3 years, 1 month ago #3

  • webcaju
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 140
Follow the print screen

Untitled-1_2011-10-08.jpg


I put this field into a field of type fieldx see:

 
<?php
foreach($cck->get( 'unidades_cursos' )->value as $cursos){
echo $cursos->value . '<br />';
}
?>
 


If I put the attribute value it prints the ID but I need the title of the article.

thanks
Last Edit: 3 years, 1 month ago by webcaju.

Re: Field Related Article 3 years, 1 month ago #4

  • dan1dyoung
  • ( User )
  • OFFLINE
  • Administrator
  • Posts: 978
Hi,

OK its custom, try ->text or ->title

Thanks

Dan
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. For any of my jSeblod CCK Packs or tips visit my site D.Y.Solutions

To keep up to date with new videos about Seblod 2.0 subscribe or visit our channel here

Re: Field Related Article 3 years, 1 month ago #5

  • dan1dyoung
  • ( User )
  • OFFLINE
  • Administrator
  • Posts: 978
Hi,

I have not tested but from the code it should be:

->text

Thanks

Dan
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. For any of my jSeblod CCK Packs or tips visit my site D.Y.Solutions

To keep up to date with new videos about Seblod 2.0 subscribe or visit our channel here

Re: Field Related Article 3 years, 1 month ago #6

  • webcaju
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 140
I had already tested the title but the text had not tested yet, perfect work correctly ...

Thanks for the help.

Re: Field Related Article 3 years, 1 month ago #7

  • dan1dyoung
  • ( User )
  • OFFLINE
  • Administrator
  • Posts: 978
Hi,

Great, most things are "value" &" text" and with typo's also "link", for use inside typo (*value*), the plugins are set to the default type by code but when you use custome you ask for a specfic attribute so the default is not applicable.

Thanks

Dnan
If you use jSeblod CCK, please post a rating and a review at the Joomla! Extensions Directory. For any of my jSeblod CCK Packs or tips visit my site D.Y.Solutions

To keep up to date with new videos about Seblod 2.0 subscribe or visit our channel here

Re: Field Related Article 3 years, 1 month ago #8

  • webcaju
  • ( User )
  • OFFLINE
  • Expert Boarder
  • Posts: 140
Hello all,

Another question is how to retrieve fields related article above we can recover the value and text but what if I need to recover the Image field of this article.

example:
CCK in the related article I have fields

cursos_titulo
cursos_imagem

I need to retrieve these values ​​in the following fieldx did not work out:

 
<?php
foreach($cck->get( 'unidades_cursos' )->value as $cursos){
echo $cursos->['cursos_titulo']->text;
echo $cursos->['cursos_imagem']->text;
}
?>
 


Thank you guys ...
  • Page:
  • 1
Time to create page: 0.28 seconds