blog teasers

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
9/14/2008 11:56:04 PM
Gravatar
Total Posts 29

blog teasers

Is it possible, and if not, are their plans to add a feature on the blog module where it will only show the first X lines and then provide a <more> link to the page that is created whn you make a blog entry?

 

 

Thanks

Greg P

9/15/2008 6:23:56 AM
Gravatar
Total Posts 18439

Re: blog teasers

People keep asking for this so I implemented it this morning. It will be in the next release coming later this week.

Best,

Joe

9/15/2008 12:15:45 PM
Gravatar
Total Posts 29

Re: blog teasers

 

Ask and ye shall receive.....

 

Thanks.

9/18/2008 1:32:06 PM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Re: blog teasers

Great Maker bless you, Joe!  :-)

10/8/2008 6:33:45 PM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Re: blog teasers

Hi, I tested this feature in the latest version and compared it with the RSS-can-also-make-it function. However they are both very similar, I think the teasers function is a solid base. I am unfortunatelly not using it, because I would prefer more flexibility. Since my blog is on my homepage I for example need images placed in the text to be present even in the teasers. Present version ignores them, which causes my homepage to be "text-only". I still think, that the special tag (<!-- break -->) implementation present in for example Drupal is way the best solution. One places the tag wherever he wants and the article splits.

Joe, do you think, you can consider perfecting the article splitting? Thank you very much.

10/9/2008 6:21:30 AM
Gravatar
Total Posts 18439

Re: blog teasers

I agree it would be nicer if we could make the teaser html, but I don't really know a good way to do it and ensure that the resulting fragment is valid.

the special tag (<!-- break -->) implementation present in for example Drupal

That doesn't sound very great to me, it doesn't guarantee correct closing tags to just truncate based on finding this. Consider this markup:

<div><p>Blahh Blah <img src="http://whatever.com" alt='' /> <!-- break --></p></div>

Truncating it at the break is going to leave unclosed tags and real world examples are going to be much more complex markup.

If you can show me an effective method where I can pass in html and get back a valid fragment of a passed in length I will happily integrate it if it really works and is not too complex or expensive to call.

Best,

Joe

10/12/2008 2:59:44 PM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Re: blog teasers

It is kinda user-unfriendly, but I'm affraid, there is none user friendly and foolproof option: If I remember correctly, Drupal does not have any button for breaking articles in its FCKEditor. It has to be inserted manually directly into the code. If I would be doing that, I would certainly be careful to not to damage any HTML tags.

So manually is... not really effective, but working  :-)

10/12/2008 5:08:21 PM
Gravatar
Total Posts 18439

Re: blog teasers

Yeah I think the only safe way to do it would be to add a new field in the db for Excerpt or Abstract or whatever we want to call it, but this field would have to be a full text field not a varchar(x) kind of field. Then we could show another instance of the editor for the abstract and the user would have to put in the amount of text/markup he wants for the abstract without risk of truncation. But its also less friendly. The editor should mostly prevent missing closing tags.

I will consider doing this next time I'm working on blog improvements.

Best,

Joe

12/11/2008 6:21:58 AM
Gravatar
Total Posts 18439

Re: blog teasers

FYI

I added the ability to create an html Excerpt in the blog. If you enable Excerpts and you don't specify the Excerpt, it will autogenerate a plain text one as it did before, but if you edit the Excerpt in the editor, then it will use whatever you put there, it won't truncate it to the excerpt length setting.

I also added meta description and meta keywords to the blog.

I also added a setting in case you want to use excerpt in the outbound rss feed to make the reader visit your site to read the full post.

This is in svn trunk now, so it will be in the next release.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.