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
Remove Title Box
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Remove Title Box
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
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

- Posts: 9
- Joined: 04 Jul 2008, 20:05
Re: Remove Title Box
-
dax702
- Phoca Enthusiast

- Posts: 85
- Joined: 10 May 2008, 21:11
Re: Remove Title Box
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?
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

- Posts: 9
- Joined: 04 Jul 2008, 20:05
Re: Remove Title Box
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

- Posts: 2
- Joined: 24 Jan 2010, 14:47
Re: Remove Title Box
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) :
Regards,
Anton
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>Anton