Hi
I am looking for help in a small issue I have, so all help would be greatly appreciated.
Within my template I have a control inside another control:
<% control Author %>
$author_name
<% control Top.Book %>
$book_name<br/>
<% end_control %>
<% end_control %>
Within my controller I have the following two functions:
public function getAuthor() {
$authorObjects = DataObject::get("author");
return $authorObjects;
}
public function getBook() {
$bookObjects = DataObject::get("book", "authorsID={?????}");
return $bookObjects;
}
The problem is, I cannot work out how to get the the current author id within the getBook function. See ?????.
Does this make sense. If not, I'll try and explain better.
Many thanks in advance.
Sean