Control variables ChronoForm and ChronoConnectivity

mismamentetu2009 02 Oct, 2009
Hi,

My name is Manuel and I have purchased a license for ChronoForm 3.1 RC5.1 and ChronoConnectivity 1.2. And I use Joomla 1.5.9.

Also, I use Juga 1.5.2 and want to know all the variables of my components to control each of the parties.

For example:

1. What variable is added to the Form when it occurs with a failure by the checkServerValidation and decuelve the Form?
2. What ChronoConnectivity variable adds to ChronoForm when you click on an item?
3. Do you add a variable when you write a redirectUrl?
4. What variables control when menu item is a ChronoForm or ChronoConnectivity?
...

Thanks, I await your response.
GreyHead 02 Oct, 2009
Hi Manuel,

1. None
2. Don't know
3. Up to you
4. option

Bob
mismamentetu2009 02 Oct, 2009
Hi Bob,

In the end I know I've got 2, and I think the others are not. I was referring to the URL variable, which I believe I have not said before.

As if someone serves:

1. &task=send (I think it was Try republish)
2. &task=editrecord&cids = (and the id of the item)(although you can ignore the force to id integer)
3. None
4. &Itemid= (but there is much more under control)

Thanks and I hope that will work for anyone.
GreyHead 03 Oct, 2009
Hi Manuel,

Well, task=send is in the form action url so you'll get that on any form submission not just on server validation failure

You'll get task=editrecord from clicking an 'editrecord' link but not from a delete link (or a view link)

ItemID is the Joomla menu identifier - it doesn't necessarily distinguish which component is linked to.

Bob
Mizpah 03 Oct, 2009
Heya Folks,

Bob - I am unaware if you are familier with Juga, its entire concept is to do with permissioning content based on the url, and creating rules to define how new content shoudl be permissioned based on a predefined set of rules for url structure. I suspect thats the rationale of the above questions! As chronoform uses the ItemID to link a form directly to a menu this can cause issues with Juga - i.e. /index.php?option=com_chronocontact&Itemid=43 as there is no unique url var for chronoforms (it uses itemid the same as an article). There are however two routes round this, listed below that may help yourself or others out in the future, both currently fully working on my dev site.

Manuel - if trying to use Juga to permission a form via ItemID (as I suspect from the posts above) it wont work by default. I.e. adding 'Itemid' to 'com_chronocontact' under Juga variables will not work by itself!!

It can however be enabled as an option *WITH SOME POSSIBLE RISKS*. Heres a responce I had back from Dioscori on the matter:

The Itemid variable is unique for Joomla in that its intended use is for associating pages on your site with particular menu items. This enables Joomla to do things such as highlight menu items when a page is loaded and display modules for specific pages on your site. To confirm this, take a quick study of Joomla's routing mechanism, which takes a URL such as:
index.php?Itemid=14
and will automatically re-write it to a 'natural' URL, something akin to:
index.php?option=com_whatever&view=something&Itemid=14

The overwhelming majority of 3pd components don't use the Itemid variable in any way, and in fact, they aren't supposed to (though it's clearly not forbidden). However, some do, and this causes headaches for JUGA users. You can make JUGA recognize the Itemid variable if you want, but we don't publicize this because it would (and has) lead to MORE headaches than having it disabled.

The decision was made long ago that at the expense of GREAT headaches caused by recognizing the Itemid as a valid variable, we would cause MINOR headaches.

However, you can make JUGA recognize the Itemid, so, if you want, open the file:
root/administrator/components/com_juga/helpers/juga.php

and change Line 732
FROM
case "Itemid":
TO
// case "Itemid":

within the _cleanQuery() function

This makes JUGA recognize the Itemid variable.



Your other option is to use Embed (from Disoscori - its Free!) to link the forms into a article, that you then permission normally against the articles - and link the menu to the article with the embedded form inside - however that will not prevent people from typing in a form url - it will however protect menu options, if your menu links to an article with an embedded form!

Hope this helps,

/Miz
GreyHead 03 Oct, 2009
Hi Mizpah,

I don't know anything about Juga, or menu links come to that. If you need to identify a ChronoForm then it's probably best to use External links in your menus and then you can add any variable that you like.

Bob
mismamentetu2009 04 Oct, 2009
Hello Mizpa,

Thank you very much for the article that you recognize Juga Itemid, proves it.

In the end I managed to get recognized all the variables as Bob says, through an external link in the menu item.

Thank you very much.
This topic is locked and no more replies can be posted.