Re: GUI Editor
[email protected] (AndreasW) Sat, 6 Mar 2004 10:37:36 +0000 (UTC)
| Newsgroups | gmane.comp.cms.xaraya.user.german |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
Hallo Marc,
nochmals Danke für deine Hilfe.
Leider gibt es wieder den gleichen Fehler das HTMLarea nicht definiert
ist.
Kann es sein das da meine PHP Config stört? ( Save Mode On )
Was mich dann aber nur wundert das die Demowebseite auf dem Server
funktioniert.
Absolute Pfade funktionieren auch nicht ( Bsp.
http:\\test.test\HTMLarea\ )
Hier mal die komplette Admin-New.xd Datei aus dem Artikel\Templates
Ordner:
<script type="text/javascript">
_editor_url = "HTMLarea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="HTMLarea/htmlarea.js"></script>
<div class="xar-mod-head"><span
class="xar-mod-title"><xar:mlstring>Articles
Administration</xar:mlstring></span></div>
<div class="xar-mod-body"><h2><xar:mlstring>Add
Article</xar:mlstring></h2>
<div style="margin: auto;">
<xar:if condition="!empty($preview)">
<div style="width: 100%;padding: 3px;">
#$preview#
</div>
<br />
</xar:if>
<h3><xar:mlstring>Publication Type</xar:mlstring>:</h3>
<p>
<xar:foreach in="$pubfilters" value="$pubfilter">
<xar:if condition="empty($pubfilter['plink'])">
<span style="padding: 0px 3px 0px
3px;">#$pubfilter['ptitle']#</span>
<xar:else />
<span style="padding: 0px 3px 0px 3px;"><a
href="#$pubfilter['plink']#">#$pubfilter['ptitle']#</a></span>
</xar:if>
</xar:foreach></p>
<xar:if condition="!empty($ptid)">
<!--
// Start form - note the use of xarModURL() to create the
recipient URL of
// this form. All URLs should be generated through xarModURL()
to ensure
// compatibility with future versions of Xaraya
-->
<xar:if condition="!empty($withupload)">
<form method="post" name="post" id="post"
action="&xar-modurl-articles-admin-create;"
enctype="multipart/form-data" #$formhooks['formaction']#>
<xar:else />
<form method="post" name="post" id="post"
action="&xar-modurl-articles-admin-create;" #$formhooks['formaction']#>
</xar:if>
<div style="float:left;width:100%"> <!--- containing float -
quick fix for JC's css layouts [andyv] --->
<xar:foreach in="$fields" value="$field">
<div style="clear: both; padding-top: 10px;">
<span style="float: left; width: 20%; text-align:
right;">
<span class="help" title="#$field['label']#">
<label for="#$field['id']#">
#$field['label']#</label>:
</span>
</span>
<span style="float: right; width: 78%; text-align:
left;">
<xar:articles-field
definition="$field['definition']" />
</span>
</div>
</xar:foreach>
<xar:if condition="!empty($formhooks['formdisplay'])">
<div style="clear: both; padding-top: 10px;">
<span style="float: left; width: 20%; text-align:
right;">
<span class="help" title="Form Controls as
determined by hook selection.')#">
<xar:mlstring>
Form Controls
</xar:mlstring>
:
</span>
</span>
<span style="float: right; width: 78%; text-align:
left;">
#$formhooks['formdisplay']#
</span>
</div>
</xar:if>
<!-- put the hooks in, each hook should be a block level
element thus keeping the form valid -->
<xar:if condition="!empty($hooks)">
<xar:foreach in="$hooks" key="$hookmodule">
#$hooks[$hookmodule]#
</xar:foreach>
</xar:if>
<div style="clear: both; padding-top: 10px;">
<span style="float: left; width: 20%; text-align:
right;">
<span class="help" title="#xarML('This is the
allowed HTML that this website has configured.')#">
<xar:mlstring>
Allowed HTML tags
</xar:mlstring>
:
</span>
</span>
<span style="float: right; width: 78%; text-align:
left;">
#$allowedhtml#
</span>
</div>
<div style="clear: both; padding-top: 10px;">
<span style="float: left; width: 30%; text-align:
right;">
<!--
// Add an authorisation ID - this adds a hidden field in
the form that
// contains an authorisation ID. The authorisation ID
is very important in
// preventing certain attacks on the website
-->
<!-- These need to be in elements for xhtml -->
<input type="hidden" name="authid" id="authid"
value="#$authid#" />
<input type="hidden" name="ptid" id="ptid"
value="#$ptid#" />
<input type="submit" name="preview" id="preview"
value="#$previewlabel#" />
<input type="submit" value="#$addlabel#" />
</span>
</div>
</div> <!--- end of containing float + some dummy content
to make sure the outer container wraps up [andyv] --->
</form>
</xar:if>
</div>
</div>
<script type="text/javascript" defer="1">
var config = new HTMLArea.Config(); // create a new configuration object
having all the default values
config.width = '400px';
config.height = '400px';
HTMLArea.replaceAll(config);
</script>
GrüÃe
Andreas
> Tut mir leid. Am Ende muss es heissen:
> <script type="text/javascript" defer="1">
> var config = new HTMLArea.Config(); // create a new
configuration
> object having all the default values
> config.width = '400px';
> config.height = '400px';
> HTMLArea.replaceAll(config);
> </script>
> Marc