Calguys feedback module, How do the keys work?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Calguys feedback module, How do the keys work?

Post by jk »

Hi All,

I am using Calguys Feedback module as a guestbook on a site and it works a treat.  The site has two languages and I want to just display the relevant languages guestbook comments.  I have created a custom field for each post so we can set each comment as either English or Dutch.

I want to use a parpmeter so that in the English page template only those comments with the custom field set to English are displayed.  I do not think there is a paramenter that will do this though for this module.

Any ideas how I can do this?

Thanks JK.
Last edited by jk on Thu Jul 16, 2009 9:57 am, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Calguys feedback module, languages and custom fields

Post by Jeff »

Why do you just put it in your english template using this?

{CGFeedback key1=english key2=guessbook}
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Re: Calguys feedback module, languages and custom fields

Post by jk »

Thanks for the response - but I am not sure how to get this to work.  I must need to do something to link the keys to teh term english.  Do I need the custom field at all using this method?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Calguys feedback module, languages and custom fields

Post by Jeff »

I don't know your site setup, so I can't help you much more.

But using my method you don't need a custom field.
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Re: Calguys feedback module, languages and custom fields

Post by jk »

Anyone know how to us the key1 to 3 in Calguys feedback module.  The instructions are sparse and I am not sure at all how ot use them.

Jenny
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Re: Calguys feedback module, How do the keys work?

Post by jk »

Just bumping this  - I can not find out how this works despite a lot of trial and error and reading of posts.  Can any one tell me how the keys work in this module?

Thanks JK
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Calguys feedback module, How do the keys work?

Post by Jeff »

Tell us what you tried and what you got. Sorry but I think the documentation is clear and make sense. So unless  you give a LOT more detail that is what you will get.
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Re: Calguys feedback module, How do the keys work?

Post by jk »

Hi  - which documentation are you referring to?  The only stuff I found was in the module help which is as follows

CGFeedback can be utilized within the news module to allow site visitors to enter comments on particular news articles. To do this, you would enter a tag such as: {CGFeedback key1="News" key2=$entry->id} into the appropriate news detail template. Similarly to display those comments, you would use a tag such as {CGFeedback key1="News" key2=$entry->id action='summary'}

Similar techniques can be used to allow CGFeedback to interact with almost any other module in limitless ways.

Additional parameters can be used to further customize the behaviour and output of the module. You are encouraged to explore the parameters as described below, and try them.


I do not see how change the tag code to get a page to display only one language.  I thought it might be something like this
{CGFeedback key1="Language" key2="English" key3=$entry->id action='summary'}
Presumably this means I need to set up the keys in the module admin to match the fields that I want to select on. As I said I have set up a new field called Language with two options English or Dutch.   In the admin for the module there are the three drop downs for the key's.  I expected this to be a list of the fields -  however mine just say   Any/page    Any/70  and   Any   in that order.

I am rather confused!
Any pointers would be appreciated.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Calguys feedback module, How do the keys work?

Post by Jeff »

You don't have to "Make" keys, you just use them and then they will show up on Admin page.

The main Admin page is for viewing the comment and that dropdown box is to filter the results.

As in the example show, the standard usage is key1= module name and key2 = item id.

But you want to have language, I would put key1= language (either dutch or english) and then key2 = module name and key3 = item id.
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Re: Calguys feedback module, How do the keys work?

Post by jk »

Hi Thanks for the help but I am still struggling with this. I have done lots of trial and error without success.

I have the following
{CGFeedback key1=english key2=CGFeedback key3=$entry->id action='summary'}

For key1 I am not entirely sure what to put in here.  Should it be EN or english or en_US?  I am not sure if I should be matching a database field, or the format for the language module.

Secondly I am not sure what to put in key three.  The field I created in CGFeedback module to hold the language information is field_id 2 in the database (table cms_module_cgfeedback_fieldvals) and has values of EN or NL.  Normally I assume this would relate to a news category but my example is not directly analogous so I am not sure.

If you could give me a bit more help that would be greatly appreciated.

Thanks JK
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Calguys feedback module, How do the keys work?

Post by Jeff »

The keys can be anything you want them to be, as long as you are constant. The third key depends on how you want to distinguish your comments from each other, usually as in the examples given by me and in the help it is by the "id" of the module that you are putting it in.

The general rule is key1 is the most generic and key3 is the most specific.

Without seeing your system I can't decide what the exact values should be. If you having so much trouble grasping the concept of this, you might want to post in the Help Wanted section for a consultant to work with on this.
jk
Forum Members
Forum Members
Posts: 30
Joined: Thu Dec 04, 2008 4:47 pm

Re: Calguys feedback module, How do the keys work?

Post by jk »

Post Reply

Return to “Modules/Add-Ons”