Author Topic: 2 categories_bit in one categorie document  (Read 6059 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoud

  • Newbie
  • *
  • Posts: 37
    • View Profile
2 categories_bit in one categorie document
« on: May 24, 2003, 06:33:24 PM »
Dear Jan,

I have a question about the categorie menusystem (categories_bit). How can I use 2 times the menu system in one document with a different layout?

Can I call a second categorie_bit wich also shows the categorie links?

Thanks a lot,

Arnoud

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
2 categories_bit in one categorie document
« Reply #1 on: May 24, 2003, 10:12:21 PM »
Yes, I think so.  You should be able to use the same tag multiple times and it will get replaced with the output from the 4images php scripts.

Offline arnoud

  • Newbie
  • *
  • Posts: 37
    • View Profile
Category_bit2
« Reply #2 on: May 30, 2003, 10:02:52 AM »
Thats not exactly what I mean

In the header template I have made a menusystem, so I have placed the folowing tags in the header.
Code: [Select]
{if categories}
         {categoriestextiel}
{endif categories}


I only want to show the links in the menu so I used the folowing code in the category_bit.
Code: [Select]
<table border="0" cellspacing="0" cellpadding="0" bgcolor="d9ab00">
  <tr>
    <td valign="top">
 <img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />

    </td>
    <td>
 <a href="http://www.eu-basic.com/prijzen2/categories.php?cat_id={cat_id}" class="maincat">{cat_name}</a>
     
</td>
  </tr>
</table>


The problem
Now I want a category overview in the category template. Thats why I want a second category_bit, by example category_bit2

In the second category category_bit2 I want to place the folowing tag, this tag shows 1 thumbnail of each subcategory.
Code: [Select]
<!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->

I want to call this category_bit2 in the category template by example with:
Code: [Select]
{if categories2}
         {categories2}
{endif categories2}


How can I realise that I can call the second "category_bit2" with the tags above,  and how can I make the folowing link work correct in the second template?
Code: [Select]
<!-- {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}  -->

I hope someone can help me.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
2 categories_bit in one categorie document
« Reply #3 on: May 30, 2003, 11:55:29 AM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline arnoud

  • Newbie
  • *
  • Posts: 37
    • View Profile
2 categories_bit in one categorie document
« Reply #4 on: May 30, 2003, 01:53:59 PM »
Thanks for your quik reply.

Thats not exactly what I mean, the problem is: how can I use the category_bit twice so I can place the links on the left side,

And also 1 thumbnail for each subcategory on the right side.


I hope you understand what I mean.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
2 categories_bit in one categorie document
« Reply #5 on: May 30, 2003, 03:02:30 PM »
What you should really do is adapt the category drop down form for what's on the left.  Also what you're asking requires a good deal of additional php code.  This is no small undertaking.  Best wishes.