Exemplo n.º 1
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());
            ListFormElement lfe = new ListFormElement("minNumberOfPosts", "Minimum Number of Posts", "The minimum number of posts a tag must be found in.");

            lfe.Add(new ListItemFormElement("No Minimum", "-1"));
            lfe.Add(new ListItemFormElement("1", "1", true));
            lfe.Add(new ListItemFormElement("2", "2"));
            lfe.Add(new ListItemFormElement("3", "3"));
            lfe.Add(new ListItemFormElement("5", "5"));
            lfe.Add(new ListItemFormElement("10", "10"));
            fec.Add(lfe);

            ListFormElement lfeMax = new ListFormElement("maxNumberOfTags", "Maximum number of Tags", "The maximum number of tags to display. If selected only the most popular tags will be returned.");

            lfeMax.Add(new ListItemFormElement("No Maximum", "-1"));
            lfeMax.Add(new ListItemFormElement("25", "25", true));
            lfeMax.Add(new ListItemFormElement("50", "50"));
            lfeMax.Add(new ListItemFormElement("100", "100"));
            fec.Add(lfeMax);

            return(fec);
        }
Exemplo n.º 2
0
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(new TextFormElement("Title", "Title", "The title of the section"));
     fec.Add(new TextAreaFormElement("Text", "Your Content", null, 5));
     return fec;
 }
Exemplo n.º 3
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());

            ListFormElement lfe = new ListFormElement("numberOfPosts", "Number of Posts", "The number of popular posts to list");

            lfe.Add(new ListItemFormElement("3", "3"));
            lfe.Add(new ListItemFormElement("5", "5", true));
            lfe.Add(new ListItemFormElement("10", "10"));
            fec.Add(lfe);

            ListFormElement lfeCats = new ListFormElement("categoryId", "Filter by Category",
                                                          "Do you want to filter by a category?");

            lfeCats.Add(new ListItemFormElement("All Categories", "-1", CategoryId == -1));
            foreach (Category c in new CategoryController().GetTopLevelCachedCategories())
            {
                lfeCats.Add(new ListItemFormElement(c.Name, c.Id.ToString(), c.Id == CategoryId));
                if (c.HasChildren)
                {
                    foreach (Category child in c.Children)
                    {
                        lfeCats.Add(new ListItemFormElement("--" + child.Name, child.Id.ToString(), child.Id == CategoryId));
                    }
                }
            }

            fec.Add(lfeCats);

            fec.Add(new CheckFormElement("showExcerpt", "Show Excerpt", "Do you want to display a short excerpt", false));

            return(fec);
        }
Exemplo n.º 4
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("Title", "Title", "The title of the section"));
            fec.Add(new TextAreaFormElement("Text", "Your Content", null, 5));
            return(fec);
        }
Exemplo n.º 5
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());
            fec.Add(new TextAreaFormElement("LinkData", "Links", "Add one link per line using the format Text | Link", 10));
            return(fec);
        }
Exemplo n.º 6
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new CheckFormElement("enableEvents", "Enable Events", "Allows you to mark posts as Events, which will then show up in an event calendar", false));
            fec.Add(new TextAreaFormElement("calendarFeeds", "Calendar Feed", "Enter URLs for .ics calendar files to include in your calendar", 5));

            return(fec);
        }
Exemplo n.º 7
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("username", "Username", "Name of the Twitter user account"));
            fec.Add(new TextFormElement("password", "Password", "Twitter password"));
            fec.Add(new TextFormElement("applicationName", "Application Name", "Name to show on all Twitter messages as the source application.  Must first be registered at <a href=\"http://twitter.com/oauth_clients/new\">http://twitter.com/oauth_clients/new</a>.  If not entered, Twitterizer will be used as the source application."));

            return(fec);
        }
Exemplo n.º 8
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(new TextFormElement("Title", "Description", "This field will not be displayed on your site."));
            fec.Add(
                new TextAreaFormElement("Text", "Content",
                                        "Any content you enter in this field will be displayed on your site's sidebar. (HTML is allowed)",
                                        10));

            return fec;
        }
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("apiKey", "API Key", "API Key for your Facebook Application"));
            fec.Add(new TextFormElement("appSecret", "App Secret", "App Secret value for your Facebook Application"));
            fec.Add(new TextFormElement("sessionKey", "Session Key", "Offline Access Session Key for Facebook"));
            fec.Add(new TextAreaFormElement("pageIds", "Page IDs", "Numeric IDs of user and fan pages to post to (one per line).<br />To work, all IDs must grant permission to the Facebook Application to post to streams.", 5));

            return(fec);
        }
