Page 1 of 1

Remove Title Box

Posted: 26 Aug 2008, 04:39
by JessicaLW
Hi Jan,
I did a search on the Title field and lots of topics came up but none of them instructed on how to remove the Title field or if it was even possible. I'm not sure why a guestbook needs a "Title" and would like to see it gone. I looked in the file components/com_phocaguestbook/
views/phocaguestbook/tmpl/default.php. I see the Title information but I'm not sure which line to delete or if it is even possible.

Thanks in Advance,
Jessica

Re: Remove Title Box

Posted: 27 Aug 2008, 01:03
by Jan
First you should add to Require Title Parameter (in Parameters Component NO) then you can change the following code in:
components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

remove the code:
274 - 277 (form)

Jan

Re: Remove Title Box

Posted: 27 Aug 2008, 01:18
by JessicaLW
:twisted: It worked! Thank you Jan!

Re: Remove Title Box

Posted: 10 Oct 2008, 10:45
by dax702
Jessica,
I am looking to do something similar. But have you not noticed that without a title, in the backend admin, you can't tell the entries apart from each other because it uses the title field for listing and clicking to edit? Or do you have no need to edit your entries at all?

Re: Remove Title Box

Posted: 10 Oct 2008, 15:30
by JessicaLW
Yes I have noticed that but you can still edit them. The last one falls to the bottom of the Admin panel so I just click the bubble and hit edit.

Re: Remove Title Box

Posted: 24 Jan 2010, 14:55
by producer555
FOR THE LATEST VERSION :
First, in the general parameters or in the menu for the guestbook, you must select the option "NO" in the "Require Title" parameter.

Then... in the file : components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php

you have to REMOVE that code (about lines 227-230) :

Code: Select all

<tr>
			<td width="5"><b><?php echo JText::_('Title'); ?>: </b></td>
			<td colspan="3"><input type="text" name="title" id="pgbtitle" value="<?php echo $this->formdata->title ?>" size="32" maxlength="200" style="border:1px solid #cccccc" /></td>
		</tr>
Regards,
Anton