Page 1 of 1

Canged Parameters having no effect

Posted: 08 Jul 2010, 18:56
by Graham
I have got the Guestbook working however when I change the parameters for the menu item they have no effect on the Guestbook e.g. setting it to display the form at the bottom etc. I change the parameter and save or apply it then refresh the page - no change! The parameter is changed in the menu if I go out and in but there is no effect on the behaviour.

I did note that there are two very similar directories - only one with a non-empty default.php

/phocaguestbook/tmpl/default.php 14kb
/phocaguestbooki/tmpl/default.php 0kb

May be irrelevant.

Also I would like to remove the Title and Email fields from the form - the only help I found said to remove numbered rows from default.php which is fine but if I remove those rows the balance of the file row numbers will change so I don't know which lines to actually change. It would help if the content of the rows to remove was listed.

Graham

Re: Canged Parameters having no effect

Posted: 08 Jul 2010, 22:04
by Jan
Hi, you can remove the title and email in parameters, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla

Jan

Re: Canged Parameters having no effect

Posted: 09 Jul 2010, 18:52
by Graham
I have set the component parameters to remove these items from the form and place the form at the bottom of the comments but the changes have no effect on the way the guestbook displays. I am using a Rochen hosted Joomla site and the module installed without any warnings so I am at a loss.

Could it be because I am calling the Guestbook from within content rather than directly from a menu? It is on a hidden menu and is called by a link in a page. I think I will try putting it on the main menu and report back.

Well - that worked - when I moved the Guestbook to the main menu it worked as expected, when I put it back on the hidden menu (called from a link in an article) it used the default settings! Looks like a bug.

Any suggestions? :cry:

Re: Canged Parameters having no effect

Posted: 11 Jul 2010, 14:24
by Jan
Hi, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla

Settings in Joomla! needs to have an itemid (so the itemid should not be unpublished, you can unpublish the whole group)

Re: Changed Parameters having no effect

Posted: 13 Jul 2010, 00:02
by Graham
I haven't explained properly - there is a menu called 'hidden' which is published and it contains 4 items - one of which is the guestbook which is also published - there is only 1 guestbook - id=1.

Within the front page there is a call

<a href="index.php?option=com_phocaguestbook&view=phocaguestbook&id=1" title="Please click here to read and leave comments in our Guest Book">Please click here to read and leave comments in our Guest Book.</a>

This produces a Guestbook page using default values. If I change the menu item guestbook to be a member of the 'Main Menu' rather than 'hidden' all the parameters work.

The menu 'hidden' is not displayed on the front page, it is a placeholder for sub pages which are called by inline calls like that above.

The website is www.lilacbank.co.uk and you can see the default style Guestbook.

Graham

Re: Canged Parameters having no effect

Posted: 15 Jul 2010, 13:31
by Graham
Has anyone else seen this effect? If I cannot overcome it I will need to use a different Guestbook solution.

Graham

Re: Canged Parameters having no effect

Posted: 16 Jul 2010, 15:53
by Jan
Hi, the problem is, your link does not include Itemid like other links. Settings are made by Itemids in Joomla! see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
https://www.phoca.cz/documents/16-joomla ... -in-joomla

So you need to copy the link with included Itemid (ID of the menu link which is stored in hidden menu group)

Your link:
... index.php?option=com_phocaguestbook&view=phocaguestbook&id=1
Needed link:
... index.php?option=com_phocaguestbook&view=phocaguestbook&id=1&Itemid=SomeNumberOfMenuLink

like e.g. for menu link food on your site:
... index.php?option=com_content&view=article&id=3&Itemid=3

Jan

Re: Canged Parameters having no effect

Posted: 16 Jul 2010, 16:42
by Graham
You were abosolutely correct - my misunderstanding. :twisted:

Re: Canged Parameters having no effect

Posted: 17 Jul 2010, 14:40
by Jan
Ok