- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- October 2006
- Status:
- offline
- last visit:
- 26.03.08
- Posts:
- 14
Hi, I am working on building a list of stories -as a way of publishing simple content pages in a menu block- everything seems to be working fine except i want the story titles to list in the block without the date references which due to there size push the story titles apart in the block. All I want to appear in the block are the story titles themselves and not the dates they are published. is there a way to do this? is it possible I am going about this the wrong way?
Cheers Tiggerz
www.southern-command.com -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
Code
if (pnSecAuthAction(0, 'Stories::Story', "$aid:$cattitle:$sid", ACCESS_READ) && pnSecAuthAction(0, 'Topics::Topic', "$topicname::$tid", ACCESS_READ) ) {
$row['content'] .=
"<li><span class=\"pn-sub\"><a href=\"index.php?name=News&file=article&sid=" . pnVarPrepForDisplay($sid) . "\">" . pnVarPrepForDisplay(pnVarCensor($title)) . "</a>
(".ml_ftime(_DATEBRIEF,$time).")</span></li>\n";
$shown_results++;
}
change to:
Code
if (pnSecAuthAction(0, 'Stories::Story', "$aid:$cattitle:$sid", ACCESS_READ) && pnSecAuthAction(0, 'Topics::Topic', "$topicname::$tid", ACCESS_READ) ) {
$row['content'] .=
"<li><span class=\"pn-sub\"><a href=\"index.php?name=News&file=article&sid=" . pnVarPrepForDisplay($sid) . "\">" . pnVarPrepForDisplay(pnVarCensor($title)) . "</a>
</span></li>\n";
$shown_results++;
}
includes/blocks/stories.php (~161)
--
David Pahl
Zikula Support Team -
- rank:
-
Freshman
- registered:
- October 2006
- Status:
- offline
- last visit:
- 26.03.08
- Posts:
- 14
Yea currently my ISP is running PostNuke (0.764) and they have a nifty auto-installer and gods know what else running in the back ground so I am hesitant to update my version of post nuke in case they don't support it yet.
Okay one more question :) i want to be able to have more than one block for listing out content menus in the same way the current block handling stories does. I tried two story blocks and merely got a duplication of the first block in the second.
is it possible to have two story blocks with different content? I see a reference to categories when i create a block but cant seem to find any way to make separate categories...? And i guess i don't know if this is the best way to go about creating multiple blocks with text-menu links to content pages.
Suggestions anyone? if you look at my page (URL below) you can see i have a block on the right titled ANZAC I need to create a second block under this with similar items in the menu. Sorry for the n00b questions, but these things dont always seem that obvious despite reading lots of beginners guides.
Tiggerz
http://www.southern-command.com
"Problem with beginners guides is that they are rarely written by beginners."
-
- rank:
-
Professional
- registered:
- November 2003
- Status:
- offline
- last visit:
- 06.11.08
- Posts:
- 1675
Categories in pn0.764 are a bit difficult to understand as far as creating them goes, it has to be done from the AddStory module. If you go to either add or edit a story through AddStory (edit through 'Programmed Articles') you'll see a 'Category' drop down ('Articles' is default but does not show under Stories block category selection) with the control links immediately after, use those to create/edit/delete categories.
Or you can use the following URI's appended to your URL.
Code
admin.php?module=AddStory&op=AddCategory
admin.php?module=AddStory&op=EditCategory
admin.php?module=AddStory&op=EditCategory&catid=[$catID]
It looks as though you can control the output through 'Topic' selection as well.
--
Under Construction!
