BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 29.11.2006 13:06

abdon
BLOG:CMS Junior
Registered: 21.11.2006
Posts: 13

Static blog entry for the front page.

I would like to maintain the same blog entry for the front page, one that would not change when new entries are added. How can I accomplish that?

Offline

 

#2 29.11.2006 14:03

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: Static blog entry for the front page.

There is NP_Item.php plugin for that, it takes itemid and template name as parameters.

Usage: <%Item(itemid,templatename)%>


--= BLOG:CMS developer =--

Offline

 

#3 30.11.2006 09:08

abdon
BLOG:CMS Junior
Registered: 21.11.2006
Posts: 13

Re: Static blog entry for the front page.

Hm... It seems I have something wrong. I changed 'Edit Skins' -> 'Default' -> 'Main Index', replacing this part that prints articles to the front page:

<div id='items'>
<!-- shows last 5 articles -->
<%Plugin(BlogWithOffset,default,5)%>
<!-- shows links to previous / next 5 articles -->
<%OffsetArticles(5,5)%>
<!-- go to a page navigation -->
<div id='navigation'><%Plugin(PageLinkList,5,.)%></div>
</div>

with this:

<%Item(1,default)%>

Which should point to blog entry number one (as checked by print_r($data)) using the default skin. Unfortunatelly where the entry should be, all I get is the following error message:

DISALLOWED (Item)

Am I missing some permission thing somewhere?

Offline

 

#4 30.11.2006 13:50

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: Static blog entry for the front page.

Did you install NP_Item plugin in Admin / Plugins? It is not enabled by default..


--= BLOG:CMS developer =--

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist