Skip to content

Instantly share code, notes, and snippets.

@muracms
Created November 7, 2013 05:00
Show Gist options
  • Select an option

  • Save muracms/7349205 to your computer and use it in GitHub Desktop.

Select an option

Save muracms/7349205 to your computer and use it in GitHub Desktop.
$.content();
$.currentUser('fname', 'John');
$.currentUser('lname', 'Doe');
$.currentUser().save();
$.siteConfig();
$.siteConfig('assetPath');
$.siteConfig('themeAssetPath');
$.siteConfig('includePath');
$.siteConfig('themeIncludePath');
$.siteConfig('assetMap');
$.siteConfig('themeAssetMap');
$.siteConfig('contentRenderer');
$.siteConfig('themeRenderer');
$.globalConfig();
$.globalConfig('yourCustomKey');
$.content().getParent();
$.content('title');
$.content().getTitle();
$.content().getValue('title');
$.content('title', 'Your New Title');
$.content().setTitle('Your New Title');
$.content().setValue('title', 'Your New Title');
$.content().getAllValues();
$.content().set({args});
$.content().save();
$.content().delete();
$.content().getParent();
$.content().hasParent();
$.content().getIsNew();
$.content().getURL({queryString});
$.content().getImageURL(size={'small'|'medium'|'large'|'customdefinedsize'|'custom'});
$.content().getImageURL(height={numberOfPixels or 'auto'}, width={numberOfPixels or 'auto'});
$.content().hasDrafts();
$.content().deleteVersion();
$.content().deleteVersionHistory();
$.content().getKidsIterator([{liveOnly},{aggregation}]);
// NOTE: Queries do NOT contain extended attributes!
$.content().getKidsQuery([{liveOnly},{aggregation}]);
$.content().getCrumbIterator();
$.content().getCrumbArray();
$.content().getCommentsIterator();
$.content().getCommentsQuery();
$.content().getCategoriesIterator();
$.content().getCategoriesQuery();
$.content().getKidsCategoryIterator();
$.content().getKidsCategoryQuery();
$.content().getVersionHistoryIterator();
$.content().getVersionHistoryQuery();
$.content().getRelatedContentIterator();
$.content().getRelatedContentQuery();
$.content().setNewFile({filePath/URL});
$.content().getStats().getComments();
$.comment().getAllValues();
$.comment().set({args});
$.comment().save();
$.comment().delete();
$.comment().getUser();
$.comment().getParent();
$.comment().getIsNew();
$.comment().getKidsIterator([{boolean:isEditor}]);
$.comment().getKidsQuery([{boolean:isEditor}]);
$.comment().getCrumbIterator();
$.comment().getCrumbQuery();
category.set({args});
category.save();
category.delete();
category.getParent();
category.getIsNew();
category.getKidsIterator();
category.getKidsQuery();
category.getCrumbIterator();
category.getCrumbQuery();
$.currentUser();
$.currentUser().getAllValues();
$.currentUser().getMembershipsIterator();
$.currentUser().readAddress(addressName={addressName});
$.currentUser().isLoggedIn();
$.currentUser().isInGroup('Some Group Name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment