Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBloghow to place top five blogs in home pagehow to place top five blogs in home page
Previous
 
Next
New Post
6/19/2007 9:12 AM
 

hello friends this is vijay.

i'm trying to place five blogs in home page....

is there any user control available or we have to develop the code?

please let me know...

 

Regards,

Vijay

 
New Post
6/19/2007 9:21 PM
 

I'm wondering this too. I would like to put a module on a page other than the Blog page, that shows the latest 5-10 blog titles but not the summeries, just the titles and the author username. Any thoughts on how to accomplish this? Thanks.

 
New Post
6/20/2007 1:52 PM
 

You can certainly build a module to do this specific function.

Have you tried developing a module?


Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
6/21/2007 2:13 PM
 

I am successfully doing this on my site's home page.  Note however that my site's home page is not created using DNN, it uses is a normal Active Server Pages (.asp) page (users then can navigate to DNN generated pages or to legacy static HTML pages on the site).

The following code is what I use to pull the 10 most recent blog entries (I placed in a file called 'most-recent-blog-entries.asp' which is then incorporated on the home page via a server side include, you will have to update the connection string for your own database):

<%
Dim my_Conn2
Set my_Conn2 = server.createobject("ADODB.Connection")
my_Conn2.open "PROVIDER=SQLOLEDB;SERVER=******;UID=*******PWD=******;DATABASE=*******"
%>

<%
'## Forum_SQL - Get most recent blogs from DB
strSql2 = "Select top 8 Title, Permalink "
strSql2 = strSql2 + " from Blog_Entries"
strSql2 = strSql2 + " Where DateDiff (Day, AddedDate, GetDate()) < 14"
strSql2 = strSql2 + " and Published = 1"
strSql2 = strSql2 + " and BlogID not in (18)"
strSql2 = strSql2 + " Order by AddedDate DESC"

set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql2, my_Conn2

'Dim tabid

if rs.EOF = false then
    While not rs.EOF

    %>    <a href="<%=rs("Permalink") %>" ><%=rs("Title") %></a><br>
    <%
        rs.movenext
    Wend
end if

rs.close
set rs = nothing

my_Conn2.Close
set my_Conn2 = nothing
%>

To see this action visit the home page of the CLUAS.com music website. I have a similar sort of script on the home page that also pulls the most recent 10 forum entries (from my Actrive Forums module).

 

Am I right to presume that this could be included in a DNN .aspx page via the IFRAME module?

eoghano

 
New Post
6/21/2007 2:54 PM
 

Thanks for this information as this is exactly I am looking for, since I am a so-so coder how would I accomplish this using the DNN home page?  Is iframe the way to go?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBloghow to place top five blogs in home pagehow to place top five blogs in home page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out