Recent Changes - Search:

SimpleLog wiki

Installing SimpleLog

        MT(gs) users
        DreamHost users

Upgrading

Working with themes

How to

Troubleshooting

Development & resources

StyleExtendedLink

If you want to be able to style the extended link that gets rendered on a post 'teaser' (say, to float it right or use a background image), do the following:

In app/helpers/post_helper.rb, find the following:

 
  def extended_content_link(post, wrap_in_p = true)
    ...
      ext_link = "<a href=\"#{Post.permalink(post)}\" title=\"#{ext_link}\">#{ext_link}</a>"
    ...
  end 

Add a style class, (class=\"readmore"\):

  def extended_content_link(post, wrap_in_p = true)
    ...
      ext_link = "<a href=\"#{Post.permalink(post)}\" title=\"#{ext_link}\" class=\"readmore\">#{ext_link}</a>"
    ...
  end 

Now you can style the link using .readmore {} in your CSS file

NOTE: Since this is a core app file, you will have to re-insert this code every time you upgrade to a new version. Hopefully, future versions will put something like this in for us...

Edit - History - Print - Recent Changes - Search
Page last modified on January 08, 2008, at 12:36 PM EST