Scenario:
"I have Nucleus installed on my server and already have an existing home page that is in no way linked to Nucleus. I want to know how to show just the title and text of the last post on the homepage."
Original forum thread (thanks, ftruscot & trappedatuf!):
http://forum.nucleuscms.org/viewtopic.php?t=15049
Method:
<%blog(bare/headlines,1)%>
<a href="/path/to/index.php?itemid=<%itemid%>" title="<%title(attribute)%>"> <b><%title%></b></a> <br><%syndicate_description(200)%>
where /path/to/index.php is the directory where your Nucleus index.php lives relative to your home page file, i.e. if you have installed Nucleus in a subdirectory called /subdirectory/, you would put /subdirectory/index.php?itemid="<%itemid%>. If you installed Nucleus in your root directory, you would simply put index.php?itemid="<%itemid%>.
headlines.php with the following code and put it in the same directory as your Nucleus index.php file:<?php // This file will generate and return the main page of the site $CONF['Self'] = 'headlines.php'; include('content/config.php'); selectSkin('bare'); selector(); ?>
<?php include('/path/to/headlines.php'); ?>
where /path/to/headlines.php is the path to where your headlines.php file lives.
/nucleus/libs/globalfunctions.php file and change the following line to a zero:$CONF['alertOnHeadersSent'] = 0;
![]()
Total votes: 5 - Rating: 5.00