Next we get into the "info" of the post - basically the author and tags for the post. After that, I put the pagetitle of my Resource, and make it a link that takes you to the same page. Useful if I don't want to have to update any header/footer changes in each of my Templates - I can just do it in one chunk. These chunks contain my common HTML tags that I would put in the footer and header across my site, so I can use them in different templates. Header and Footer ¶įirst off, you'll notice that I have two chunks: "pageHeader" and "pageFooter". This is solely a base structure - if you want your tags at the bottom, for instance, move them there! MODX doesn't restrict you from doing that. Tags: ]` &tagKey=`tag` let's examine the Template, shall we? As we go, remember this - you can move any of these pieces around, change their parameters, and adjust their placing. We'll create one called "BlogPostTemplate". This tutorial already assumes you have a base Template for your normal pages on the site - we'll reference that later on as "BaseTemplate". So, the best route is to setup your own blog post template. Why? Well, if you want comments and special formatting or page displays for your blog, you'll probably not want to have to do that for each Blog Post. Login - If you want to restrict commenting to logged in users only, you'll need this.įirst off, you'll want to have a Template that's geared just for Blog Posts.getFeed - If you want to grab other feeds in your site, such as a Twitter feed.SimpleSearch - For adding a simple search box to your site.Gallery - For managing photo Galleries.Breadcrumbs - For displaying a breadcrumb navigation trail.Archivist - For managing your Archives section.tagger - For managing tags and doing tag-based navigation.Quip - For anything and everything in commenting.getResources - For listing posts, pages and other Resources.The following is a list of most commonly-used Extras: Needed Extras ¶ Getting the Needed Extras ¶įirst off, you'll want to go ahead and download and install some Extras that we'll be using in our Blog. This tutorial was originally based on the blog setup at, but since their site has been redesigned, the examples no longer reflect their site. And, again, this is only one way to do it - there are tons of ways to setup a blog in MODX Revolution. MODX is modular, and your blog can function in any scope you like. If you don't need any specific part, just skip that part. One thing before we start, this tutorial is extensive, and will show you how to set up a powerful blog with posting, archiving, tagging, commenting and more. It's recommended that you're familiar with Revolution's Tag Syntax before we start. This tutorial will walk you through how to set them up. You'll need to setup your blog how you want it.įortunately, the tools to do so are already there for your taking. Since MODX Revolution is not blogging software, but rather a full-blown Content Application Platform, it doesn't come pre-packaged with a cookie-cutter blogging solution. This tutorial will help you setup a flexible, powerful blogging solution in MODX Revolution. Extension requirements may call for FURL use and ".html" be changed to "/" : Content -> Content Types -> HTML (.html) -> /.$274 per month-let's make that $500! Learn more The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX. selectedindex = index example html selectedindex: 0 option a option b option c option d option e javascript var selectelem = document.getelementbyid(' select') var pelem = document.getelementbyid('p') // when a new is selected selectelem.Support the team building MODX with a monthly donation. the value -1 indicates that no element is selected. selectedindex is a long that reflects the index of the first or last selected element, depending on the value of multiple. Web › API › HTMLSelectElement › selectedIndex
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |