Re: GUI Editor

"marc" <[email protected]> Mon, 8 Mar 2004 13:27:14 +0100
Newsgroups gmane.comp.cms.xaraya.user.german
Organization Xaraya News Server
Message-ID <[email protected]>
Vielleicht ein weiterer Tip hier:

1. der Pfad ist relativ, nicht absolut, und zwar relativ zu html/
2. Ich habe den Editor auf eine Site auf einem Windows Server geladen. Als
ich dann das Gleiche auf Linux versuchte habe ich auch diese Fehlermeldung
bekommen. Der Grund dafuer ist das Linux mit Verzeichnisnamen bez.
Gross/Kleinschreibung heikler ist. Also muss es ueberall HTMLArea und nicht
etwa HTMLarea heissen.

Marc

"AndreasW" <[email protected]> wrote in message
news:[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=ext/javascript">
_editor_url =HTMLarea/";
_editor_lang =en";
</script>
<script type=ext/javascript" src=TMLarea/htmlarea.js"></script>

<div class=ar-mod-head"><span
class=ar-mod-title"><xar:mlstring>Articles
Administration</xar:mlstring></span></div>
<div class=ar-mod-body"><h2><xar:mlstring>Add
Article</xar:mlstring></h2>
    <div style=argin: auto;">
    <xar:if condition=empty($preview)">
        <div style=idth: 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=mpty($pubfilter['plink'])">
            <span style=adding: 0px 3px 0px
3px;">#$pubfilter['ptitle']#</span>
        <xar:else />
            <span style=adding: 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=ost" name=ost" id=ost"
action=xar-modurl-articles-admin-create;"
enctype=ultipart/form-data" #$formhooks['formaction']#>
    <xar:else />
        <form method=ost" name=ost" id=ost"
action=xar-modurl-articles-admin-create;" #$formhooks['formaction']#>
    </xar:if>
        <div style=loat:left;width:100%"> <!--- containing float -
quick fix for JC's css layouts [andyv] --->
            <xar:foreach in=fields" value=field">
                <div style=lear: both; padding-top: 10px;">
                    <span style=loat: left; width: 20%; text-align:
right;">
                        <span class=elp" title=$field['label']#">
                            <label for=$field['id']#">
                                #$field['label']#</label>:
                        </span>
                    </span>
                    <span style=loat: right; width: 78%; text-align:
left;">
                        <xar:articles-field
definition=field['definition']" />
                    </span>
                </div>
            </xar:foreach>
            <xar:if condition=empty($formhooks['formdisplay'])">
                <div style=lear: both; padding-top: 10px;">
                    <span style=loat: left; width: 20%; text-align:
right;">
                        <span class=elp" title=orm Controls as
determined by hook selection.')#">
                            <xar:mlstring>
                                Form Controls
                            </xar:mlstring>
                            :
                        </span>
                    </span>
                    <span style=loat: 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=lear: both; padding-top: 10px;">
                <span style=loat: left; width: 20%; text-align:
right;">
                    <span class=elp" title=xarML('This is the
allowed HTML that this website has configured.')#">
                        <xar:mlstring>
                            Allowed HTML tags
                        </xar:mlstring>
                        :
                    </span>
                </span>
                <span style=loat: right; width: 78%; text-align:
left;">
                    #$allowedhtml#
                </span>
            </div>
            <div style=lear: both; padding-top: 10px;">
                <span style=loat: 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=idden" name=uthid" id=uthid"
value=$authid#" />
                    <input type=idden" name=tid" id=tid"
value=$ptid#" />
                    <input type=ubmit" name=review" id=review"
value=$previewlabel#" />
                    &nbsp;&nbsp;&nbsp;
                    <input type=ubmit" value=$addlabel#" />
                </span>
            </div>

        </div>&nbsp; <!--- end of containing float + some dummy content
to make sure the outer container wraps up [andyv] --->
        </form>
    </xar:if>
</div>
</div>

<script type=ext/javascript" defer=">
var config =ew 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=ext/javascript" defer=">
>      var config =ew HTMLArea.Config(); // create a new
configuration
> object having all the default values
>      config.width =400px';
>      config.height =400px';
>      HTMLArea.replaceAll(config);
>  </script>
> Marc