Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4052678
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:21:00+00:00 2026-05-20T14:21:00+00:00

I am learning Drupal 7 for my new project. Here is what I want

  • 0

I am learning Drupal 7 for my new project.

Here is what I want to do

  1. create a new content type called ‘video’
  2. create a new module called ‘video’
  3. make http://domain.com/video accessible.
  4. when a user access /video, then execute a query that queries video rows from video table (created by ‘video’ content type’), then display queries with a custom template.

I have learned how to do #1 ~ #3, but I am a little bit confused with #4.

let’s assume that my custom template’s filename is ‘video.tpl.php’

in the video.tpl.php, do I write php functions to query video rows?

I don’t think that is a good practice. Instead, I want to write a module and call a function in the module when the video.tpl.php is loaded.

How do I do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:21:01+00:00Added an answer on May 20, 2026 at 2:21 pm

    You should use views

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I received an learning project from my brother that includes: Create a Drupal
I trying to write a drupal module. I'm following book Learning Drupal 6 Module
I'm a little new to drupal but have been using things like devel module
if i create a new web application tomorrow, should i use Drupal 6 or
Learning WPF nowadays. Found something new today with .Net dependency properties. What they bring
Im learning lisp and im pretty new at this so i was wondering... if
I'm learning about table design in SQL and I'm wonder how to create a
I'm trying to analyze content of a Drupal database for collective intelligence purposes. So
In my way of learning drupal, I got stuck in this issue. I have
I'm learning how to use Draggable Views for Drupal 6 for the first time,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.