Added version options to GetTermsForContentItem.

This allows to get only Published terms the driver's Display method and the Latest terms from the Editor method.
Question to be answered: what about Exporting: should only Published terms be exported, Latest terms, or based on the "Published content only" checkbox on the Export screen?
This commit is contained in:
Sipke Schoorstra
2013-12-31 11:05:27 +01:00
parent 538761da34
commit 425d590d30
3 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ namespace Orchard.Taxonomies.Services {
string GenerateTermTypeName(string taxonomyName);
TermPart NewTerm(TaxonomyPart taxonomy);
IEnumerable<TermPart> GetTermsForContentItem(int contentItemId, string field = null);
IEnumerable<TermPart> GetTermsForContentItem(int contentItemId, string field = null, VersionOptions versionOptions = null);
void UpdateTerms(ContentItem contentItem, IEnumerable<TermPart> terms, string field);
IEnumerable<TermPart> GetParents(TermPart term);
IEnumerable<TermPart> GetChildren(TermPart term);