הצגת פריטים מתוך פריימרי לינקס בליווי טיזר- שימוש מתקדם יותר ב views
אני רוצה לבנות היבט שייצור לפריטי תוכן מסוימים לינק לטייטל ומתחתיו יציג את הטיזר של אותו פריט תוכן.
איםה הבעיה? זה צריך להיעשות אך ורק לפריטי התוכן שהם ה "נינים" בהיררכיה.
כיצד עושים את הסינון הזה באמצעות היבט ?

לא מצאתי דרך לעשות זאת ב
לא מצאתי דרך לעשות זאת ב VIEWS
אבל אני לא כל כך מנוסה עם VIEWS יכול להיות שאנשים פו ימצאו דרך
הכיוון שאני חושב צריך לחקור הוא שימוש ב book
book הוא מודול בגרעין של דרופל ומאפשר לארגן דפים ע"י outline
הקישור בין דפים ע"י outline יכול להיות יותר נוח ו גמיש מ menu hierarchy
אז מא שצריך לחקור זה איך ליצר block שיכיל ה outline של הדף הנוכחי
סביר שקיים מודול שעושה את זה , ואולי מודול זה מאפשר גישה נוחה להכיל ה teaser ברשימה
אם אין מודול כזה , אז לדעתי זה לא מסובך מדי לייצר בלוק כזה בקוד
פונקציה מעניינת לצורך זה היא book.module/function/book_toc/6" rel="nofollow">
book_toc
yakoub abaya
עכשיו גיליתי שהמודול book
עכשיו גיליתי שהמודול book עצמו מספק בלוק לניווט ה outline
ואיפשר לנסות להכניס ה teaser לבלוק הזה עי book-all-books-block.tpl.php
עי כתיבת פונקצית preprocess_book_all_blooks_block
או אפשר להסתכל על הקוד של הפונקציה שמיצרת את ה block ולבנות block אחר
שמיישם אותם צעדים וקריאות לפונקציות רק עם הוספת ה teaser לכל קישור
yakoub abaya
תודה רבה יעקוב אבל כל פריטי
תודה רבה יעקוב
אבל כל פריטי התוכן כבר מוגדרים כstory
האם זה אומר שעלי לשנות אותם ל Book?
no , you can use story in
no , you can use story in book outline as well
i hope someone here can help you with some contrib module
but if that doesn't happen i can write some simple module for you that does the job
yakoub abaya
well i wrote a quick module
well i wrote a quick module which create a block names "book teaser navigation "
it is nothing fancy , you could customize it with node.tpl.php
but maybe tomorrow i could upgrade the module to provide you with custom tpl.php
here is a link :
File name: teaser_nav.tar.gz
File size:742 Bytes
\i haven't tested , tell me if it works :)
yakoub abaya
yaakoub you are a darling I
yaakoub
you are a darling
I am so grateful for your kindness and generosity
I am not sure what should ypou do and how to proceed from here
because i have only story content type
could i call you
to better understand?
meanwhile i'll download what you wrote
many blessings to you
anat
Is it possible to display a teaser for nodes in the in the 4th grade hierarchy
if they are defined as story or page
fo
it is really nothing , it
it is really nothing , it took me 15 minutes and it is not a complete work
i am not sure it will answer your requirements
once i get some feedback from you i could extend
it with some custom theme tpl's
where are all the VIEWS guys ? can't anyone provide some solution for this issue ?
yakoub abaya
it's the authentic intention
it's the authentic intention to help that excites me
thanks again yaakoub
for your true kindness
i hope i know how to proceed from here
an update File name:
an update
File name: teaser_nav_2.tar.gz
File size:804 Bytes
this version provides custom node.tpl suggestions :
http://drupal.org/node/223440
it is very simple , you need to copy node.tpl.php to your theme directory
then copy node.tpl.php to node-teaser.tpl.php , this way whenever teaser is presented it will go through
node-teaers.tpl.php and not node.tpl.php where you can ommit sbumitted and links information or whatever suites you
you can also be more specific and use node-TYPE-teaser.tpl.php where TYPE is the node content type
yakoub abaya