Profile
Achievement
beneberle's Recent PHP SnippetsTagged joomla
- All /
« Prev 1 Next »
getCategory returns the category ID, getSection returns the section alias. Great for CSS overrides
0
728
posted 13 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
674
posted 13 years ago by beneberle
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
490
posted 13 years ago by beneberle
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
769
posted 13 years ago by beneberle