A third question...
I wanted the category title to only show up as a component heading on the category page and not the object page, so I made this change in estateagent.php
| Code: |
<!-- show title on category page only -->
<?php if ($act == "cat" && $task != ""«»)
echo "<div class='componentheading'>"._EA_TITLE."</div>";
?>
<!-- end title toggling -->
|
Then I decided I would like the object title to be displayed as the component heading on the object page instead of displaying it in small print. This is where I ran into problems. I tried
| Code: |
<?php if ($act == "object"«»)
echo "<div class='componentheading'>".$obj->title."</div>";
?>
|
but that didn't work. I'm guessing it's because in the header function the object hasn't been loaded and the $act variable hasn't been set - is that correct?
How would I go about doing this? If it works I'd also like to remove the original object heading from the page so it's not repeated.
Sorry to be asking so many questions, but I would like to knock this project over fairly quickly. I want to get these questions answered before I make a final decision to go with ME (although I'm pretty much decided already), and once I do give it the go I'm happy to make a donation... won't freeload

Thanks<br><br>Post edited by: CowboyDan, at: 2007/12/29 05:34