public ContentBase(FlexWiki.ContentBase contentBase) { this.Created = contentBase.Created; this.LastRead = contentBase.LastRead; //CA The secure property went away at some point. Need to keep it around //CA for backwards compatibility with existing wire format. this.Secure = false; this.Description = contentBase.Description; this.Contact = contentBase.Contact; this.ImageURL = contentBase.ImageURL; this.HomePage = contentBase.HomePage; this.DisplaySpacesInWikiLinks = contentBase.DisplaySpacesInWikiLinks; this.Namespace = contentBase.Namespace; this.Title = contentBase.Title; }
public ContentBase(FlexWiki.NamespaceManager manager) { //CA The LastRead and Created properties do not appear to be used anywhere else, //CA so it was removed during the rearchitecture. We need to keep it //CA for wire compatibility, so we just fake it. this.Created = manager.Federation.TimeProvider.Now; this.LastRead = manager.Federation.TimeProvider.Now; //CA The secure propertyName went away at some point. Need to keep it around //CA for backwards compatibility with existing wire format. this.Secure = false; this.Description = manager.Description; this.Contact = manager.Contact; this.ImageURL = manager.ImageURL; this.HomePage = manager.HomePage; this.DisplaySpacesInWikiLinks = manager.DisplaySpacesInWikiLinks; this.Namespace = manager.Namespace; this.Title = manager.Title; }
private void WriteLocation( HtmlTextWriter writer, FlexWiki.AbsoluteTopicName topic, string display ) { writer.WriteLine("<div id='wiki_nav'>"); writer.WriteLine("<div id='wiki_search'><input type='text' name='wiki_search' value='' /> <input type='submit' value='Procurar' /></div>"); writer.WriteLine("<a href='{0}'>Manual</a>", OrionGlobals.getSectionBaseUrl("wiki")); string parent = GetTopicField(topic, "Parent"); if( parent != null ) { FlexWiki.AbsoluteTopicName parentTopic = new FlexWiki.AbsoluteTopicName(parent); writer.WriteLine(" » <a href='{0}'>{1}</a>", GetUrl(parentTopic), GetDisplay(parentTopic)); } if( topic.Fullname != "Orionsbelt.Orionsbelt" ) { writer.WriteLine(" » <a href='{0}'>{1}</a>", GetUrl(topic), display); } writer.WriteLine("</div>"); }
public static string GetUrl(FlexWiki.AbsoluteTopicName topic) { return GetUrl( topic.Namespace, topic.Name ); }
public string GetTopicField( FlexWiki.AbsoluteTopicName topic, string field ) { Hashtable hash = GetFederation().ContentBaseForNamespace(topic.Namespace).GetFieldsForTopic(topic); if( hash == null ) { return null; } return (string) hash[field]; }
public string GetDisplay( FlexWiki.AbsoluteTopicName topic ) { string display = GetTopicField(topic, "Display"); if( display == null ) { return topic.FormattedName; } return display; }