Seite 1 von 2
Ändern eines Artikels und Abspeichern nicht mehr möglich
Verfasst: Do 14. Jun 2007, 18:22
von tomwin2000
Hi,
ich habe seit einigen Tagen bei meiner Contenido Version 4.6.15 das Problem, dass ich bei dem Versuch einen Artikel zu ändern zwar auf den Bereich komme, in dem ich auf die Buttons Überschrift ändern/HTML Modus/Save klicken kann allerdings passiert beim Anklicken nichts.
Im Internet Explorer bekomme ich die Fehlermeldung, dass in Zeile1 Spalte1 ein Fehler sei.
Die Errorlog von Contenido ist leer - das Problem besteht auch im Firefox etc.
Hatte einer von euch schonmal so ein Problem?
Vielen Dank für eure Mithilfe im Voraus,
Tom
Verfasst: Fr 15. Jun 2007, 08:00
von Dodger77
Passiert das im Firefox auch? Wenn ja, steht dazu etwas in der Fehler-Konsole (im Menü "Extras")?
Verfasst: Fr 15. Jun 2007, 15:01
von tomwin2000
Die Fehlerkonsole von Firefox sagt:
Fehler: setcontent is not defined
Quelldatei: javascript:setcontent('183','front_content.php?action=10&idcat=92&idart=168&idartlang=183&type=CMS_HTML&typenr=1&contenido=3160d46f0ddc25e870811a3045121b10');
Zeile: 1
Das kommt ja auch mit dem IE überein - der findet ja auch in Zeile1 einen Fehler - aber in welcher Datei...
Verfasst: Sa 16. Jun 2007, 06:46
von emergence
damit das insiteediting funktioniert muss </head> und </body> vorhanden sein...
wird ziemlich sicher unter style - layout fehlen...
Verfasst: Sa 16. Jun 2007, 20:50
von tomwin2000
Die sind alle geschlossen vorhanden. Dort habe ich auch schon ein Alternativ Layout eingefügt half auch nichts...
Verfasst: Di 19. Jun 2007, 13:29
von emergence
ähm im quellcode der editor seite
-> befindet sich da eine javascript funktion setcontent ?
oder noch besser poste einfach mal den teil bis <body....>
Verfasst: Di 19. Jun 2007, 14:36
von pixmac
Habe das gleiche Problem, nur dass es bei mir nur bei Healines auftritt?!
Verfasst: Di 19. Jun 2007, 15:01
von emergence
pixmac hat geschrieben:Habe das gleiche Problem, nur dass es bei mir nur bei Healines auftritt?!
ach, gottchen! hat er auch den selben fehler ?
könnte er die fragen, die da in den raum gestellt wurden, vielleicht auch beantworten... ? ginge das ?
nehme nicht an, dass er dies schon überprüft hätte... oder doch ?
Verfasst: Di 19. Jun 2007, 15:10
von pixmac
ja kann er!!!
</head> und </body> sind vorhanden und wie gesagt, bei text geht's ja also muss die funktion ja auch da sein???!
Der Code bis zum body
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="http://localhost/CONTENIDO_MUM/cms/">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Master of Science in Urban Management</title>
<!--<style type="text/css" media="screen">@import "./css/mum_styles.css";</style>//-->
<link rel="stylesheet" href="./css/mum_styles.css" type="text/css" media="screen" />
<link rel="stylesheet" href="./css/sIFR-screen.css" type="text/css" media="screen" />
<link rel="stylesheet" href="./css/sIFR-print.css" type="text/css" media="print" />
<script src="./js/sifr.js" type="text/javascript"></script>
<script src="./js/sifr-addons.js" type="text/javascript"></script>
<script src="./js/mum_functions.js" type="text/javascript"></script>
<script type="text/javascript">
try {
/* Check if we are in a dual-frame or a quad-frame */
if ( parent.parent.frames[0].name == "header")
{
if ( parent.frames["right_top"].document.getElementById("c_3") ) {
menuItem = parent.frames["right_top"].document.getElementById("c_3");
parent.frames["right_top"].sub.click(menuItem);
}
} else {
/* Check if submenuItem is existing
and mark it */
if ( parent.parent.frames["right"].frames["right_top"].document.getElementById("c_3") ) {
menuItem = parent.parent.frames["right"].frames["right_top"].document.getElementById("c_3");
parent.parent.frames["right"].frames["right_top"].sub.click(menuItem);
}
}
} catch (e)
{}
</script>
<script language="javascript">
// searches the classname in the td above or the tr above
function getCellClass(element) {
var el = document.getElementById(element);
var cell = el.offsetParent;
// if there is a classname in the td return the classname
if ( cell.className != '' ) {
return cell.className;
}
// set a flag in this td
if ( cell.id == '' ) {
cell.id = 'yes';
var flg = 'yes'
} else {
var flg = cell.id;
}
//else go to the tagname table above and search dowen for the tr tags
while (el.tagName != 'TABLE') {
el = el.offsetParent;
}
var elements = el.getElementsByTagName('TR');
//go thrue all tr tags
for (var row in elements) {
if (isNaN(elements[row])) {
var cells = elements[row].getElementsByTagName('TD');
for (var id in cells) {
if (isNaN(cells[id])){
// check if the flg(td cell) is in this tr if true return the calssname
if (cells[id].id==flg&&elements[row].className != '') {
return elements[row].className;
}
}
}
}
}
return false;
}
function setcontent(idartlang, act) {
if (document.all) {
document.getElementsByTagName = function (str) {
if (str=="*")
return document.all;
else
return document.all.tags(str);
}
}
var a = document.getElementsByTagName("*");
var str = '';
var aId = '';
// loop through all elements
for (var i=0; i < a.length; i++) {
aId = a[i].id;
if (aId != '' && typeof aId == 'string') {
var aIdPrefix = aId.substr(0,4);
// search for the id which containes HTML
if (aIdPrefix == 'HTML') {
// check if its an 'contentEditable' Field
if (a[i].isContentEditable == true) {
// split the idname in data
var data = aId.split("_");
// data[0] is the fieldname * needed
// data[1] is the idtype
// data[2] is the typeid * needed
// read out the content
var aContent = prepareString(a[i].innerHTML);
// build the string which will be send
str += buildDataEntry(idartlang , data[0] , data[2] , aContent);
}
}
}
}
// set the string
document.forms.editcontent.data.value = str + document.forms.editcontent.data.value;
// set the action string
if ( act != 0 ) {
document.forms.editcontent.action = act;
}
// if there are 3 arguments, the className has to be seached
if (arguments.length > 2){
//search the class of the above element
var classname = getCellClass(arguments[2]);
if ( classname ) {
document.forms.editcontent.con_class.value = classname;
}
}
// submit the form
document.forms.editcontent.submit();
}
function prepareString(aContent) {
if ( aContent == " " || aContent == "" ) {
aContent = "%$%EMPTY%$%";
} else {
// if there is an | in the text set a replacement chr because we use it later as isolator
while( aContent.search(/\|/) != -1 ) {
aContent = aContent.replace(/\|/,"%$%SEPERATOR%$%");
}
}
return aContent;
}
function buildDataEntry(idartlang, type, typeid, value) {
return idartlang +'|'+ type +'|'+ typeid +'|'+ value +'||';
}
function addDataEntry(idartlang, type, typeid, value) {
document.forms.editcontent.data.value = (buildDataEntry(idartlang, type, typeid, prepareString(value) ) );
setcontent(idartlang,'0');
}
</script>
<script src="http://localhost/CONTENIDO_MUM/contenido/external/mozile/mozileLoader.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
Da ist die funktion auch da.
Verfasst: Di 19. Jun 2007, 15:13
von Dodger77
Nimm mal die sIFR-Sachen raus aus dem Layout:
Code: Alles auswählen
<script src="./js/sifr.js" type="text/javascript"></script>
<script src="./js/sifr-addons.js" type="text/javascript"></script>
und schau, ob es dann funktioniert.
Verfasst: Fr 22. Jun 2007, 18:33
von tomwin2000
Bei mir kann ich keinen Fehler finden! Problem besteht allerdings weiterhin.
Verfasst: Sa 23. Jun 2007, 08:08
von emergence
@tomwin2000
nimm das raus
Verfasst: So 24. Jun 2007, 22:26
von tomwin2000
Hi emergence! Danke für den Tipp - hat geklappt!!! Was trinkst du?

Verfasst: Mo 25. Jun 2007, 10:05
von emergence
das ist eine intime frage
also momentan
san benedetto acqua minerale naturale
Verfasst: Mo 25. Jun 2007, 10:07
von pixmac
sorry, hat ein bisschen gedauert, war mit anderen dingen beschäftigt
habe nun das
Code: Alles auswählen
<script src="./js/sifr.js" type="text/javascript"></script>
<script src="./js/sifr-addons.js" type="text/javascript"></script>
rausgenommen, bringt aber nix.
Wo kommt eigentlich das
her?? und wo muss ich das eliminieren?