adnan21
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] ->total() = 0oookaay… that simple
echo $layouts->field('header');Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] ->total() = 0ok, i added
$layouts->find(['limit' => -1]);after$layouts = pods('layout');and now i can fetch the results. now i have to figure out, how to get the content of the custom field.This is the function, where the error is thrown from:
var parseFunctionArgs = function (tokens) { var args = []; var arg = []; tokens.forEach(function (token) { if (token.type === TokenType.COMMA_TOKEN) { if (arg.length === 0) { throw new Error("Error parsing function args, zero tokens for arg"); } args.push(arg); arg = []; return; } if (token.type !== TokenType.WHITESPACE_TOKEN) { arg.push(token); } }); if (arg.length) { args.push(arg); } return args; };As far as i can see, arg.length is always 0???
Viewing 3 replies - 1 through 3 (of 3 total)