Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Using pmPro for a faq page
Posted: 22 June 2005 08:28 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  2004-09-16

I found this thread on building a FAQ page in EE.
But could you do something similar in pMachine pro?
If a set up a weblog (let’s call it faq) and use 2 of the three available custom fields as an answer and question pair can I then use something like the show_field tag to show just the question and answers?
Ideally you would have a list of questions at the top of page linking to a list of answers on the same page.
Anyone have any suggestions? In EE this is fairly straightforward but the site I’m adding this FAQ to still uses pMachine pro so…

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 22 June 2005 10:49 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

This page uses pM Pro for the FAQ.  As you suggested, there is a “faq” weblog created.  The question is the entry Title and the answer is placed in the Body (though you could put it in whichever field you want, of course).

The list at the top is done with the “weblog_headlines” pM Tag and the actual FAQ entries are displayed with the “weblog_entries” pM Tag.


weblog_headlines Template:

<li><a href="#entry%%id%%">%%title%%</a></li>


weblog_entries Template:

<a name="entry%%id%%" id="entry%%id%%"></a>
<
h3 class="question">%%title%%</h3>
<
div>
%%
body%%
</
div>


Actual (relevant) code in the file:

<ul>
<?php weblog_headlines("faq", 50); ?>
</ul>

<?php weblog_entries($id,"faq"); ?>

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 22 June 2005 11:00 AM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  2004-09-16

Awesome Chris, thank you so much.
The Force is strong in you smile

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

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 233, on December 18, 2007 12:04 AM
Total Registered Members: 65017 Total Logged-in Users: 0
Total Topics: 82101 Total Anonymous Users: 0
Total Replies: 441210 Total Guests: 15
Total Posts: 523311    
Members ( View Memberlist )
Active Members: