11 years ago
2
Topic

Hi all! I've been using Seblod on and off for a month now and have had a lot of trouble figuring out how to program templates using PHP. What I'd really like is some documentation, but i also need help figuring these out in case the documentation isn't helpful.

I some basics such as $cck->renderFieldContent($nameOfField) which renders out the field, but then there are other things I still need help with.

Linking Content Types

Say I have a Home content type and a Testimonial content type. I figured out you can use Article (Related) to pull in that Testimonial on the homepage. How would I get a PHP object with all the information? So far, all I can get is either the object's id, title, a link to it, or an HTML output of the entire Testimonial as it would show from the Testimonial template. All I need is a few fields from the Testimonial object.

Linking Fields in Admin

In the admin area, is it possible to link multiple fields together like FieldX but with more than one?

I want this:

  • Image
  • Title
  • Image
  • Title
  • Image
  • Title

Instead of this:

  • Image
  • Image
  • Image
  • Title
  • Title
  • Title

Thanks!

Get a Book for SEBLOD
11 years ago
1
Level 1

Just noticed GroupX seems to do what I wanted to for linking Fields. Now I just need to figure out how to gain more control when linking Content Types.

Source: http://www.seblod.com/community/forums/fields-plug-ins/what-are-fieldx-and-groupx-fields-for#post4477

11 years ago
0
Level 2

$cck->get($fieldName)->value

This will get me an ID number of a referenced content type, but no way to actually get the content itself. I think I'm closer but not close enough.

Get a Book for SEBLOD