19. August 2010 11:28
I often like to break my post when I write a blog, to make the scrolling a bit less and not so cluttered. I use the Extension Break Post that comes with BlogEngine.net. By default you can put in your text [ more ] (minus the spaces). To show a link that will take you to the full post with the link text being “More…”. I have enhanced the extension so you can put [ more ]What ever you want[/ more ] (again no spaces, in the tags); this will change the link text to whatever is in between the tags. Or you can still use the default if you choose.
The default function of this extension is to show “More….” as the link text. It gets the text value from a global resource data value. If you are English speaking it is in the “App_GlobalResources\labels.resx”, under the data name of “more”. It is used in other places of BlogEngine.net; so if you change it, it will show that text in places you don’t want.
To change this I have slightly modified the extension found at “App_Code\Extensions\BreakPost.cs” of your site.
If you were looking for the code, you probably are a developer and can compare the original to my version of it. I changed functions AddMoreLink and PrepareFullPost. It was only a couple of lines :)
Otherwise, you can down the new file here and replace your “App_Code\Extensions\BreakPost.cs” with the one I have in this zip file. Happy Blogging!
BreakPost.zip (1.65 kb)