We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19164
    • 1,215 Posts
    About mm_hideTemplate, as i says early "I found, that when mm_HideTemplate() used, some template rows are doubled in Opera 9+ when document created or edited. So, be careful of using this function now."
      DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

      Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

      [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
      • 21056
      • 327 Posts
      Quote from: Metaller at May 23, 2008, 07:48 AM

      About mm_hideTemplate, as i says early "I found, that when mm_HideTemplate() used, some template rows are doubled in Opera 9+ when document created or edited. So, be careful of using this function now."

      Спасибо Metaller, I’ll take look. It does work for other browser though.
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 21056
        • 327 Posts
        Quote from: Metaller at May 23, 2008, 07:48 AM

        About mm_hideTemplate, as i says early "I found, that when mm_HideTemplate() used, some template rows are doubled in Opera 9+ when document created or edited. So, be careful of using this function now."

        This is fixed now -- updated in v 0.2.8.

        In addition, it will not hide a template when it is already the current template for the document (too paradoxical)
          Author: ManagerManager plugin - customise your ModX manager interface

          Rckt - web development, Sheffield, UK
          • 19164
          • 1,215 Posts
          It’s great. This is realy usefull feature to hide some of the templates from end user and i like that it work now. Спасибо smiley
            DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

            Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

            [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
            • 21056
            • 327 Posts
            Quote from: Metaller at May 28, 2008, 05:37 AM

            Спасибо smiley
            No problem! (I’m trying to learn Russian at the moment)
              Author: ManagerManager plugin - customise your ModX manager interface

              Rckt - web development, Sheffield, UK
              • 29076
              • 615 Posts
              Sorry for acting really stupid here, but I just can’t figure out how to use this Plugin. tongue undecided I know MODx quite well, but here I met the wall. Is it possible to ask for some explanations and maybe some more examples. Please. grin

              What does the 3 and 10 stand for, and how do I use this? (Now I’m gona put my head in the sand).
              // News editors role -- creating a variable makes it easier to manage if this changes in the future
              	$news = '3';
              		mm_hideFields('pagetitle,menutitle,link_attributes,template,menuindex,description,show_in_menu,which_editor,is_folder,is_richtext,log,searchable,cacheable,clear_cache', $news);
              	mm_renameTab('settings', 'Publication settings', $news);
              	mm_synch_fields('pagetitle,menutitle,longtitle', $news);
              	mm_renameField('longtitle','Headline', $news, '', 'This will be displayed at the top of each page');
              	mm_changeFieldHelp('parent', 'To move this story to a different folder: Click this icon to activate, then choose a new folder in the tree on the left.', '', $news_tpl);
              	
              	// News story template
              	$news_tpl = '10';
              	mm_createTab('Categories','HrCats', '', $news_tpl, '', '600');
              	mm_moveFieldsToTab('tvnewsbigimage', 'general', '', $news_tpl);
              	mm_changeFieldHelp('longtitle', 'The story\'s headline', '', $news_tpl);
              	mm_changeFieldHelp('introtext', 'A short summary of the story', '', $news_tpl);
              	mm_hideFields('menuindex,show_in_menu', '', $news_tpl);
              		
              	// For everyone
              	mm_default('pub_date');
              	mm_renameField('introtext','Summary');
              	mm_changeFieldHelp('alias', 'The URL that will be used to reach this story. Only numbers, letters and hyphens can be used');
              	
              	// For everyone except administrators
              	mm_hideFields('link_attributes', '!1');


              Thanks. laugh
                I think, thererfor I am! But what I am, and why...?
                • 21056
                • 327 Posts
                Quote from: Sylvaticus at May 28, 2008, 07:46 AM


                What does the 3 and 10 stand for, and how do I use this? (Now I’m gona put my head in the sand).

                The 3 is the ID of a role you want these rules to apply to; the 10 is the ID of a template you want these rules to apply to.

                We’ve used variables there for convenience; you could hard code it into each mm_* rule if you like.
                  Author: ManagerManager plugin - customise your ModX manager interface

                  Rckt - web development, Sheffield, UK
                  • 29076
                  • 615 Posts
                  Do you then refere to the ID-index in the database-fields? I just don’t find any ID-tags for the templates in MODx-manager.
                    I think, thererfor I am! But what I am, and why...?
                    • 21056
                    • 327 Posts
                    Quote from: Sylvaticus at May 28, 2008, 07:52 AM

                    Do you then refere to the ID-index in the database-fields? I just don’t find any ID-tags for the templates in MODx-manager.
                    if you’ve installed MM correctly, there should be a new tab when you edit the MM plugin, which lists all your role and template IDs
                      Author: ManagerManager plugin - customise your ModX manager interface

                      Rckt - web development, Sheffield, UK
                      • 29076
                      • 615 Posts
                      AHA, there it was. Now I get it, Thanks! laugh
                        I think, thererfor I am! But what I am, and why...?

                      This discussion is closed to further replies. Keep calm and carry on.