Главная > Сайтостроение > CMSimple > Форум CMSimple_XH

Форум CMSimple_XH

General • Re: Question regardind MembersArea
Thank you for your advice, I will try that

Statistics: Posted by chantelanuit — Thu Jun 25, 2020 1:11 pm

Опубликовано 25.6.2020 13:11

General • Re: How to create the Menu in CMS template?
Basically it is not against the rules as most of the code is either under GPL v3. If there is any comment in the code files mentioning the author (oft also with usage condition statement), copy this comment and put it into your files. If there is requirement to keep links and comments in your files/template, put it there too. From my tutorials it is the same. You may copy/modify the code. Short mention about the source of your template is appreciated.
Somewhere in the footer a link e.g.: Template by "link to author" mod by "your link" is OK.

Statistics: Posted by Tata — Thu Jun 25, 2020 5:56 am

Опубликовано 25.6.2020 5:56

General • Re: How to create the Menu in CMS template?
Can I just copy a menu from an existing CMSimple_XH template, modify the styling such as color changes and insert/embed the code on my HTML page? That is if it is not against any agreement on the use of a particular template or CMSimple_XH.

Statistics: Posted by Rommel — Thu Jun 25, 2020 12:54 am

Опубликовано 25.6.2020 0:54

General • Re: How to create the Menu in CMS template?
... will Blumentals Easy CSS menu code work as well in CMSimple???
I doubt very much it will. The TOC function is defined explicitly in CMSimple_XH as one of the core functions which communicate with each other. And the core has nothing in common with any other CMS.
At the other hand, when you understand how the fnuction works and how its particular features shall/may be styled, you can built any navigation matching your design and behavioral expectation.

Statistics: Posted by Tata — Wed Jun 24, 2020 10:44 pm

Опубликовано 24.6.2020 22:44

General • Re: How to create the Menu in CMS template?
Tata, thanks for pointing out these tutorials. I will definitely study these materails during my free time. One question though, I am using a free version of Blumentals Easy CSS menu and I do not have control over the code (aside from me being a non-coder myself)... will Blumentals Easy CSS menu code work as well in CMSimple???

By the way here the link to their site https://www.easycssmenu.com/

Statistics: Posted by Rommel — Wed Jun 24, 2020 9:57 pm

Опубликовано 24.6.2020 21:57

General • Re: How to create the Menu in CMS template?

Опубликовано 24.6.2020 19:47

General • How to create the Menu in CMS template?
Hi. I am creating a personalized template and I am successful in showing the page content and the news boxes. I have use the TOC tag to show the side menu as well. My concern then is how can I create the main navigational menu of my site or how can I style the menu generated by the TOC tag to show them as buttons? Can anyone help or point me to a tutorial on how to create a NAV MENU for a CMSimple_XH template???

Many thanks...

Statistics: Posted by Rommel — Wed Jun 24, 2020 5:55 pm

Опубликовано 24.6.2020 17:55

Deutsch • Re: submenu - Problem
Das zeigt mir , wenn ich auf einen Link der Ebene 2 mit Unterlinks klicke und die Seite aufrufe, die Links der 3. Ebene an. Es sollte nur die Links der dem ausgewählten Link entsprechenden Ebene anzeigen. Zumindest weiss ich jetzt, wie ich den Level der ausgewählten Seite ermitteln kann...

Meine momentane Lösung ist <?php echo toc(2, 2);?> <br><?php echo toc(3, 3);?> Das hat allerdings den Nachteil, daß wenn ich einen Link der 2. Ebene ohne Untermenus auswähle, die komplette 2. Ebene im Sidebar erscheint (wie gewünscht). Hat der Link noch Unterlinks der dritten Ebene, erscheinen diese darunter. Gehe ich auf einen Link der dritten Ebene, erscheint auch die 2. Ebene.

P.S. Mit if ($s >= 0) {echo toc($l[$s] , $l[$s] );} geht es aber - vielen Dank !

Statistics: Posted by cmss — Tue Jun 23, 2020 8:20 am

Опубликовано 23.6.2020 8:20

Deutsch • Re: submenu - Problem
Du könntest den Level der aktuell gewählten Seite berücksichtigen, und dann eine Ebene tiefer anzeigen. Etwa:


if ($s >= 0) {echo toc($l[$s] + 1, $l[$s] + 1);}

Statistics: Posted by cmb — Mon Jun 22, 2020 9:04 pm

Опубликовано 22.6.2020 21:04

Deutsch • Re: submenu - Problem
Wie soll denn toc ab der 3. Ebene aussehen ? <?php echo li($hc, 'menulevel');?>
submenu for the subpages of the current page via: <?php echo toc(2, 3);?>

Ja danke - ich werde mal da weiterprobieren.

P.S. : Mit <?php echo toc(3, 3);?> geht es zumindest für menulevel 3 !
Eine Seite von Menulevel 1, die im Sidebar den menulevel 2 darstellt, benutze ich sowieso kaum.

Statistics: Posted by cmss — Mon Jun 22, 2020 7:23 pm

Опубликовано 22.6.2020 19:23

Почтовая форма Карта сайта Главная
FoxPro 2.6, сайтостроение – Запорожская социальная сеть
maxim.zp.ua - Запорожская социальная сеть
bigmir)net TOP 100 Яндекс.Метрика