/**RSS Feed**/
$rssout = "";
$rss = explode(",", $rss);
$count = count($rss);
$i = 0;
while ($i < $count)
{
$rss[$i] = trim($rss[$i]);
$tmpdoc = $modx->getDocument($rss[$i]);
if ($tmpdoc == TRUE)
{
if ($tmpdoc['longtitle'] === '')
{$rssout .= "\n".$tabstxt."<link href=\"".$modx->makeUrl($rss[$i], '', '', 'full')."\" rel=\"alternate\" type=\"application/rss+xml\" title=\"".$tmpdoc['pagetitle']."\"".$tagend;}
else
{$rssout .= "\n".$tabstxt."<link href=\"".$modx->makeUrl($rss[$i], '', '', 'full')."\" rel=\"alternate\" type=\"application/rss+xml\" title=\"".$tmpdoc['longtitle']."\"".$tagend;}
}
$i++;
}I plan on tweaking the favicon section as well, since I prefer to use PNG files. I’d like to see the code determine what kind of file it’s preparing the output for, and render the appropriate type.
Recoverable error: Argument 1 passed to modX::getTemplateVarOutput() must be an array, boolean given, called in core/cache/elements/modsnippet/1.include.cache.php on line 209 and defined
Thanks for the catch, am correcting in 1.5. Was using the old stuff to keep Evo compat. Now I have forked the project into two development paths so no worries about that anymore.
Hey!
I like your snippet very much! But I think there is a need to change the code:
Recoverable error: Argument 1 passed to modX::getTemplateVarOutput() must be an array, boolean given, called in core/cache/elements/modsnippet/1.include.cache.php on line 209 and defined
You’re not using the the right syntax of this function. Additionally this function is deprecated and will be removed in Rev 2.1 (so your snippet won’t run anymore).
Have a look at the MODx API: http://api.modxcms.com/modx/modX.html#getTemplateVarOutput
Cheers,
Jakob
All of the TVs that you wish to use with MetaX are not included in the install. MetaX has default TV names but does not clutter your install by making the TVs when you may not want it to in the first place.
Just installed MetaX on one of my Revo sites and it’s not appearing under the Template Variables Tab.
Normally I see a tab called MetaX and everything is ok. Any known bugs resulting in this issue?
date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2,0/DST' instead