Redigering af menu
Moderator: ZiPs
Redigering af menu
Hidtil har jeg kunnet redigere min sides menu i HTML, men nu ved jeg ikke hvordan, jeg skal få adgang til den? Jeg har oprettet en ny side, hjorteparken.dk, og kopieret indholdet fra hjortefarmen.net
mvh
Jan C.
mvh
Jan C.
Re: Redigering af menu
Der er sket en større ændring i CMSimple_XH 1.7. Fra changelog:
Den enkle løsning er at bruge Pagemanager ("Pages" eller "Sider").The classic CMSimple page splitting has been reworked. Formerly, pages have been split at certain HTML heading elements (<h1>-<h3> by default). Now the pages are split at certain HTML comments instead. That allows to insert arbitrary heading elements on every page, what allows to have a clean heading structure. Also you can now use up to 9 menu levels (at least in theory; the page URLs are likely to become too large with so many menu levels). Furthermore, in normal mode it is not possible to change the names of the pages anymore from the editor; a pagemanager has to be used instead. Advanced users may enable the advanced mode, in which case the HTML split comment is editable in the editor's source code view. Note that the page name is now basically unrelated to the first heading of the page, what makes the alternative heading ("page" tab) unnecessary, so it has been removed.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Redigering af menu
Jeg HAR prøvet at redigere side navnene med Page Manager, men det afspejler sig ikke i en ændret menu!
Re: Redigering af menu
FT4 wrote:Jeg HAR prøvet at redigere side navnene med Page Manager, men det afspejler sig ikke i en ændret menu!
cmb wrote:Der er sket en større ændring i CMSimple_XH 1.7. Fra changelog:
changelog (2.) wrote:Note that the page name is now basically unrelated to the first heading of the page, what makes the alternative heading ("page" tab) unnecessary, so it has been removed.
You can activate Advanced-Mode in ./cmsimple/config.phpFT4 wrote:Hidtil har jeg kunnet redigere min sides menu i HTML, men nu ved jeg ikke hvordan, jeg skal få adgang til den? Jeg har oprettet en ny side, hjorteparken.dk, og kopieret indholdet fra hjortefarmen.net
Code: Select all
$cf['mode']['advanced']="";
Code: Select all
$cf['mode']['advanced']="true";
Code: Select all
<!--XH_ml1:Start-->
<h1>Start</h1>
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: Redigering af menu
Thanks for the replies. I used Exchange_XH.
Using the Page Manager to change the page title, I get an error 500, Internal Server Error, when I try to save. I uploaded a debug file (_XHdebug.txt). Should I remove that file before editing?
Using the Page Manager to change the page title, I get an error 500, Internal Server Error, when I try to save. I uploaded a debug file (_XHdebug.txt). Should I remove that file before editing?
Re: Redigering af menu
I forgot to ask how to edit in HTML, now the mode is set to advanced.
Re: Redigering af menu
Removing _XHdebug.txt is not necessary to work with Pagemanager. I wonder, though, why you get a 500 Internal Server Error. Is there a more detailed error message? Have you consulted Pagemanager's system check (Plugins → Pagemanager)? Is everything reported as OK?FT4 wrote:Using the Page Manager to change the page title, I get an error 500, Internal Server Error, when I try to save. I uploaded a debug file (_XHdebug.txt). Should I remove that file before editing?
You have to switch the editor to HTML mode (button "kildecode"). There you can see the page heading as part of a HTML comment, like so:FT4 wrote:I forgot to ask how to edit in HTML, now the mode is set to advanced.
Code: Select all
<!--XH_ml1:Galleri-->
Code: Select all
<h1>Galleri</h1>
Christoph M. Becker – Plugins for CMSimple_XH
Re: Redigering af menu
Thanks for the comments. I have now found out how to see and edit the HTML source code and I have been working all pages over. I found a couple of errors, but I don't get a clear answer to why I get an error message 500. Pagemanager reports of "Irregular page structure found". I get the possibility to press a button "Proceed". But when I do so and want to save, the error 500 etc. appears. I can't see why
BR
Jan
BR
Jan
Re: Redigering af menu
When I look at the source text, I see that there is something wrong. Whether it is related to the 500 error, I do not know.
- at the beginning and end of the template.htm seem to be blank lines
- the Docctype is not current, should be: <! DOCTYPE HTML>
- <head> is included twice, thus also jQuery
- jQuery is not set to the latest migrate and core versions
I would also times the browser cache completely delete and the page several times reload.
- at the beginning and end of the template.htm seem to be blank lines
- the Docctype is not current, should be: <! DOCTYPE HTML>
- <head> is included twice, thus also jQuery
- jQuery is not set to the latest migrate and core versions
I would also times the browser cache completely delete and the page several times reload.
What does the Debug-Mode and the browser-console (e.g. F12 in Chrome) report? Are there any error messages when the 500 error occurs?cmb wrote:Is there a more detailed error message? Have you consulted Pagemanager's system check (Plugins → Pagemanager)? Is everything reported as OK?
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: Redigering af menu
That usually means that there's a gap somewhere, for instance, a 3rd level page directly after a toplevel page (without a 2nd level page).FT4 wrote:Pagemanager reports of "Irregular page structure found".
The browser console will usually not clarify any server side erros, and the debug mode is quite useless in this case, because saving from Pagemanager is done via XHR (aka. Ajax). It might be possible to get some helpful error message, though, by purging _XHdebug.txt (so that it is empty). (See also https://github.com/cmsimple-xh/cmsimple-xh/issues/293.)lck wrote:What does the Debug-Mode and the browser-console (e.g. F12 in Chrome) report?
Christoph M. Becker – Plugins for CMSimple_XH