Amber Armstrong

Scheduled & Unpublished Entry Template Tag

Vote 0 Votes

I'm trying to access the tags of entries.
The following will give me the tags of all published entries, completely skipping over scheduled and unpublished entries.


<mt:Entries id="$id">
<mt:EntryTags glue=", "><$mt:TagName$></mt:EntryTags>
</mt:Entries>

It looks like MT doesn't treat scheduled/unpublished entries as Entries.. It's ID doesn't get listed when I do

<mt:Entries>
<$mt:EntryID>
</mt:Entries>

However it will get listed if I just do

<$mt:var name="id"$>


Is there someway to access the tags of an unpublished or scheduled entry? A plugin or a mystery tag? Or am I going to have to write a plugin to do this?

Reported on Movable Type 4.3

6 Replies

| Add a Reply
  • Unpublished and Scheduled entries aren't supposed to be published by the Entries block tag. After all, they're unpublished or scheduled to be published for a reason. So, my knee-jerk reaction is to tell you that if you want to publish these, then you should mark them as Published.

    But, I'm guessing you must have some special need that somehow will make sense--in which case, yes, you'll need to write a plugin to do this (I'm not aware of an existing one to do it).

  • Amber Armstrong

    I'm trying to make batch editing of entry tags easier.
    Below is 2 screenshots of what I've done so far, and my problem.

    http://img683.imageshack.us/img683/8516/manageentries.png
    http://img683.imageshack.us/img683/3800/batcheditentries.png

    Guess I'll get to making that plugin. Thank you!

  • Do the "add tags..." and "remove tags..." list actions not do what you want?

  • Amber Armstrong

    No, because you cannot see what tags are currently there (or are missing).

  • But you can just use those options to apply any missing tags. There's no worry of double-applying a tag, so you can just blanket apply tags to entries.

    FWIW, I would look at extending the Batch Entries screen with the option to add/remove tags, and I think you can then use a cms_post_save callback to update the objecttag table as needed.

  • But, I'm guessing you must have some special need that somehow will make sense--in which case, yes, you'll need to write a plugin to do this (I'm not aware of an existing one to do it).oakleys sunglasses

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

code.sixapart.com

141 498

Last Topic: Action Stream for LinkedIn by michael webster on Jan 10, 2013

255 908

Last Topic: Comments not working on old MT (4.2) blog by phillio on May 8, 2013

1873 6641

Last Topic: Main Index Template by Richard on May 7, 2013

89 311

Last Topic: Seeking explanation of files and folders by CosmicKnight on Feb 23, 2013

1521 5507

Last Topic: Networking? by ufxmarkets on May 8, 2013

743 3150

Last Topic: Installation Problem by Alex L on Apr 2, 2013

90 334

Last Topic: HELP! I need to 301 over 100 urls on my site via htaccess by justin on Feb 22, 2013

193 800

Last Topic: Deleting Revision History by Will Haynes on Mar 16, 2013

220 722

Last Topic: Cookies are being overwritten by David on May 11, 2013

28 97

Last Topic: Movable Price by joe22 on Jan 10, 2013

52 222

Last Topic: Movabletype.org is in bad need of a redesign by Caio on May 11, 2013

65 249

Last Topic: Expanding new rich text editor and implementing table function by Takeshi Nick Osanai on Jul 30, 2012