Jump to content
  • 0
design4VIP

1.7 "master"-parent category

Question

potrzebuje wyciagnac glona kategorie (id, cokolwiek, zeby zrobic {if-a} ) ze wszystkiuch leveli subkategorii. obrazujac:

KAT.GLOWNA - lev_depth=1
- SUBCAT 1 - lev_depth=2
- - subsubcat1 - lev_depth=3

i teraz z tej depth=3 potrzebuje na stornie category wyciagnac jej glowny _parent, czyli lev-depth=1. z deph=2 nie ma problemu bo jest zmienna id_parent ale ta wskazuje tylko deph-1 czyli 3->2, 2->1 a ja potrzebuje: 2->1 i 3->1

mam nadzie, ze nie za wiele tych cyferek i rownan ;)

z gory dzieki za wszelkei podpowiedzi

 

PS. najlepiej jak dalo by sie to zalatwic po stronie samego szablonu (tpl) bez uzycia kontrolera - ale, jak trzeba bedzie to sie doda ;)

Edited by design4VIP (see edit history)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More