Forums

CC and CF view in iframe

jhaviro 01 Feb, 2013
Hello.
This is my first question in this forum because I have no choice but to ask you for help. Chronoconectivity I use to display a single listing and ofrmulario to show a detailed view of each row of the list. Ok?.
The form I have is very simple, a text field, textarea another field and a button to go back. Nothing more.
What I need is to display data in an IFrame instead of a textarea to render the value of a variable as html.
The value of this variable is a text within the textarea html and can not be interpreted correctly.

the ideal would be to show variables like html pages within joomla content (like articles) but I imagine this would be more complicated to do.

Another question would be how I can put the title in the URL Done editing mode / view?

link to my site (testing):
http://194.224.224.128/index.php?option=com_chronoconnectivity&view=connection&Itemid=475
jhaviro 01 Feb, 2013
I answered myself. Probe a solution. Sometimes the most simple is the most accurate. Instead of including an IFrame to render html, it was with a simple DIV. Smarter, more consistent and less problems.

With this show get a variable containing html text in a simple container DIV. The purpose was not to edit but to create a view of each row separately list (similar to joomla articles)

Now I look for the solution to SEF contains the variable "title" in the URL


this is my solution to display HTML in a div (instead of displaying it in a textarea or an editor)
<? php
$ action = $ form-> data ['data'];
echo '<div>'. print_r ($ action, true). '</ div>';
?>
Max_admin 03 Feb, 2013
Hi,

So all is good ? you can create the edit link by using {field_name} in the body box and set same field name in the editable fields box.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jhaviro 03 Feb, 2013
Thanks for your answer. All right. I did not want to edit, just wanted to show a detailed view of each record. In the backend if I will create the psosibilidad to edit and change each record. This is the new link so you can see the result of what we wanted to do:
http://194.224.224.128/concurso-de-relatos/primera-edicion-historico.php.

But now I have another problem: is it possible to add to the value of a URL variable? This is the current value of my URL (example):
http://194.224.224.128/concurso-de-relatos/33

section + id + domain (domain + cc_edit_data + id)

cc_edit_data redirection is a rule that I created.

I need:
cc_edit_data + title + domain, where "title" is the value of one of the variables that I edit.
the result I want is:
http://194.224.224.128/concurso-de-relatos/title-of-my-relate.php
jhaviro 05 Feb, 2013
I found a solution "dirty" to solve my problem with URLs.
If you want to give me a better solution will be very grateful.

After configuring the component "sh404SEF" replacing the string: "cc_edit_data" by my own string, the result of the URL was:
http://Domain / nombre-Menu/nombre-submenu/id primary.

I wanted to replace the primary ID for the value of the variable in the link for it, I've done it:

in the file: custom_list.php (my list is personalized), on line: 275 (approx) I added the link:

<a href="<?php echo JRoute::_($this->build_url($this->connection_url."&task=".$this->tasks_names['cc_edit_data']."&cb=".$primary_value)); ?>"><?php echo $record_value; ?></a>

through my link:

<a href="<?php echo JRoute::_($this->build_url($this->connection_url."&task=".$this->tasks_names['cc_edit_data']."&cb=".$primary_value."-". $record_value.".php")); ?>"><?php echo $record_value; ?></a>


That way, I get the URL to the value of my link.
I encontrato some problems, I'm not going to count by limitations in my English, it is difficult to explain.
Essentially I concatenated value of the variable link. "$ record_value" and the extension ". php". That's it. Works for me but I guess it is not the best solution.
I am not a PHP programmer but this solution works for me (very dirty)
Byebye.😉
Max_admin 07 Feb, 2013
Hello,

Apologies for not replying sooner!

So you want to get SEF link of the non SEF one ? if yes then there is a "SEF parameters" setting under the "Advanced" tab in your connection, that should help.

Editing the core files may not be a good idea if you want to upgrade later.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jhaviro 08 Feb, 2013
Thanks for responding.

If indeed there is a field related to SEF, but I have not the faintest idea how to use it. I tried inserting the name of the variable {title}, but did absolutely nothing. Try to find some tutorial oo comment but found.
Editing core files is not a good idea but needed a solution.

If you can explain how that field modify SEF try to get what I need.
Thank you.
:)
Max_admin 10 Feb, 2013
No problems! regarding the SEF setting, if you have some sef field which you want to be added to the url, then you can use that box, for example, in our faqs page here, we add "alias" to the SEF fields box, since the database table has a column called "alias", which contains the sef text you see.

However, in order for this to work, the alias parameter and value should be present in the url, if you are using a custom listing then you can add this easily to the link you use to view records details, e.g: &alias={alias}

I hope this helps.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jhaviro 12 Feb, 2013
I must be doing something wrong because it does not work.
I disconnected the sh404sef component to check and generates exactly the urls and tried many options: & alias = {title} (title is the name of a field that exists in my table), & title = {title}, {title} ... and many other options and combinations but I get no result.
Result: even remove all SEO options I see no change in the URL.

The truth is that it was much easier to modify create the hack to try to run the SEF field.
The real problem is that "do not understand" how it works that area and have not found documentation explaining this parameter deeper.

I assure you that I have solved many problems I've had with your component, I found many post and help for this problem but nothing concrete.

I managed to make more than 10-12 different forms and connect with other components. Create advanced forms with multi options, javascript but this seems I'm not able to solve it without modifying their code. I even bought the book from the previous version!

I am very grateful for your help.

attentively
Javierp
Max_admin 17 Feb, 2013
Hi Javier,

In order to make sure it works as expected, please disable SEF and test the links, hey should be in this format:
index.php?option=com_chronoconnectivity&connection=my_connection&task=cc_edit_data&id=123&alias=test-alias


Once you setup the sef parameters with "alias", you should get something like this:
connection_link/cc_edit_data/123/test-alias


I suggest testing with core Joomla SEF first.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jhaviro 24 Feb, 2013
I'll try to follow them to attempt to remove Hack the core of the application. However, right now is working well but I would use the component properly.

Eventhough Chronoform or any problem with the power and versatility ChronoConectivity component is impressive compared to other competing products. You may need a deeper understanding of programming but at the capacity and optimal results.

I am very grateful for all the help and input. If I can remove the hack heeding their advice will write informing it.

Thanks again and congratulations for your great work and components.
This topic is locked and no more replies can be posted.