ユーザーのログインステータスに合わせて、出力結果を分けるコンディショナルタグです。たとえば、ログイン中のユーザーには [プロフィールの編集] リンクを、ログインしていない (またはアカウントを持っていない) ユーザーには [サインアップ] リンクを表示させたい、といったときに使用します。
使い方
<mt:IfLoggedIn script="show" id ="logged_in"> <a href="<MTEditProfileLink>">Edit Profile</a> <mt:Else> <a href="<MTRegisterLink>">Register Now!</a> </mt:IfLoggedIn>
モディファイア
- element_id="id"
-
script モディファイアで設定したファンクション
- script="function_foo"
-
呼び出す javascript のファンクション名を設定します。
MTIfLoggedIn と関連のあるテンプレートタグ (70)
- MTAssetIfTagged
- MTAuthorHasEntry
- MTAuthorHasPage
- MTBlogIfCCLicense
- MTBlogIfCommentsOpen
- MTCalendarIfBlank
- MTCalendarIfEntries
- MTCalendarIfNoEntries
- MTCalendarIfToday
- MTCategoryIfAllowPings
- MTCommenterIfTrusted
- MTCommentIfModerated
- MTElse
- MTElseIf
- MTEntryIfAllowComments
- MTEntryIfAllowPings
- MTEntryIfCategory
- MTEntryIfCommentsOpen
- MTEntryIfExtended
- MTEntryIfTagged
- MTHasNoParentCategory
- MTHasNoSubCategories
- MTHasParentCategory
- MTHasParentFolder
- MTHasSubCategories
- MTHasSubFolders
- MTIf
- MTIfAllowCommentHTML
- MTIfAnonymousRecommendAllowed
- MTIfArchiveType
- MTIfArchiveTypeEnabled
- MTIfBlogDynamicMTML
- MTIfCategory
- MTIfCommenterIsAuthor
- MTIfCommenterIsEntryAuthor
- MTIfCommenterTrusted
- MTIfCommentParent
- MTIfCommentReplies
- MTIfCommentsAccepted
- MTIfCommentsActive
- MTIfCommentsAllowed
- MTIfCommentsModerated
- MTIfDynamic
- MTIfEntryRecommended
- MTIfFolder
- MTIfIsAncestor
- MTIfIsDescendant
- MTIfLoggedIn
- MTIfMaxResultsCutoff
- MTIfNeedEmail
- MTIfNonEmpty
- MTIfNonZero
- MTIfPingsAccepted
- MTIfPingsActive
- MTIfPingsAllowed
- MTIfPingsModerated
- MTIfRegistrationAllowed
- MTIfRegistrationNotRequired
- MTIfRegistrationRequired
- MTIfRequireCommentEmails
- MTIfStatic
- MTIfStraightSearch
- MTIfTagSearch
- MTIfTypeKeyToken
- MTMultiBlogIfLocalBlog
- MTPageIfTagged
- MTSubCatIsFirst
- MTSubCatIsLast
- MTUnless
- MTWebsiteHasBlog