Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged joomla



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 664 posted 12 years ago by beneberle
0 482 posted 13 years ago by dato
You can use JUri object to extract the path or query string from a any url
0 807 posted 13 years ago by anagaiyahoocom
Can use JUri to get the page handle
0 624 posted 13 years ago by anagaiyahoocom
0 479 posted 13 years ago by jurajsim
Useful for copyright. Keeps date current.
0 552 posted 13 years ago by bombadda
Replace 'position' with 'your-position-name'.
0 538 posted 13 years ago by bombadda
Joomla code to check and see if module exists on page.
0 587 posted 13 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 481 posted 13 years ago by beneberle
For instance when you want to leverage the JElements in a admin view form...
0 655 posted 13 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 709 posted 13 years ago by harikaram
File: /template/[mytemplate]/html/com_content/category/blog.php page...
0 556 posted 13 years ago by harikaram
Hier bepaal je de layout voor de members login
1 620 posted 13 years ago by danworx
Substitute new_ placeholder in the second line with your new prefix. Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds. Delete the rename.php script. Edit the configuration.php file...
0 755 posted 13 years ago by beneberle
0 422 posted 13 years ago by iqwebdev
Just a quick fix for a tag link issue I came across.\r\n\r\nbroken url:\r\ndomain.com/tag/two word.html\r\n\r\nif you take the spaces in the URL and replace them with pluses (‘+’) it’ll work. For example:\r\n\r\nfixed url:\r\ndomain.com/tag/two...
0 510 posted 13 years ago by trepmal
0 470 posted 13 years ago by jacobpdq
Credit goes to B. Kemler. I'm simply saving this for future reference.
0 651 posted 14 years ago by jhafner
/modules/mod_mainmenu/helper.php line 349
0 555 posted 14 years ago by nico65
in category item
0 528 posted 14 years ago by nico65
1 476 posted 14 years ago by nico65
0 459 posted 14 years ago by nico65
/libraries/joomla/html/html/behavior.php ~line 108
0 483 posted 14 years ago by nico65