Exemplo n.º 10
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("Title", "Description", "This field will not be displayed on your site."));
            fec.Add(
                new TextAreaFormElement("Text", "Content",
                                        "Any content you enter in this field will be displayed on your site's sidebar. (HTML is allowed)",
                                        10));

            return(fec);
        }
Exemplo n.º 11
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());
            ListFormElement lfe = new ListFormElement("numberOFcomments", "Number of Comments", "The number of most recent comments to list");

            lfe.Add(new ListItemFormElement("3", "3"));
            lfe.Add(new ListItemFormElement("5", "5", true));
            lfe.Add(new ListItemFormElement("10", "10"));
            fec.Add(lfe);

            return(fec);
        }
Exemplo n.º 12
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());
            fec.Add(new TextFormElement("username", "UserName", "(your twitter username)"));
            ListFormElement lfe = new ListFormElement("itemsToDisplay", "Number of Tweets", "(how many tweets do you want to display?)");

            lfe.Add(new ListItemFormElement("1", "1"));
            lfe.Add(new ListItemFormElement("3", "3", true));
            lfe.Add(new ListItemFormElement("5", "5"));
            fec.Add(lfe);

            return(fec);
        }
Exemplo n.º 13
0
        //We need to override this to present the user with a useful form. By default
        //this method would have rendered the title and data element. The data would have been a textarea
        //which would have worked, but would have been overkill.
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("tagname", "Gamer Tag", "Please enter your XBox 360 Gamer Tag"));
            return(fec);
        }
Exemplo n.º 14
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("title", "Search Text", "Text for the search box title"));
            return(fec);
        }
Exemplo n.º 15
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());
            return(fec);
        }
Exemplo n.º 16
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(AddTitleElement());

            fec.Add(new TextFormElement("FeedUri", "Feed", "The Url of the feed you wish to display"));
            ListFormElement lfe = new ListFormElement("itemsToDisplay", "Number of Posts", "(how many posts do you want to display?)");

            lfe.Add(new ListItemFormElement("1", "1"));
            lfe.Add(new ListItemFormElement("3", "3", true));
            lfe.Add(new ListItemFormElement("5", "5"));
            lfe.Add(new ListItemFormElement("7", "7"));
            fec.Add(lfe);

            return(fec);
        }
Exemplo n.º 17
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new CheckFormElement("enableNews", "Enable News", "Allows you to schedule news items, which can be displayed during a range of dates", false));

            return(fec);
        }
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = base.AddFormElements();

            fec.Add(new CheckFormElement("showIndividualEvents", "Show Individual Events", "If selected, show individual events in the calendar, otherwise just identify days that have events", false));

            return(fec);
        }
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new CheckFormElement("enableRssCategories", "Enable RSS Categories", "Allows you to specify custom &lt;category&gt; elements on individual posts", false));

            return(fec);
        }
Exemplo n.º 20
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new TextFormElement("title", "Name", "Give your list of items a name"));
            fec.Add(new TextFormElement("amazonid", "Amazon Id", "Please enter your Amazon Seller Id"));
            fec.Add(new TextAreaFormElement("amazonLinkItems", "Items", "Copy a link from amazon on each line", 5));
            ListFormElement lfe = new ListFormElement("show", "Items to Show", "How many items do you want to show at a time?");

            lfe.Add(new ListItemFormElement("All", "-1", true));
            lfe.Add(new ListItemFormElement("All (random)", "0"));
            lfe.Add(new ListItemFormElement("1 random item", "1"));
            lfe.Add(new ListItemFormElement("3 random items", "3"));
            lfe.Add(new ListItemFormElement("5 random items", "5"));
            fec.Add(lfe);

            return(fec);
        }
Exemplo n.º 21
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();

            fec.Add(new CheckFormElement("enableCommentRSS", "Enable Comment RSS Feed", "Generates a RSS feed that contains feedback received for all posts. Can be found at /feed/comments/", false));
            fec.Add(new CheckFormElement("enablePings", "Enable Pings", "Enables automatic notification to services that new content is available.", false));
            fec.Add(new CheckFormElement("enableTrackbacks", "Enable Trackbacks", "If enabled, Graffiti will automatically send trackbacks and pingbacks, and accept them for posts that have new comments enabled.", false));
            fec.Add(new CheckFormElement("enableGeoRSS", "Enable GeoRSS", "If enabled a custom field will be created to enter the geographic location of each post. If one is not entered, the default GeoRSS location (below) will be used.", false));
            fec.Add(new TextAreaFormElement("pingUrls", "Ping Service Urls", "Enter the URLs of all the services Graffiti should ping when you add or edit a post. Put each URL on a new line.", 3));
            fec.Add(new TextFormElement("geoRSSLocation", "Default GeoRSS Location (lattitude longitude)", "If a location is not entered in the custom GeoRSS field when writing a post, this value will be used in the GeoRSS element in RSS feeds. Enter a lattitude and longitude in the format: 45.256 -71.92."));

            return(fec);
        }
