1
dickinsd
Can anyone help with layout in xoopsfaq?
  • 2005/8/1 13:45

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hi there.

I am just about to start using the xoopsfaq module to provide information connected right across the site.

I.e. news, articles, weblinks may all point to questions/answers in the xoopsfaq module.

When you go to the index of XOOPS faq, it looks like this:

category name
  question1
  question2
category name
  question1
  question2
category name
  
..
  ..


Can anyone help me mold the template so that it displays the content like this:

category    category    category
question1   question1   question1
question2   question2   question2
..          ..          ..


And if that doesn't make sense basically I want my 4 categories to appear on one line with their respective questions in a list under the category title.

I have been messing with it for a while but I am not able to acheive the look I want.

Thanks for any help.

Dave

2
dickinsd
Re: Can anyone help with layout in xoopsfaq?
  • 2005/8/1 14:21

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Ok, I figured it out, not sure why I couldn't see it before, just kept moving my tags around until it hit home.

Just in case anyone else would like to go with this display option the template needs to look a little like this:

<BR><BR><h4 style="text-align:center;"><{$lang_faq}>h4>
<
table width="100%" cellspacing="1" class="outer">
<
BR><BR><BR>

  <
tr>
    <
td>

      
      <{foreach 
item=category from=$categories}><td>

        &
nbsp;&nbsp;<img src="<{$xoops_url}>/modules/xoopsfaq/images/folder.gif" width="14" height="14" border="0" alt="" />&nbsp;<a href="index.php?cat_id=<{$category.id}>"><{$category.name}>a>
        <
ul style="list-style-image:url(images/question.gif);">

        
        <{foreach 
item=question from=$category.questions}>

          <
li>&nbsp;<a href="index.php?cat_id=<{$category.id}>#q<{$question.id}>"><{$question.title}>a>li>

        <{/foreach}>
        

        ul>td>

      <{/foreach}>
      

    td>
  tr>
table>


Might be of use to someone.

Dave

Login

Who's Online

335 user(s) are online (295 user(s) are browsing Support Forums)


Members: 0


Guests: 335


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits