Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

(Resolved) - Graphics in blogpost summaries linked to homepage


Reply


668 Views

Avatar
honeybunny

Community Member, 79 Posts

26 January 2010 at 8:02am

Edited: 04/02/2010 4:25am

I know that it's possible to display summaries and links to blog posts from multiple blogholders on the homepage, but does the homepage have to also be a blogholder?

The problem I am having is with blog posts that contain graphic images. The blog posts and their images display correctly in their respective parent blogholders, but are showing blank lines instead of graphics when the summaries and links are on the homepage.

I tried looking at the blogholder.php and .ss files to see if I could figure out what was making the summaries display differently, but I wasn't able to see anything obvious. (That's obvious for a person with limited php) Then I wondered if the problem was just that I was using the wrong page type.

Given the choice, I would prefer to display the summaries on the homepage without graphics. Not all of the blog posts have a pic, and it would be a lot cleaner if all of the summaries on the homepage were consistent.

So, does the homepage have to be a blogholder to correctly display a blog summary containing graphics or do I just need to find a snappy piece of code get the page to display the blog summary without inserting lines in place of the graphic?

Thanks!

HB

===========================================================================
It was a code issue. I forgot to rename some of the placeholders when I placed the function in the HomePage.php file. The end result was that it was managing to display the right content, it just wasn't displaying it correctly. I'm not entirely sure that my fix actually corrected my problem, but it did answer the question of whether or not the home page had to be a BlogHolder to correctly display article or blog entry excerpts. The answer is no, the homepage does not need to be an ArticleHolder or BlogHolder to display excerpts from articles or blog entries.