Exemplo n.º 22
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(AddTitleElement());
            ListFormElement lfe = new ListFormElement("minNumberOfPosts", "Minimum Number of Posts", "The minimum number of posts a tag must be found in.");
            lfe.Add(new ListItemFormElement("No Minimum", "-1"));
            lfe.Add(new ListItemFormElement("1", "1", true));
            lfe.Add(new ListItemFormElement("2", "2"));
            lfe.Add(new ListItemFormElement("3", "3"));
            lfe.Add(new ListItemFormElement("5", "5"));
            lfe.Add(new ListItemFormElement("10", "10"));
            fec.Add(lfe);

            ListFormElement lfeMax = new ListFormElement("maxNumberOfTags", "Maximum number of Tags", "The maximum number of tags to display. If selected only the most popular tags will be returned.");
            lfeMax.Add(new ListItemFormElement("No Maximum", "-1"));
            lfeMax.Add(new ListItemFormElement("25", "25", true));
            lfeMax.Add(new ListItemFormElement("50", "50"));
            lfeMax.Add(new ListItemFormElement("100", "100"));
            fec.Add(lfeMax);

            return fec;
        }
Exemplo n.º 23
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(new CheckFormElement("enableCommentRSS", "Enable Comment RSS Feed", "Generates a RSS feed that contains feedback received for all posts. Can be found at /feed/comments/", false));
            fec.Add(new CheckFormElement("enablePings", "Enable Pings", "Enables automatic notification to services that new content is available.", false));
            fec.Add(new CheckFormElement("enableTrackbacks", "Enable Trackbacks", "If enabled, Graffiti will automatically send trackbacks and pingbacks, and accept them for posts that have new comments enabled.", false));
            fec.Add(new CheckFormElement("enableGeoRSS", "Enable GeoRSS", "If enabled a custom field will be created to enter the geographic location of each post. If one is not entered, the default GeoRSS location (below) will be used.", false));
            fec.Add(new TextAreaFormElement("pingUrls", "Ping Service Urls", "Enter the URLs of all the services Graffiti should ping when you add or edit a post. Put each URL on a new line.", 3));
            fec.Add(new TextFormElement("geoRSSLocation", "Default GeoRSS Location (lattitude longitude)", "If a location is not entered in the custom GeoRSS field when writing a post, this value will be used in the GeoRSS element in RSS feeds. Enter a lattitude and longitude in the format: 45.256 -71.92."));

            return fec;
        }
Exemplo n.º 24
0
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(AddTitleElement());
     fec.Add(new TextFormElement("username", "UserName", "(your Del.icio.us username)"));
     ListFormElement lfe = new ListFormElement("itemsToDisplay", "Number of Links", "(how many links do you want to display?)");
     lfe.Add(new ListItemFormElement("1","1"));
     lfe.Add(new ListItemFormElement("3", "3"));
     lfe.Add(new ListItemFormElement("5", "5", true));
     lfe.Add(new ListItemFormElement("10", "10"));
     fec.Add(lfe);
     return fec;
 }
Exemplo n.º 25
0
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(AddTitleElement());
     fec.Add(new TextFormElement("username", "UserName", "(your twitter username)"));
     ListFormElement lfe = new ListFormElement("itemsToDisplay", "Number of Tweets", "(how many tweets do you want to display?)");
     lfe.Add(new ListItemFormElement("1", "1"));
     lfe.Add(new ListItemFormElement("2", "2"));
     lfe.Add(new ListItemFormElement("3", "3", true));
     lfe.Add(new ListItemFormElement("4", "4"));
     lfe.Add(new ListItemFormElement("5", "5"));
     fec.Add(lfe);
     fec.Add(new CheckFormElement("displayFollowMe", "Display 'Follow Me on Twitter' link", null, true));
     return fec;
 }
Exemplo n.º 26
0
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(new TextFormElement("title", "Search Text", "Text for the search box title"));
     return fec;
 }
