mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 03:40:56 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user