Search found 2 matches

by Pokky
Wed Oct 06, 2010 7:55 pm
Forum: Tips and Tricks
Topic: Call Global Content Block from User Defined Tag
Replies: 6
Views: 10154

Re: Call Global Content Block from User Defined Tag

Hmm. Not sure where the hacking of a core file comes into play? I have the function defined in config.php which doesn't get overwritten.

Alternatively, create custom_functions.php and in config.php do an "include" on it - won't ever be touched by an upgrade.
by Pokky
Tue Oct 05, 2010 2:29 pm
Forum: Tips and Tricks
Topic: Call Global Content Block from User Defined Tag
Replies: 6
Views: 10154

Re: Call Global Content Block from User Defined Tag

Hi, I had disabled my news module, and rather than re-enabling it I wrote this little function. You can tag it on to config.php, or as I do, my config.php loads a custom_functions.php script with my extra functions: function getGlobalContentBlock($blockName) {   global $gCms;   $modules = array_keys...

Go to advanced search