Author Topic: Help show subcategories only in categories  (Read 6706 times)

0 Members and 1 Guest are viewing this topic.

Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Help show subcategories only in categories
« on: July 24, 2009, 11:20:55 AM »

Is there any possibility to show subcategories only in categories and not in front page?

thankyou
Dragos Popovici

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Help show subcategories only in categories
« Reply #1 on: July 24, 2009, 04:49:10 PM »
Admin - General/Settings

Number of subcategories > 0

LG
Danke Harald




Offline mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Help show subcategories only in categories
« Reply #2 on: July 24, 2009, 04:52:21 PM »
If I set that It wil not showing subcategories in categories page


Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Help show subcategories only in categories
« Reply #3 on: July 24, 2009, 05:20:49 PM »
@ mayashu

... I think therefore you need a second, individual "function get_categories" in functions.php to create a new "category_index_bit.html" ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

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
Re: Help show subcategories only in categories
« Reply #4 on: July 24, 2009, 05:47:34 PM »
Since 4images v1.7.7 you can use the following combination in category_bit.html template:
Code: (HTML template) [Select]
{ifno index}{if sub_cats}{sub_cats}{endif sub_cats}{endifno index}
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 Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: Help show subcategories only in categories
« Reply #5 on: July 24, 2009, 07:00:58 PM »
{ifno index}

...thx a lot... for weeks I've searched something like this  :lol:

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
Re: Help show subcategories only in categories
« Reply #6 on: July 24, 2009, 07:20:55 PM »
Quote from: v1.7.7 changes
- Added more conditional tags (categories, details,index, member, postcards, register, search, top) for using {if index}...{if index} for homepage, {if details}...{endif details} for details.php page, etc.

reference
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 mayashu

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Help show subcategories only in categories Resolved
« Reply #7 on: July 24, 2009, 09:36:50 PM »
Since 4images v1.7.7 you can use the following combination in category_bit.html template:
Code: (HTML template) [Select]
{ifno index}{if sub_cats}{sub_cats}{endif sub_cats}{endifno index}

Thanks a lot it is exactly what I looking for. next time I will read the changes from update.


PS. What is the role of ;
Quote
{if details}...{endif details} for details.php page,

Dragos Popovici

« Last Edit: July 25, 2009, 11:49:36 AM by mayashu »