Module dạng "Các tin đã đăng" hoặc "Các tin liên quan" ?

Events happening in the community are now at Drupal community events on www.drupal.org.
yeusaigon's picture

Thế Hồng ơi, Drupal có Module dạng "Các tin đã đăng" hoặc "Các tin liên quan" không?
Ví dụ: Sau 1 bài viết bên dưới nó là danh sách "Các tin đã đăng" để cho website chuyên nghiệp hơn, có module nào đáp ứng được vậy không?
Mình ưu tiên cho module "Các tin đã đăng"


Module này có thích hợp không?
Similar Entries (http://drupal.org/project/similar)
A module that displays a block with the most similar nodes to the currently viewed one, based on the title and body fields.

Only supports MySQL-based sites.

Comments

tìm cái relatedviews based

mhd's picture

tìm cái relatedviews based on taxonomy.

This module makes a filter available to any view:
Taxonomy: Term from current node

You can use this module in this type of situation: You can define a block which contains a view. The view uses the filter "Taxonomy: Term from current node", and therefore the view will contain nodes that share taxonomy terms with the current node being displayed. You could label that block "Related content".

http://drupal.org/project/relatedviews

Mình sử dụng cái

yeusaigon's picture

Mình sử dụng cái module relatedviews [tin liên quan ] rồi, nó không có hay, nếu không muốn nói là dở. Mình khộnng là dân code nên kô tự code được, khổ ghê.
Mình cần tìm module "Các tin đã đăng" ?? Thế Hồng, help!!!!!!!!!!

Website: http://thuvientre.uni.cc
Email: vietnam.tri [at] gmail.com
Trí, Việt Nam.

Website: http://thuvientre.uni.cc
Email: vietnam.tri [at] gmail.com
Trí, Việt Nam.

(Group đâu chỉ có

thehong's picture

(Group đâu chỉ có TH)

Module Views rất mạnh, có thể đáp ứng được rất nhiều nhu cầu khác nhau. Cứ nói đến liệt kê các node, thì trước tiên cứ nghĩ tới Views. Không sử dụng được Views là một điều rất đáng tiếc, khi đã sử dụng Drupal. Như vậy đối với yêu cầu của YSG,

  • "các tin đã đăng", sử dụng Views ở mức độ rất cơ bản cũng có thể làm được.
  • "các tin liên quan", có nhiều mức độ liên quan, như cùng người viết, có số lượng người xem gần nhau, có cùng term, ngày đăng, ... nếu đã xác định được liên quan theo thuộc tính nào, again, Views làm được ráo, có thể kết hợp với module embeded views để bỏ "các tin liên quan" vào nội dung node, na ná như trang này

Mình sẽ cố gắng sử

yeusaigon's picture

Mình sẽ cố gắng sử dụng lại View và chờ TH cho ý kiến!
Website: http://thuvientre.uni.cc
Email: vietnam.tri [at] gmail.com
Trí, Việt Nam.

Website: http://thuvientre.uni.cc
Email: vietnam.tri [at] gmail.com
Trí, Việt Nam.

View khó sử dụng cực

yeusaigon's picture

View khó sử dụng cực kỳ. Thôi ta đành bó tay!
Website: http://thuvientre.uni.cc
Email: vietnam.tri [at] gmail.com
Trí, Việt Nam.

Website: http://thuvientre.uni.cc
Email: vietnam.tri [at] gmail.com
Trí, Việt Nam.

View và Taxonomy

SunflowerMission's picture

YeuSaigon,

"Các tin đã đăng" hoặc "Các tin liên quan"

Cái này không khó đâu, website http://sunflowermission.org dùng cái này mà. Bạn phải dùng taxonomy để kết hợp tất cả bài liên hệ với nhau lại rồi sau đó thì làm view cho những taxonomy đó (hình như những bài đăng trong web của bạn không có dùng taxonomy thì phải). Tại tôi không có cùng taxonomy của bạn nên không thể export 1 view của tôi cho bạn xem được. Xin lôi nha.

bạn xem cái này có đc không?

khangdep's picture

trang của em chia thành rất nhiều loại content (tin nội bộ, tin tổng hợp, tin hoạt dộng....)
Em ví dụ là em đang làm cái tin liên quan cho mục "tin tổng hợp":
+em dùng view tạo một view mới là "tin_tong_hop_khac_foot", add một block (khối) tên là "tin tổng hợp khác foot" và lọc chỉ lấy cái content type là "tin tổng hợp khác" au đó save lại

Sau đó bác vào block bác để cái khối "tin_tong_hop_khac_foot" ở đâu thì tùy (em để ở nội dung cuối)

bác bấm vào config chỉnh phần cài đặt hiển thị như em (nhớ thay đường dẫn của bác vào nhé, và sau đó nội dung thuộc phần tin tức này bắt buộc phải nhập đường dẫn bằng tay và phải giống như đường dẫn bác để ở trên (của em tất cả các phần tin tức của "tin tổng hợp" là tin-tuc/tin-tong-hop/@#@$#%%#$

Gà con...

Ông anh chỉ luôn đi,

thehong's picture

Ông anh chỉ luôn đi, còn mail chi cho mệt. (ông anh thích bị spam ghê)

--
Only local images are allowed.

Good place to hire Drupal experts

Bạn nên dùng cái attachment

freenotes's picture

Bạn nên dùng cái attachment trong views cũng có thể làm đc. Tìm google các bài viết liên quan tới attachment. ví dụ như

Đây là bài viết dành cho Drupal 6 nhưng tương tự với Drupal 7
Out of the box, VIEWS in Drupal 6 offers FOUR displays; PAGE, BLOCK, FEED and ATTACHMENT. Of the four the latter is the least used and least understood. So that's exactly what we'll tackle here!
First, I'll quickly review the three that you probably know.
PAGE
User enters a PATH and the output of the VIEW is viewable at that URL.
BLOCK
A BLOCK is created when the view is saved. Going to the Blocks Admin section shows that the newly created BLOCK is disabled and needs to be assigned to a region.
FEED
Custom XML FEEDS can be created to supply users and robots with FEEDS that are tagged with specific taxonomy OR event details for events that are upconing, etc.
And here's what we did with the ATTACHMENT display.
I already had a page display created earlier which simply showed the 10 most recent blog posts and only showed specific fields.
We then selected ATTACHMENT from the Drop Down Selector of Displays and then selected CREATE DISPLAY.
At this point we made some configuration changes, most notably changing from Fields to Nodes, and from 10 to 1 with an offset of one to avoid duplicate results.
After this we had to configure the attachment settings. We observed that the POSITION setting was set to BEFORE and that the ATTACH TO setting was set to NONE. We changes the NONE to PAGE so that the ATTACHMENT display would attach to the PAGE display and appear BEFORE it.
The preview bore witness to our success BUT we visited the actual page to see it in its glory.
Enjoy the video and PLEASE give us feedback on the topics we're delivering. We've enjoyed great feedback so far and would love to hear from YOU! :-)

Y: Free.Notes
F: tuansieu
T: tuansieu
E: free.notes@yahoo.com
W: freenotes.us - drupalvn.org
P: 0936 111 039

The most gracious commenter

freenotes's picture

The most gracious commenter “nordic material” provided working instructions for performing this task using Views 3 in D7. I just went through the directions and they work perfectly. Below is a recap. Thanks again Nordic Material!

  1. Create view (block)
  2. Add fields (title, a small image, date, whatever you like). Or teasers, what works as well.
  3. “Arguments” is from now on called “Contextual filters”, so go there.
  4. Add the filter: “Content: Has taxonomy term ID”
  5. Configuration on this filter: -> When the filter value is NOT in the URL: -> Provide default value -> Type: Taxonomy Term ID from URL -> under that, check the box “Load default filter from node page, that’s good for related taxonomy blocks.” -> now check the boxes of the taxonomies you want involved here
  6. Now you need to add the second filter in order to exclude the current node from the list. Click [+] button of the contextual filters section.
  7. Select Content: Nid
  8. Set the ‘when argument is not present’ to ‘Provide default argument’
  9. Set the ‘Default argument type’ to ‘Content ID from URL’
  10. Go to “MORE” , and check the “Exclude” box.
  11. Add a block to your view and embed the block on your node pages
  12. Save your view

 

Y: Free.Notes
F: tuansieu
T: tuansieu
E: free.notes@yahoo.com
W: freenotes.us - drupalvn.org
P: 0936 111 039