We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4673
    • 577 Posts
    Location where I found template:
    http://openwebdesign.org/viewdesign.phtml?id=2827

    Whose original work:
    Gerhard, his email can be found on the link above. I’d hate to see him get spammed because of me writting his email here.

    file contents:
    - Orginal tempaltes
    - My modx version

    Who ported this tempalte?
    I did grin

    Warning: This is my second attempt at doing a template for modx and this is my first port. The code my be a bit weird but I’ve tried to stay true to the original template to my best of abilities and hopefully too many late nights haven’t let a few errors slip in.

    How to install:
    Run the 2 sql files through phpmyadmin (or whatever you use)
    ftp the folder "MultiFlex1" to the assests/templates folder
    check to see if TVs are assigned properly

    The sql files contains hopefully ever snippet, chunk and TV and not an extra or 2 that I used.

    Note:
    I included the full tempalte structure for the Multiflex1 template. I started the document count at 200. I probably should have used something like 2000 but lazy me I was thinking of my own set up wink

    The document layout sql file uses tabs to create an orderly view. So if you need to you can go in by hand and add another digit or renumber to your hearts desire.

    Sorry no demo yet. I’ve taken a long enough distraction from my project just to get this cleaned up to release here.

    After this post I’ll be emailing the original creater to let him know that I’ve ported this.

    And one last bit of information.
    Let’s consider this as 1.0 since we all know that 1.0 tends to be a work in progress anyway tongue
      Tangent-Warrior smiley
      • 23109
      • 25 Posts
      Thanks a lot Carsten, this is the most valuable Template of all, because it shows so many flexible Solutions.

      Cheers,
      Peter
        Grafik & Grossformatdruck: www.druck-schmie.de
        Bildergalerie: www.bilder-schmie.de
        • 4673
        • 577 Posts
        Thanks!

        I hope that this installs easily!
          Tangent-Warrior smiley
          • 4673
          • 577 Posts
          8 downloads and no comments sad
            Tangent-Warrior smiley
            • 2762
            • 1,198 Posts
            Great conversion! I love Multiflex template.;)
              Free MODx Graphic resources and Templates www.tattoocms.it
              -----------------------------------------------------

              MODx IT  www.modx.it
              -----------------------------------------------------

              bubuna.com - Web & Multimedia Design
              • 25991
              • 13 Posts
              Hi everybody, I am a newbie and my name is Nathalie from Switzerland grin

              Thanks a lot for this wonderful work, I installed it on my new website, it is now working perfectly.

              I already changed few things and the CSS which is fully customizable.

              As I am still testing the thing I probably come back with some questions later.

              I have maybe two already.

              What should I change to have the sidebar on the right showing?
              What should I change to have the Global navigation menu showing on all pages?

              Thanks for your help grin

              Nathalie
                • 4673
                • 577 Posts
                my bad.
                I just installed this myself earlier.

                You need to set all documents to have templates ... ugh ... I tried to make this an easy install and end up screwing myself. Oh well
                Next you need to set some document IDs in TVs, and chunks.

                heres a new dump of my TVs.

                INSERT INTO `modx_site_tmplvars` VALUES (4, 'number', 'lang', 'language', 'gets the language cookie value', 0, 0, 0, '', 0, '', '', '@EVAL\r\nif($modx->documentObject[\'parent\'] == 0) {\r\n$lang=$modx->documentIdentifier;\r\n} elseif(isset($_COOKIE[\'Language\'])){\r\n$lang=$_COOKIE[\'Language\'];}\r\nelse {$lang=$modx->config[\'site_start\'];}\r\nreturn $lang;');
                INSERT INTO `modx_site_tmplvars` VALUES (5, 'number', 'langID', 'langID', '', 0, 0, 0, '', 0, '', '', '@EVAL\r\n$langID=$modx->documentIdentifier;\r\nreturn $langID;\r\n');
                INSERT INTO `modx_site_tmplvars` VALUES (6, 'text', 'cookieID', 'cookieID', '', 0, 0, 0, '', 0, '', '', '@EVAL\r\n$cookieID = $_COOKIE[\'Language\'];\r\nreturn $cookieID;\r\n');
                INSERT INTO `modx_site_tmplvars` VALUES (7, 'text', 'mfRightBarSelector', 'mfRightBarSelector', 'selects the content for the right bar using ID', 0, 0, 0, '', 0, '', '', '@EVAL\r\nIf ( ($modx->documentIdentifier) == 231 ) {\r\n$RightBarSelector = \'@CHUNK mfBasicOptionsSideBar\';\r\n} elseIf ( ($modx->documentIdentifier) == 201 ) {\r\n$RightBarSelector = \'@CHUNK mfContentsSideBar\';\r\n} elseIf ( ($modx->documentIdentifier) == 244 ) {\r\n$RightBarSelector = \'@CHUNK mfExtraOptionsSideBar\';\r\n} elseIf ( ($modx->documentIdentifier) == 205 ) {\r\n$RightBarSelector = \'@CHUNK mfContentsSideBar\';\r\n} else {}\r\n\r\nreturn $RightBarSelector;');
                INSERT INTO `modx_site_tmplvars` VALUES (8, 'text', 'mfLeftBarSelector', 'mfLeftBarSelector', 'selects the content for the left bar using ID', 0, 0, 0, '', 0, '', '', '@EVAL\r\n$parentget = $modx->getParent();\r\n$parentget = $parentget[\'id\'];\r\n$pagelang = $_COOKIE[\'Language\'];\r\n$menupagelimit = $_COOKIE[\'MenuPage\'];\r\n\r\n//return $parentget;\r\n\r\nIf ( ( ($modx->documentIdentifier) == 205 ) || ( ($modx->documentIdentifier) == 200 ) ) {\r\n	$LeftBarSelector = \'@CHUNK mfContentsImageBar\';\r\n} else {\r\n	if ( $pagelang == $parentget ) {\r\n//		$LimitLevel = \'1\';\r\n		$LimitLevel = \'0\';\r\n		$parentget = $modx->documentObject[\'id\'];\r\n	} else {\r\n		$LimitLevel = \'0\';\r\n	}\r\n\r\n$LeftBarSelector = \'<li class="title">[*#menutitle*]</li>\';\r\n$LeftBarSelector .= \'[[DropMenuPlus? &menuName=LeftbarMenu &startDoc=\' \r\n. $parentget \r\n. \' &levelLimit=\'\r\n. $LimitLevel \r\n. \' &topnavClass=nav-sub &selfAsLink=true]]\';\r\n}\r\n\r\nreturn $LeftBarSelector;\r\n');
                INSERT INTO `modx_site_tmplvars` VALUES (9, 'text', 'mfMainMenu', 'mfMainMenu', 'main menu for navigation', 0, 0, 0, '', 0, '', '', '@EVAL\r\n$menuparent = $_COOKIE[\'Language\'];\r\n$LimitLevel = \'1\';\r\n\r\n$mfMainMenu = \'<div id="nav-main">\';\r\n$mfMainMenu .= \'[[DropMenuPlus? &menuName=mainMenu &startDoc=\' \r\n. $menuparent \r\n. \' &levelLimit=\'\r\n. $LimitLevel \r\n. \' &topnavClass=nav-main &selfAsLink=true]]\';\r\n$mfMainMenu .= \'</div>\';\r\n\r\nreturn $mfMainMenu;\r\n');
                INSERT INTO `modx_site_tmplvars` VALUES (10, 'text', 'mfLanguageHeader', 'mfLanguageHeader', 'selects the content for the top language bar', 0, 0, 0, '', 0, '', '', '@EVAL\r\nif($modx->documentObject[\'parent\'] == 0) {\r\n	$lang=$modx->documentIdentifier;\r\n} elseif (isset($_COOKIE[\'Language\'])) {\r\n	$lang=$_COOKIE[\'Language\'];\r\n} else {\r\n	$lang=$modx->config[\'site_start\'];\r\n}\r\n\r\nIf ( $lang == 1 ) {\r\n$LanguageMenuSelector = \'@CHUNK mfHeader_Japanese\';\r\n} elseIf ( $lang == 200 ) {\r\n$LanguageMenuSelector = \'@CHUNK mfHeader_English\';\r\n} elseIf ( $lang == 3 ) {\r\n$LanguageMenuSelector = \'@CHUNK mfHeader_Russian\';\r\n} else {}\r\n\r\nreturn $LanguageMenuSelector;\r\n');
                


                for chunks

                INSERT INTO `modx_site_htmlsnippets` VALUES (7, 'mfExtraOptionsSideBar', 'SideBar for the Extra Options Page', 0, 0, 0, '<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-noshading line-red10">Title with red line</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading">Lorem ipsum</div>\r\n<p class="txt-grey05">Text with "txt-grey05".</p>\r\n<p class="txt-yellow10">Text with "txt-yellow10".</p>\r\n<p class="txt-green07">Text with "txt-green07".</p>\r\n<p class="txt-red10">Text with "txt-red10".</p>\r\n<p class="txt-blue04">Text with "txt-blue04".</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading txt-red08">Title text in red</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading bg-red03">Title shade in red</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border bg-yellow05">\r\n	<div class="sidebarbox-title-shading">Yellow box</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading align-center">Title centered</div>\r\n<p class="align-center">Text centered.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading align-right">Title right</div>\r\n<p class="align-right">Text right.</p>\r\n</div>', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (8, 'mfFooter', 'footer for every page', 0, 0, 0, '<div class="footer footer-font">\r\n<p>\r\n[(site_name)] is powered by\r\n<a href="http://modxcms.com/" title="Powered by MODx"><strong>MOD</strong>x Content Management System</a>\r\n<br />\r\n<a href="[~11~]" title="Link to our Blog RSS Feeds">Blog Entries (RSS)</a><br />\r\nMySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved from [^s^].\r\n</p>\r\n<p><b>Copyright © 2006 Your Company | All Rights Reserved</b></p>\r\n<p>Design <a href="mailto:[email protected]">G. Wolfgang</a> | <a href="http://validator.w3.org/check?uri=referer" title="Validate code as W3C XHTML 1.1 Strict Compliant">W3C XHTML 1.0</a> | <a href="http://jigsaw.w3.org/css-validator/" title="Validate Style Sheet as W3C CSS 2.0 Compliant">W3C CSS 2.0</a></p>\r\n</div>', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (9, 'mfBasicOptionsSideBar', 'SideBar for the Basic Options SideBar Page', 0, 0, 0, '<!-- Text container -->\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading">Box with border</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<!-- Text container -->\r\n<div class="sidebarbox-noborder">\r\n	<div class="sidebarbox-title-shading">Box without border</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<!-- Text container -->\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-shading">Title with shading</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n</div>\r\n\r\n<!-- Text container -->\r\n<div class="sidebarbox-border">\r\n	<div class="sidebarbox-title-noshading">Title without shading</div>\r\n<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>\r\n	</div>\r\n</div>', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (10, 'mfContentsSideBar', 'SideBar for the Contents Page', 0, 0, 0, '<!-- Text container -->\r\n<div class="sidebarbox-border bg-yellow03">\r\n	<div class="sidebarbox-title-shading bg-yellow07">News and Links</div>\r\n<p>Use this column for news, events, links, ad banners, or other things.</p>\r\n<p><img src="assets/templates/MultiFlex1/img/arrow1.gif" width="4" height="8" alt="" /> <a href="#">Link A</a></p>\r\n<p><img src="assets/templates/MultiFlex1/img/arrow1.gif" width="4" height="8" alt="" /> <a href="#">Link B</a></p>\r\n</div>\r\n\r\n<div class="sidebarbox-border bg-blue02">\r\n	<div class="sidebarbox-title-shading bg-blue05">Check options!</div>\r\n<p>This page shows only the basics of <b>MultiFlex-1</b>. For more features, just check <a href="options_basic.html">Basic Options</a> and <a href="options_extra.html">Extra Options</a>.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border bg-green02">\r\n	<div class="sidebarbox-title-shading bg-green05">It\'s free!</div>\r\n<p>Enjoy the template at no cost. You do <b>not</b> have to keep author informations in the footer, but can remove if them if you so wish.</p>\r\n</div>\r\n\r\n<div class="sidebarbox-border bg-red02">\r\n	<div class="sidebarbox-title-shading bg-red05">Questions?</div>\r\n<p>My name is Gerhard. Feel free to check my <a href="http://www.sda.org">favorite website</a>. If you have any questions, feel free to mail me at <a href="mailto:[email protected]">[email protected]</a>.</p>\r\n</div>\r\n', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (11, 'mfHeader_English', 'multiflex English Header', 0, 0, 0, '<li><a href="index.php?id=800">About Us</a></li>\r\n<li><a href="index.php?id=801">Contact</a></li>\r\n<li><a href="index.php?id=802">Impressum</a></li>\r\n<li><a href="index.php?id=1"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_japanese.gif" title="Website in Japanese" alt="" /></a></li>\r\n<li><a href="index.php?id=200"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_uk.gif" title="Website in English" alt="" /></a></li>\r\n<li><a href="index.php?id=3"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_russian.gif" title ="Website en Francais" alt="" /></a></li>', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (12, 'mfContentsImageBar', 'ImageBar for the Contents Page', 0, 0, 0, '<!-- FRONT PAGE SIDEBANNER -->\r\n<div class="sidebanner-frontpage">\r\n	<img class="img-sidebanner" src="assets/templates/MultiFlex1/img/sidebanner.jpg" alt=""/>\r\n</div>', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (13, 'mfContentMenu', 'mfContentMenu', 0, 0, 0, '<li class="title">NAVIGATION TITLE >> [*mfLimitLevel*]</li>\r\n[[DropMenuPlus? &menuName=`LeftMenu` &startDoc=`[*langID*]` &levelLimit=`0` &topnavClass=`nav-sub` &selfAsLink=`true`]]\r\n', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (14, 'mfHeader_Japanese', 'multiflex Japanese Header', 0, 0, 0, '<li><a href="#">About Us</a></li>\r\n<li><a href="#">Contact</a></li>\r\n<li><a href="#">Impressum</a></li>\r\n<li><a href="index.php?id=1"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_japanese.gif" title="Website in Japanese" alt="" /></a></li>\r\n<li><a href="index.php?id=2"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_uk.gif" title="Website in English" alt="" /></a></li>\r\n<li><a href="index.php?id=3"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_russian.gif" title ="Website en Francais" alt="" /></a></li>\r\n', 0);
                INSERT INTO `modx_site_htmlsnippets` VALUES (15, 'mfHeader_Russian', 'multiflex Russian Header', 0, 0, 0, '<li><a href="#">About Us</a></li>\r\n<li><a href="#">Contact</a></li>\r\n<li><a href="#">Impressum</a></li>\r\n<li><a href="index.php?id=1"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_japanese.gif" title="Website in Japanese" alt="" /></a></li>\r\n<li><a href="index.php?id=2"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_uk.gif" title="Website in English" alt="" /></a></li>\r\n<li><a href="index.php?id=3"><img class="img-flag" src="assets/templates/MultiFlex1/img/flag_russian.gif" title ="Website en Francais" alt="" /></a></li>\r\n', 0);
                


                This should work a little better now.

                Sorry folks!
                  Tangent-Warrior smiley
                  • 25991
                  • 13 Posts
                  Thanks Carsten,

                  Everything works fine now.

                  TV mfLeftBarSelector + mfRightBarSelector had to be corrected and mfLanguageHeader.

                  All the best. laugh

                  Nathalie
                    • 22533
                    • 41 Posts
                    Hello everybody,

                    First of all, thank you for this superb template! grin

                    I’m new to Modx (since tonight! laugh) and I installed Carsten template right after installing Modx...

                    I executed the sql lines provided in the .zip, I replaced the wrong ones with the ones you give just here, I uploaded the files to my FTP... Everything seemed to work fine...


                    But! I found out that I had to go to the "Template Variables" section in the manager in order to allow each of them to be used by the 3 models of the Multiflex1 template... tongue
                    Was it normal? If I hadn’t done it, the menus wouldn’t appear!

                    So, no big deal, but then I opened my first page, which looked really great with Firefox and Opera, with Internet Explorer (v6) and there : a big disappointment since the list items of the left menu are really big, and the result is really bad on screen sad

                    I know that IE isn’t the best navigator for interpreting XHTML and CSS, but a lot of Internet users have it...
                    That’s why I’m asking :

                    Do you have the same problem? Did you find a way to resolve it... If you want, I can put a screenshot to let you see...


                    Another point : I remarqued the little flags on top of the screen, and I saw the TV "language" and "langID"...
                    Does that mean that this template allows me to write my site in 3 different languages. That would be really great, because as far as I know, I didn’t know that Modx current version handled this...
                    However, it would be really great If you gave an example on how to use this, because I’m a bit lost! wink


                    Sorry for the big post, and thanks in advance!
                      • 4673
                      • 577 Posts
                      Sorry that I can’t help with the CSS. I’m not even good at it ... sad

                      Yes, the template was set up with the top menu to be multi-lingual using Susan’s cookie method. I am currently working on a way to make the document lanugage based without the use of a cookie but rather with an insert into the db along with the other document information. I do believe that I posted my solution here somewhere ... huh? ... hehe, search might work!

                      You can use as many languages as you want with the cookie method.
                      You just need to change the chunk for the header menu and insert the corresponding number to your language category.

                      Yes, you have to set each TV to work with each template. That is one problem with my sql methog. I was worried about IDs clashing between numbers that I have choosen and those that are already in use in the db. bummer but that is life at the moment.

                        Tangent-Warrior smiley