Welcome, Guest
Username Password: Remember me

Title + Teacher and Filter problem
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Title + Teacher and Filter problem

Title + Teacher and Filter problem 08 Dec 2009 14:42 #1567

In the Template Display Settings, in the Study List Row 1, when I select Title + Teacher {teacher-title-name}, only the Teacher name shows. Selecting the Title {studytitle} works Ok.

I also noticed a Filter issue. I select Teacher A as a Filter, then at the site, when I select from one of the Topics that happens to be with Teacher B, I don't see any studies. If I turn off the Teacher Filter, then the studies show when I select the topic with teacher B. Is this working as designed or is this a bug?

Re:Title + Teacher and Filter problem 08 Dec 2009 14:46 #1568

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Hi Bill,

Issue one is a bug. I caught that the other day and it'll be fixed in 6.1.1. Issue two will happen - it would be very difficult to adjust the filter of topics based on which teachers are displayed - they happen in different queries in different files. At this point I'm not sure how we would tell the topics query to show studies only with the teacher filter - but it's something we can consider.

If you want, you can replace this file to correct the teacher + title problem.

/components/com_biblestudy/helpers/elements.php

Rename to .php of course.

Tom

File Attachment:

File Name: elements.txt
File Size: 6657
"You shall know the truth and the truth shall set you free." JC

Re:Title + Teacher and Filter problem 08 Dec 2009 15:28 #1569

Sorry Tom, but the elements file didn't fix the Title + Teacher. I understand on issue two.

Re:Title + Teacher and Filter problem 08 Dec 2009 18:44 #1570

Tom, I made this change and it worked. I also added the double dashes to create some separation between the Title and Teacher:
From:
case 8:
$elementid->id = 'teacher';
$elementid->headertext = JText::_('Teacher');
$elementid->element = $row->title.' '.$row->teachername;
break;
To:
case 8:
$elementid->id = 'teacher';
$elementid->headertext = JText::_('Title -- Teacher');
$elementid->element = $row->studytitle.' -- '.$row->teachername;
break;

Re:Title + Teacher and Filter problem 09 Dec 2009 07:37 #1574

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
I see - I misunderstood what you wanted. By "title" I was assuming the teacher's title like title=Pastor and teachername=John Smith - that's what that choice is supposed to do. Keep your custom field in mind as in 6.1.1 elements.php will revert back. I just need to figure out why the teacher title doesn't show up!

Tom
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
Time to create page: 0.67 seconds