What I am trying to do should be done in Chronoforms and not in Connectivity?
You can do pretty much anything from CF in CC and vice versa.
And this where I am stuck. I just cannot wrap my mind around how to make this work in ConnectivityV6. If you have a way, please share!
Create a HTML view with the code Bob supplied, let's call this "print_link"
In your index event (or whatever event you want it shown in), in the place you want it shown, call the view with {view:print_link}
I cannot get the code in the FAQ's to work in CCV6, o be sure there is an easier way. Adding code from "Code for ChronoForms v4 using MooTools" section throws a 404 and adding code from "Code for ChronoForms v5 using jQuery" has no effect, nothing is displayed. Is there another way around this?
I put that code that YOU provided on my connection and it worked instantly. What's the problem exactly?
The 404 error spawns when I save the connection with that print code in it.
Check your server's mod_security settings, it's probably filtering out a certain string and breaking it.
Could it be that? I can save the print code above anywhere else in the site (except CF and CC) without error.
That EXACT thing has happened to me multiple times so yes : check mod_security or the logs for same. NOT PHP error logs, but actual SERVER logs.
I removed onclick from the code and I can save without getting a 404 and the print link shows up. But without onclick the link does not work. How do I allow that?
Request:
POST /administrator/index.php?option=com_chronoconnectivity6&cont=connections&act=edit
Action Description:
Access denied with code 403 (phase 2).
Justification:
Pattern match "(?:< ?script|(?:<|< ?/)(?:(?:java|vb)script|about|applet|activex|chrome)|\\%env|< ?i?frame ?src ?= ?(?:ogg|gopher|data|php|zlib|(?:ht|f)tps?):/|(?:\\.add|\\@)import |asfunction\\:|background-image\\:|e(?:cma|xec)script|\\.fromcharcode|get(?:parentfolde ..." at ARGS:_formchunks[0].
***************************
This is what I see in ModSecurity Tools. I am assuming that when I save the print code in CF or CC that it is creating a pattern that matches a rule. If I update/change a rule am I allowing more vulnerabilities?
No idea sorry. Maybe? Don't think so though should be fine.
Rather than modding the rules, etc, I updated the views table in MYSQL by placing the code there and saved it. The print link works now. Thanks for the help healyhatman
The biggest issue with my "workaround" is that I cannot edit the connection via the url/administrator link, I have to edit in MYSQL.