Exemplo n.º 27
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(AddTitleElement());
            ListFormElement lfe = new ListFormElement("numberOFcomments", "Number of Comments", "The number of most recent comments to list");
            lfe.Add(new ListItemFormElement("3", "3"));
            lfe.Add(new ListItemFormElement("5", "5", true));
            lfe.Add(new ListItemFormElement("10", "10"));
            fec.Add(lfe);

            return fec;
        }
Exemplo n.º 28
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(new TextFormElement("title", "Name", "Give your list of items a name"));
            fec.Add(new TextFormElement("amazonid", "Amazon Id", "Please enter your Amazon Seller Id"));
            fec.Add(new TextAreaFormElement("amazonLinkItems", "Items", "Copy a link from amazon on each line", 5));
            ListFormElement lfe = new ListFormElement("show", "Items to Show", "How many items do you want to show at a time?");
            lfe.Add(new ListItemFormElement("All", "-1", true));
            lfe.Add(new ListItemFormElement("All (random)", "0"));
            lfe.Add(new ListItemFormElement("1 random item", "1"));
            lfe.Add(new ListItemFormElement("3 random items", "3"));
            lfe.Add(new ListItemFormElement("5 random items", "5"));
            fec.Add(lfe);

            return fec;
        }
        /// <summary>
        /// Adds the form elements.
        /// </summary>
        /// <returns></returns>
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection form = new FormElementCollection();

            ListFormElement itemsToDisplay = new ListFormElement("itemstodisplay", "Number of Photos", "(how many photos do you want to display?)");
            itemsToDisplay.Add(new ListItemFormElement("3", "3"));
            itemsToDisplay.Add(new ListItemFormElement("6", "6", true));
            itemsToDisplay.Add(new ListItemFormElement("9", "9"));

            form.Add(AddTitleElement());
            form.Add(new TextFormElement("nickname", "NickName", "(your SmugMug nickname)"));
            form.Add(itemsToDisplay);

            return form;
        }
Exemplo n.º 30
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(AddTitleElement());

            fec.Add(new TextFormElement("FeedUri", "Feed", "The Url of the feed you wish to display"));
            ListFormElement lfe = new ListFormElement("itemsToDisplay", "Number of Posts", "(how many posts do you want to display?)");
            lfe.Add(new ListItemFormElement("1","1"));
            lfe.Add(new ListItemFormElement("3", "3", true));
            lfe.Add(new ListItemFormElement("5", "5"));
            lfe.Add(new ListItemFormElement("7", "7"));
            fec.Add(lfe);

            return fec;
        }
Exemplo n.º 31
0
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(AddTitleElement());
     fec.Add(new TextAreaFormElement("LinkData", "Links", "Add one link per line using the format Text | Link", 10));
     return fec;
 }
Exemplo n.º 32
0
 //We need to override this to present the user with a useful form. By default
 //this method would have rendered the title and data element. The data would have been a textarea
 //which would have worked, but would have been overkill.
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(new TextFormElement("tagname", "Gamer Tag", "Please enter your XBox 360 Gamer Tag"));
     return fec;
 }
Exemplo n.º 33
0
 /// <summary>
 /// This method can be overriden to control what elements are rendered on the edit screen.
 /// </summary>
 protected override FormElementCollection AddFormElements()
 {
     FormElementCollection fec = new FormElementCollection();
     fec.Add(AddTitleElement());
     return fec;
 }
Exemplo n.º 34
0
        protected override FormElementCollection AddFormElements()
        {
            FormElementCollection fec = new FormElementCollection();
            fec.Add(AddTitleElement());

            ListFormElement lfe = new ListFormElement("numberOfPosts", "Number of Posts", "The number of most recent posts to list");
            lfe.Add(new ListItemFormElement("3", "3"));
            lfe.Add(new ListItemFormElement("5", "5", true));
            lfe.Add(new ListItemFormElement("10", "10"));
            fec.Add(lfe);

            ListFormElement lfeCats = new ListFormElement("categoryId", "Filter by Category", "Do you want to filter by a category?");
            lfeCats.Add(new ListItemFormElement("All Categories", "-1", CategoryId == -1));
            foreach (Category c in new CategoryController().GetTopLevelCachedCategories())
            {
                lfeCats.Add(new ListItemFormElement(c.Name, c.Id.ToString(), c.Id == CategoryId));
                if (c.HasChildren)
                {
                    foreach (Category child in c.Children)
                    {
                        lfeCats.Add(new ListItemFormElement("--" + child.Name, child.Id.ToString(), child.Id == CategoryId));
                    }
                }
            }

            fec.Add(lfeCats);

            fec.Add(new CheckFormElement("showExcerpt", "Show Excerpt", "Do you want to display a short excerpt", false));

            return fec;
        }