I used ChronoConnectivity to display a database of items and enable users to create/edit/delete those records. Works wonderfully. I used the profile page plugin to display the item's details. I want to enable users to post messages about an item from the profile page, as well as view all the other messages and provide create/edit/delete on the message records. Is it possible to use ChronoConnectivity on the profile page? and if so, how? I've only seen how to invoke CC via a menu item, but don't see examples of how to do it from a page.
BTW, great extensions, allowed me to do a whole lot in a short amount of time.
BTW, great extensions, allowed me to do a whole lot in a short amount of time.
Hi frances,
There is no plugin for CC and I suspect that embedding it in a Profile page might not be possible (the code gets too circular). You might though be able to show the Profile page on a CC page to achieve the same thing??
Bob
There is no plugin for CC and I suspect that embedding it in a Profile page might not be possible (the code gets too circular). You might though be able to show the Profile page on a CC page to achieve the same thing??
Bob
Hi Bob,
Thanks for that prompt response and suggestion of an alternate approach. In my attempt to implement displaying the item details on the CC page, I ran into an issue where I think I need to pass the item's cf_id to the message's create_record.
I passed to the CC page the item's cf_id (via query string) so I can display the item's details and in the WHERE SQL pull the associated messages from the message database. So the display of the details and messages works fine. The problem is when I click on the create_record - the item's cf_id isn't making it onto the message input form such that I can link the message to the item. Is there a way I can get the item's cf_id to save with the message when doing a create_record?
Thanks for that prompt response and suggestion of an alternate approach. In my attempt to implement displaying the item details on the CC page, I ran into an issue where I think I need to pass the item's cf_id to the message's create_record.
I passed to the CC page the item's cf_id (via query string) so I can display the item's details and in the WHERE SQL pull the associated messages from the message database. So the display of the details and messages works fine. The problem is when I click on the create_record - the item's cf_id isn't making it onto the message input form such that I can link the message to the item. Is there a way I can get the item's cf_id to save with the message when doing a create_record?
UPDATE: instead of using the {create_record} I created a link and used the URL instead and added an ID to associate the message to the item. I programmatically add to the redirecturl the item ID so when they are redirected back OnSubmit, I can redisplay the item details on the CC page. I can do the same for the {edit_record} when the user submits their edits and I want to redirect them back to the CC page. But is there a way I can set the redirecturl for when the user {delete_record}? I don't know where I can code that redirect.
Hi frances,
I'm sure that I've done this for a client but can't find the code right now. From memory I added &task=del into the ChronoForms URL then put code into the Form HTML to look for this; check the permissions were OK then delete the record (or at least flag it as deleted) and show an appropriate message.
Bob
I'm sure that I've done this for a client but can't find the code right now. From memory I added &task=del into the ChronoForms URL then put code into the Form HTML to look for this; check the permissions were OK then delete the record (or at least flag it as deleted) and show an appropriate message.
Bob
Hi Bob,
Thanks again for all your help. I put the "flag record as deleted" code in the Extra Code, and set the redirecturl, but I do not know how to invoke the redirect. Is there a way to do that? I was looking at the <meta> tag, but I'm wondering if there's a better way.
Also, just a general question about the Extra Code section, are there limitations on what can be put in there e.g. <form>? would the OnSubmit code get called afterwards?
Thanks
Frances
Thanks again for all your help. I put the "flag record as deleted" code in the Extra Code, and set the redirecturl, but I do not know how to invoke the redirect. Is there a way to do that? I was looking at the <meta> tag, but I'm wondering if there's a better way.
Also, just a general question about the Extra Code section, are there limitations on what can be put in there e.g. <form>? would the OnSubmit code get called afterwards?
Thanks
Frances
Hi Frances;
The easy way is
Bob
The easy way is
>?php
$mainframe->redirect('url', 'message');
?>
where 'message' is optional and will show a Joomla System Message if you use it (and your template supports Joomla System Messages).Bob
Hi Bob,
Thank you so much for the prompt responses and awesome support. With you suggestions, I was able to implement a workable solution to my initial problem - and I'm happy to say that it all works and flows the way I initially envisioned it to.
Thanks again for the great product and support.
Frances
Thank you so much for the prompt responses and awesome support. With you suggestions, I was able to implement a workable solution to my initial problem - and I'm happy to say that it all works and flows the way I initially envisioned it to.
Thanks again for the great product and support.
Frances
This topic is locked and no more replies can be posted.