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!