Test that article exists
Posted: 14 March 2008 06:33 AM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  186
Joined  12-21-2007

A small addition that would be incredibly handy to the wiki module would be a test to see if an article exists.

I have a discussion namespace next to my regular pages, allowing my users to discuss the topics. I’d like to display the “Discussion” tab more proeminently if there is actually a discussion associated to a topic. So I need from a topic (e.g. “Nikon D300") to test if the related discussion topic exists, something like:

{if topic_exists=Discussion:{url_title}}
more proeminent display
{/if}

I know that, in a wiki, every page exists in some way since users can always create a new page. The test, of course, should be whether the page has been created already.

--ben

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60730 Total Logged-in Users: 21
Total Topics: 73195 Total Anonymous Users: 17
Total Replies: 394738 Total Guests: 480
Total Posts: 467933    
Members ( View Memberlist )
Newest Members:  LambergbcurranChethansisiharmonijoe_carneypsykonautJitsunROPasterfredpwsAnita V