Remove Title Box

Phoca Guestbook - creating guestbooks in Joomla! CMS
JessicaLW
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 04 Jul 2008, 20:05

Remove Title Box

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove Title Box

Post 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
If you find Phoca extensions useful, please support the project
JessicaLW
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 04 Jul 2008, 20:05

Re: Remove Title Box

Post by JessicaLW »

:twisted: It worked! Thank you Jan!
dax702
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 10 May 2008, 21:11

Re: Remove Title Box

Post 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?
JessicaLW
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 04 Jul 2008, 20:05

Re: Remove Title Box

Post 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.
producer555
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 24 Jan 2010, 14:47

Re: Remove Title Box

Post 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
Post Reply