Boti

create / register publishing callback or template for a custom object

Vote 0 Votes

Hi

I am new to movable type, and I have started with the latest (5.12) version of movable type.
I need to create a new content type (custom object) plugin which definitely needs it's own template to display. This means it is not saved in the entry table (is ts not a page nor an entry) but is still needs to be published .

So the simple question is: Is there a way to publish a new content in movable type which resides in an another table then mt_entry. I was able to create a listing for this using the built in list_screens and list_properties config options. So i assume there is a way to setup plugin specific templates for custom objects too but i don't seem to find the right information since the documentation available online is rather poor

Thank you for nay help and example

Reported on Movable Type 5

6 Replies

| Add a Reply
  • Is there a way to publish a new content in movable type which resides in an another table then mt_entry.

    You just need to create whatever template tags you need. The API for that is well-documented in the developer docs.

  • Thank you for your info. I have already defined a template tag that can render my content if receives the id of it. (which by the way is a gallery). But that tag needs to be put in an already available template. is there a way to publish such a content under a url having it's own template just as the entry type has it's own template(for instance http://mydomain/gallery/ttl_of_gallery.html). also is there a way for a plugin to specify additional archive_type and specify a template in an already existing template set.

    for instance extend the classic blog template set with a new template for this new content type?

    If not then I will have to go with the template tag you mentioned and tell my boss that there is no way for custom content to have dedicated page and url :).

    Thank you again for any information


  • is there a way to publish such a content under a url having it's own template just as the entry type has it's own template

    If you're talking about an archive template, the answer is "no." Not yet, anyway.

  • thank you.

    this was a clear answer. actually I already thought that the answer will be no, since I have wasted a lot of time searching the web for an answer. It's a pity though, it would have been a nice feature.

  • Boti, go ahead and submit this request as a "feature request" from: https://movabletype.fogbugz.com/

    The guys from Six Apart KK are wonderful and they will surely consider to implement this in a future release.

    Also, I believe from this feature we would all benefit sooner or later.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/

  • Thank you for your info.

Add a Reply

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

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012