#region Tip List public static void InputTipList(Asset asset, string parentField) { Input.ShowHeader("Tip List Content Block", "#16baa5", "#ffffff"); while (Input.NextPanel(parentField + "_tip_list_content")) { //Acquire tip Input.ShowAcquireDocument("Select Tip", parentField + "_tip"); } // Bottom link Dictionary btndrpdwn = new Dictionary() { { "Yes", "yes" }, { "No", "no" } }; Input.StartDropDownContainer("Show 'See More' Link", parentField + "_show_link", btndrpdwn, defaultValue: "no"); // Link Text Input.ShowTextBox("Link Text", parentField + "_link_text", "See All Tips", 50); // Link Link InputHelper.StandardLink(asset, "Link", parentField + "_link"); Input.EndDropDownContainer(); } public static void OutputTipList(Asset asset, string parentField) { Out.WriteLine(""); Out.WriteLine(""); Out.WriteLine("
" + "

{0}

", asset[parentField + "_tips_title"]); Out.WriteLine(""); Out.WriteLine("
"); // Out.WriteLine(""); // Out.WriteLine("
"); // Out.WriteLine("
"); //loop over items inside list // List pnls = asset.GetPanels(parentField + "_tips_list_content"); // foreach (PanelEntry pnl in pnls) // { Out.WriteLine("

{0}

", asset[parentField + "_section_title"]); List panls = asset.GetPanels(parentField + "_tip_list_content"); foreach (PanelEntry item in panls) { //load asset - this is the pdf drawing Asset tip = Asset.Load(item[parentField + "_tip"]); if (tip.IsLoaded) { Out.WriteLine("
"); //write out title link Out.WriteLine("", OutputHelper.GetLinkInternalExternalWithTrim(tip, "tips_link"), tip["title"]); Asset thumb = Asset.Load(tip["story_photo"]); if (thumb.IsLoaded) { Out.WriteLine("\{1}\", thumb.GetLink(), tip["title"]); } Out.WriteLine("
"); } // } } //end loop of tips