Author |
Topic |
|
2hats
Practical
36 Posts |
Posted - 14 Apr 2008 : 07:41:15
|
Hi, I would like to be able to enter a style name (in Text1 properties) such as <?=$cssClass['Text1']?> However, when it gets exported, it becomes <?=$cssclass'text1'?>
(all lower case and [ stripped out). Is it possible to recognise the php print <?= and not alter the class name?
A dynamic value such as <?=$value['Text1']?> is not changed during export.
Regards
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 14 Apr 2008 : 10:04:12
|
You are right, fixed in version 4.2 that will be released very soon. Many thanks, if you have other tips like this let me know. |
Regards, Davide |
|
|
2hats
Practical
36 Posts |
Posted - 15 Apr 2008 : 06:46:27
|
Thanks Davide.
Similarly for other form elements....option, radio, button etc if possible.
Thanks again. |
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 15 Apr 2008 : 12:09:29
|
Obviously ;-) |
Regards, Davide |
|
|
2hats
Practical
36 Posts |
Posted - 16 Apr 2008 : 06:47:23
|
Hi Davide,
Also in the option custom code, maybe a tab 'between tags' to allow dynamic <option>..</option> generation, such as <option value = "">Select Quantity Required </option>
<?php For ($i=0; $i < count($orderOption); $i++) { $order=$orderOption[$i]; ?>
<option value = "<?php print $order ?>"<?php print selectOption($customer["order"],$order)?>><?php print $order ?></option>
<?php } ?>
It can be fudged by using 'into Tag' and adding a > at the start of the php code, and leaving the last > off the php code.
Regards |
|
|
richinri
Expert
78 Posts |
Posted - 16 Apr 2008 : 09:13:15
|
Just a thought - I have been told more than once to NEVER use any PHP abbreviated syntax on the net. It won't validate and causes problems with various servers depending on their PHP setup. |
Richard |
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 16 Apr 2008 : 10:08:17
|
I don't know, where can I find a good PHP guide? I'm able to create samples only in ASP language :-( |
Regards, Davide |
|
|
2hats
Practical
36 Posts |
Posted - 17 Apr 2008 : 05:04:37
|
Richard,
It's about having php (identified by <?= or <? print) not being modified by the export process. The web designer can use any php they like, good or bad, or asp, their choice. Also 'between tags' would allow any code (asp, php, or comments?) between <select> </select> tags.
|
|
|
2hats
Practical
36 Posts |
Posted - 17 Apr 2008 : 05:24:39
|
Davide, In the table object, code such as <?=$customer['order']?> gets converted on export to <?=$customer['order']?>
Can this be fixed? |
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 17 Apr 2008 : 10:16:15
|
<? and <% in a label and table object are always escaped; I'll try to maintain them as they can be useful ;-) |
Regards, Davide |
|
|
2hats
Practical
36 Posts |
Posted - 17 Apr 2008 : 10:18:32
|
sorry, above post shows < and > as ampersand lt; ampersand gt; after table export |
|
|
2hats
Practical
36 Posts |
Posted - 18 Apr 2008 : 09:54:23
|
Davide, The table object looks quite good, but how do I get '<?' to show in cell, rather than '& lt;?'
To be useful, the cells need to be filled dynamically.
Regards |
|
|
s.dav
Site Admin
Italy
3364 Posts |
Posted - 18 Apr 2008 : 17:31:43
|
See 3 replies before this. |
Regards, Davide |
|
|
2hats
Practical
36 Posts |
Posted - 29 Apr 2008 : 00:42:16
|
Davide Can you please explain further.
I have tried various combinations of / and \ to no effect. This is my understanding of escaping.
Also, the same problem occurs with the label object.
Is it possible to display <?=$productData[0]['pmProduct']?> in the label object, as I would like to format the result. It could be done in html object, but not so visual.
Thanks |
|
|
|
Topic |
|