add blog as part of existing web page

Topics: Support Request
Apr 6, 2009 at 3:56 PM
On the main page of our website www.manoamano.org we have a section in the middle where we write the latest news.  We would like to use dasblog for that section of the web page.  Can anyone provide any tips with inserting the blog into an existing webpage.  I think it might be possible using a server-side include and inserting the blog page into a table. 

Also, any tips or information for trimming a blog template so that I only have the main section and remove all the extra parts of the blog that will not be needed with this page, remove the navigation, search, calendar, etc.

http://manoamano.org/blog

Thanks
Coordinator
Apr 6, 2009 at 11:12 PM
I don't know about trying to put dasBlog in a SSI, never tried a full fleged asp.net app in SSI, but sounds interesting, if you go that way and it works let us know!

Other ideas are using the main RSS feed in a IFrame, or a custom theme site in an IFrame.

You could create a custom theme with just this data in the "homeTemplate.blogtemplate" file, this is all that is requried to run dasBlog stripped down.
Of course you could add a little navigation say the some of the paging or category macros for news navigation.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
<%newtelligence.adminBar()%>
<%bodytext%>
<%newtelligence.loginbox ()%>
</html>
</body>

Cheers
Tom
Apr 7, 2009 at 12:57 PM
Excellent!  Thank You Tom!   I will work on your suggestions this weekend and I will write back with the results.
Apr 7, 2009 at 7:28 PM
I made some changes and cleaned up the blog and made a very basic, minimal style, you can see it at this link:  http://manoamano.org/blog/default.aspx

I did not have time to add this to an existing webpage yet.

Can you please tell me where I can comment-out or remove the little calendar icon that is next to my blog entry title, just to the left of the date?

And, also, how can I change the entry title so that it is not a hyperlink?

Thanks, 
Coordinator
Apr 7, 2009 at 11:58 PM
OK I see your coming from the elegante theme, so the "dayLink.gif" displayed next to your title is actually defined in your "theme.manifest file", <image name="dayLink" fileName="dayLink.gif" />

Just remove that information and it should not be displayed anymore.

About your title, replace the macro <%itemTitle%> with <%itemTitleRaw%> in the file "itemTemplate.blogtemplate".

That should give you what your looking for.

See http://www.jforsythe.com/jforsythe/projects/dasBlogMacros.html this link is displayed at www.dasBlog.info along with most other good info on editing themes, http://dasblog.info/ThemesForDasBlog19Plus.aspx

Tom
Apr 8, 2009 at 6:16 PM
Thanks again Tom!   I read through the information on the links you provided and I managed to get a very minimal version that looked fine, but then I realized that there are a couple of features I would like to have (instead of just the absolute bare minimum).  For items/blog entries that are fairly long, it would be nice to have a summary, or just show the first 10 lines of the item content, and then have a "Read More" link which expands to show the full item.  I looked through all the styles but I did not find any that had this feature.  Maybe I missed it, is there a theme that has this feature?  Or can I enable it somehow?

Also, with regards to the previous two questions, the only way I was able to make the dayLink.gif icon go away was to delete the actual file, but then the flickr.txt icon started appearing in the same place, even though I deleted the   <image name="dayLink" fileName="dayLink.gif" />   line from the theme.manifest file.

The other question about the Item Title, changing it to Raw eliminated the hyperlink but I noticed some of the themes have some formatting on the Item Title instead of plain text.  For example, in the theme called Voidclass2, the title is bold and all caps.  How can I format the Item Title?

Thanks again,   RC
Coordinator
Apr 8, 2009 at 10:54 PM
OK,

About the "Read More" type functionality, if you are using the FreeTextBox application built into the system for your entries, then there is a prompt for "Description", what ever you put in there will show as your "summary" and the system will only display that along with a canned "Read More" type prompt.

I believe Windows Live Writer also supports this feature.

As to the Title format, that is covered in the Cascading Style Sheet (CSS) file "items.css", which has a couple of classes named "itemTitleStyle" and "postTitle" which are referenced by your theme file "itemTemplate.blogtemplate".

If you edit these classes you can do most anything you like with the text formats for your Title.

Since I know you edited the file "itemTemplate.blogtemplate" to change to <%itemTitleRaw%>, and you didn't notice the CSS classes there then, I am assuming you don't know much about CSS.

So just read all the other formats in the file and try some of them that look promising for what you want to do, i.e. play with the various CSS commands, you can revert anything that doesn't work for you, you can't hurt the system with CSS changes, you just might not like the result. :)

Tom
Apr 17, 2009 at 6:18 PM
Thanks for the advice about the Iframe.   It works great.  I have a very rough draft working here:

http://www.manoamano.org/blog/blogtest.html

We would like to have the description and the "more" link, but is there any way to make the "more" link just open the full news article below the description and leave the other descriptions below that, instead of how it works now where it seems to open a new page?

We are trying for a minimalist design and the "home" link to get back to the page the user was on before clicking the "more" link is a little bit hard for non-tech savvy users to figure out.