Plugin idea: Entry types

Creating and modifying plugins.
Post Reply
User avatar
yellowled
Regular
Posts: 7055
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Plugin idea: Entry types

Post by yellowled » Wed Oct 31, 2012 10:52 pm

Here's another not-so-crazy idea for a plugin – it might be nice to have Tumblr-like entry types, i.e. entries which offer a different editor (non-WYSIWYG) in the backend and wraps its content into suitable markup to drop into {$entry.body}. (I'm just suggesting this as a plugin since I guess not everyone will need or use it, so if anyone thinks this should be a core functionality for whatever reasons …)

Obviously, this would be most useful for Tumblr-like microblogs, but it could also add new possibilities for other use cases (think: portfolio sites, magazine sites) combined with suitable templates. This could open up a whole new group of users for us (although that other blog engine already supports post types as far as I know).

Obviously, Tumblr's post types would be the first ones to add here, i.e.

* Text: should be the entry type for the standard entry, using the WYSIWYG (or otherwise configured) editor
* Link: entries in which (usually) the entry heading is a link to an external site, optionally with some additional text; should probably use the WYSIWYG editor plus have a form field for the external link
* Image: just a headline plus an image from the media db (or optionally external URLs?)
* Images: same, but a gallery of more than one images as thumbnails
* Quote: a quote, optionally with a source; should just be two input fields emitted as blockquote (not sure about a heading here; maybe headings should be optional for some entry types?)
* Audio: an audio file from the media db/external URL; could be marked up using the HTML5 audio element or with optional flash fallback?
* Video: same as audio; HTML5 video element + optional fallback?

I'm not sure we need Tumblr's Chat post type, that seems silly and hard to implement in the backend. I could probably think of other useful entry types as well, but right now, I have a cold and can't think straight.

Also, the entry type should be accessible for templating, i.e. to emit entries by type, to markup entry types differently etc.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin idea: Entry types

Post by garvinhicking » Mon Nov 05, 2012 6:29 pm

Hi!

I generally like the idea. I somehow remember this has come up in the past, I think even that serendipity_event_entrytemplates (or was it includeentry, or entryblocks? Something like that) has a basic foundation for creating specific editors for simplified insertion.

It wasn't primetime quality though.

A plugin like this could be a good idea for the developer sprint; even though maybe onli wanted it to more focus on core development...hm.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
Posts: 7055
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Plugin idea: Entry types

Post by yellowled » Mon Nov 05, 2012 6:35 pm

Based on the assumption that this might be a very specific use case, which will most likely require a specific template to make it really shine, this could also be solved on a template basis. But then users would have to use specific categories (or tags?) to denote the post types or the extended entries plugin would have to be used (which I always try to avoid). Also, users would have to adhere to a very specific way of writing posts to avoid having content which shouldn't be in certain types of posts. It would be terribly prone to error.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
robert
Regular
Posts: 1042
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Re: Plugin idea: Entry types

Post by robert » Mon Nov 19, 2012 10:54 pm

It´s nice to see this fresh ideas :) Sounds like some from my mind ;)

Please keep it in mind!
Nur ein Blog ...auf robertlender.info - natürlich mit S9y betrieben

S9y InfoCamp - der (inoffizielle) S9y-Podcast

User avatar
yellowled
Regular
Posts: 7055
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Plugin idea: Entry types

Post by yellowled » Mon May 20, 2013 10:16 am

I would still really like to see this implemented for 2.0. Happy to help with markup questions. I'd also build a specific template for this which demonstrates it's capabilities. Anyone?

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
robert
Regular
Posts: 1042
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Re: Plugin idea: Entry types

Post by robert » Mon May 20, 2013 11:30 pm

If I can help you in any way... :)
Nur ein Blog ...auf robertlender.info - natürlich mit S9y betrieben

S9y InfoCamp - der (inoffizielle) S9y-Podcast

mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 10:35 pm
Location: Wiesbaden, Germany
Contact:

Re: Plugin idea: Entry types

Post by mattsches » Tue May 21, 2013 3:52 pm

garvinhicking wrote:I somehow remember this has come up in the past, I think even that serendipity_event_entrytemplates (or was it includeentry, or entryblocks? Something like that) has a basic foundation for creating specific editors for simplified insertion.

It wasn't primetime quality though.
Maybe you were looking for serendipity_event_categorytemplates? I haven't installed it, but it seems like it enables custom templates for specific categories.

User avatar
yellowled
Regular
Posts: 7055
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Plugin idea: Entry types

Post by yellowled » Tue May 21, 2013 10:25 pm

mattsches wrote:Maybe you were looking for serendipity_event_categorytemplates? I haven't installed it, but it seems like it enables custom templates for specific categories.
I wouldn't want to use that. (I also don't have the best experience with that plugin.)

Basically, all we'd need (as far as I can see) is a way to emit an entry editor specific to post type in the backend and a CSS class specific to the post type in a Smarty variable for use in the template. (Yes, that would mean that post types would only work well with template which support them, but I don't see another way than that.)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plugin idea: Entry types

Post by garvinhicking » Wed May 22, 2013 9:15 am

I meant serendipity_event_includeentry, I think...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
yellowled
Regular
Posts: 7055
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Plugin idea: Entry types

Post by yellowled » Thu Jan 09, 2014 6:12 pm

Anybody up for implementing this? I'd still like to see it in s9y since I think it would add a lot of possibilities. :)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
robert
Regular
Posts: 1042
Joined: Mon May 09, 2005 9:17 pm
Location: Vienna, Austria
Contact:

Re: Plugin idea: Entry types

Post by robert » Thu Jan 09, 2014 7:24 pm

yellowled wrote:Anybody up for implementing this? I'd still like to see it in s9y since I think it would add a lot of possibilities. :)

YL
LIKE :D
Nur ein Blog ...auf robertlender.info - natürlich mit S9y betrieben

S9y InfoCamp - der (inoffizielle) S9y-Podcast

Sarah8332
Posts: 1
Joined: Thu Jul 17, 2014 9:50 pm

Re: Plugin idea: Entry types

Post by Sarah8332 » Thu Jul 17, 2014 9:55 pm

Hey guys,

Any update on this? Would love to see it too :)
cannabis seeds for salevaporizers for saleaberdeenseals.co.ukmarijuana seeds

Post Reply