Welcome To Snipplr
Everyone's Recent Snippets Tagged joomla
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Copy /modules/mod_menu/tmpl/default.php to /templates/MYTEMPLATE/html/mod_menu/default.php
        
        
        
            0 
        
        
            2614 
        
                    posted 14 years ago by nico65
            getCategory returns the category ID, getSection returns the section alias. Great for CSS overrides
        
        
        
            0 
        
        
            1351 
        
                    posted 14 years ago by beneberle
            function for determining the section ID of a given page. Good to include in a templatetools.php file inside of a template to set up some custom conditional logic
        
        
        
            0 
        
        
            1270 
        
                    posted 14 years ago by beneberle
            Place directly below 'RewriteEngine On' to ensure that no other redirects interfere with it.
        
        
        
            0 
        
        
            1180 
        
                    posted 14 years ago by batfan
            You can use JUri object to extract the path or query string from a any url
        
        
        
            0 
        
        
            1488 
        
                    posted 14 years ago by anagaiyahoocom
            When using Joomla, allows you to redirect index.php to the root ( to prevent duplicate content ), without affecting the Joomla admin.
        
        
        
            0 
        
        
            1119 
        
                    posted 14 years ago by batfan
            Usage: setowner james
Will set all files in current directory and all subdirectories to owner james:james
        
        
        
            0 
        
        
            700 
        
                    posted 14 years ago by renekreijveld
            Basic style to set up Joomla-format menu as horizontal menu with dropdowns.
        
        
        
            0 
        
        
            2230 
        
                    posted 14 years ago by cviolette
            jQuery to make Joomla-format menu dropdowns appear on hover. Change "#mainnav" to menu container selector.
        
        
        
            1 
        
        
            2240 
        
                    posted 14 years ago by cviolette
            I set up an $isHome boolean variable at the beginning of a template's index.php file so I can easily test the condition throughout the file. To me, the semantic variable name makes the logic more readable.
        
        
        
            0 
        
        
            1002 
        
                    posted 14 years ago by beneberle
            For instance when you want to leverage the JElements in a admin view form...
        
        
        
            0 
        
        
            1291 
        
                    posted 14 years ago by harikaram
            Say you want to run content plugins on JDocumentRAW content (like in a component that returns JSON data).  Some methods in JDocumentHTML like "addCustomTag" will cause the app to fail on JDocumentRAW doc types which don't have this method.  Thus you...
        
        
        
            0 
        
        
            1434 
        
                    posted 15 years ago by harikaram
            File: /template/[mytemplate]/html/com_content/category/blog.php page...
        
        
        
            0 
        
        
            1178 
        
                    posted 15 years ago by harikaram
            
