ruhtra
Posts: 30
|
| Posted: 03/08/2011, 8:30 AM |
|
I tried YS support, but I got not productive answer or response from them for 3 weeks, so I'm looking for help here. Please keep in mind, I'm PHP novice.
When I use a Joomla WRAPPER componenct everything works fine, however WRAPPEr has many limitations. JUMI component allows to include JUMI tags on the article page and withing those tags put any type of PHP code which is then run and interpreted as every other code. The problem arises when the (say) Main.php file has references to otehr includable php files. CCS handles that the way that it uses RelativePath variable, which holds the root folder for the site(or application - I'm not sure how this works), and whe code interpreted by JUMI component wants just an application not the website path.
Here is an example:
My CCS application is in: ../public_html/aplicationmanager/apdb folder
My website is in: ../public_html
somehow the application (or my Menu.php file) looks for the includable files in /home/klon56/public_html/aplicationmanager/apdb - but it should (I guess)look in: ../public_html/aplicationmanager/apdb
Arthur
|
 |
 |
damian
Posts: 838
|
| Posted: 03/08/2011, 11:30 PM |
|
Quote ruhtra:somehow the application (or my Menu.php file) looks for the includable files in /home/klon56/public_html/aplicationmanager/apdb - but it should (I guess)look in: ../public_html/aplicationmanager/apdb
if you look at your published ccs application without any jumi is the menu still referencing /home/klon56/....?
it really shouldnt... it shouldnt even look in /public_html/ it should just start with /
please review all your settings in ccs
even though /home/klon56 etc loads the same website as / you really need to remove those references... i think if you do that you will be a lot closer...
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
ruhtra
Posts: 30
|
| Posted: 03/15/2011, 4:02 PM |
|
the iFrame and Joomla Wrapper will not work. I tired that, and for some reason there are all kind of wired things happen, especially on pages with Tabs (where the pages shrink down not displaying any data).
When I open this App, directly (not through Joomla framework) it all wors fine, and I do not see any references to the path in the source,...
this is a fragment for the page with the grid for browsing records.
==========================================================================
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Ap Schorzenia</title>
<meta name="GENERATOR" content="CodeCharge Studio 4.3.00.7676">
<meta name="keywords" content="schorzenia, choroby, dolegliwości, choroba, chor�b">
<link rel="stylesheet" type="text/css" href="Styles/EDB_22/Style.css">
</head>
<body bgcolor="#ffffcc">
<div align="center">
<div align="left">
<form id="ap_schorzeniaSearch" name="ap_schorzeniaSearch" action="ap_schorzenia_list.php?ccsForm=ap_schorzeniaSearch%3AEdit" method="post">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<table class="Header" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="HeaderLeft"><img src="Styles/EDB_22/Images/Spacer.gif" border="0"></td>
<th>Search Ap Schorzenia </th>
<td class="HeaderRight"><img src="Styles/EDB_22/Images/Spacer.gif" border="0"></td>
</tr>
</table>
<table class="Record" cellspacing="0" cellpadding="0">
<tr class="Controls">
<th>Nazwa</th>
<td><input id="ap_schorzeniaSearchs_Nazwa" maxlength="80" size="50" value="" name="s_Nazwa"></td>
</tr>
<tr class="Controls">
<th>Uklad</th>
<td>
<select id="ap_schorzeniaSearchs_Uklad" name="s_Uklad">
<option value="" selected>Select Value</option>
</select>
</td>
</tr>
<tr class="Bottom">
<td align="right" colspan="2">
<input class="Button" id="ap_schorzeniaSearchButton_DoSearch" type="submit" value="Search" name="Button_DoSearch"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<div align="left">
</div>
</div>
<br>
<div align="center">
<div align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top">
<table class="Header" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="HeaderLeft"><font size="2"><img src="Styles/EDB_22/Images/Spacer.gif" border="0"></font></td>
<th>List of<font size="2"></font>Ap Schorzenia<font size="2"></font></th>
<td class="HeaderRight"><font size="2"><img src="Styles/EDB_22/Images/Spacer.gif" border="0"></font></td>
</tr>
</table>
<table class="Grid" cellspacing="0" cellpadding="0">
<tr class="Caption">
<th>
<a href="ap_schorzenia_list.php?ap_schorzeniaOrder=Sorter_Nazwa&ap_schorzeniaDir=ASC" id="ap_schorzeniaSorter_Nazwa">Nazwa</a><font size="2"></font>
<font size="2"></font>
<font size="2"> </font></th>
<th>
<a href="ap_schorzenia_list.php?ap_schorzeniaOrder=Sorter_Uklad&ap_schorzeniaDir=ASC" id="ap_schorzeniaSorter_Uklad">Uklad</a><font size="2"></font>
<font size="2"></font>
<font size="2"> </font></th>
<th>
<a href="ap_schorzenia_list.php?ap_schorzeniaOrder=Sorter_NazwaLacinska&ap_schorzeniaDir=ASC" id="ap_schorzeniaSorter_NazwaLacinska">Nazwa Lacinska</a><font size="2"></font>
<font size="2"></font>
<font size="2"> </font></th>
<th></th>
</tr>
|
 |
 |
djgjohn
Posts: 52
|
| Posted: 03/17/2011, 1:22 AM |
|
One way I have done this in the past is to render the HTML first, then display the result in Jumi.
Create a file called eg. "ccs_interface.php" and save it to a Joomla site folder. Call that file from inside Jumi.
In the following - 'test.php' would be your CCS page. You will need to set absolute paths to Styles folders etc if you want to use CodeCharge styles.
Ref:
http://forums.yessoftware.com/posts.php?post_id=79988
<?php
$output = implode("",file(http://fully.qualified.server.name/test.php));
echo $output;
?>
You have to specify the full path including DNS name of the server for your external file. eg: http://www.yoursite.com/test.php.
Not tested. Let us know how it goes.
|
 |
 |
MichaelMcDonald
Posts: 640
|
| Posted: 03/17/2011, 8:07 AM |
|
try going to styles and rebuild them
_________________
Central Coast, NSW, Australia.
|
 |
 |
|