hi..
There is no template.php file in my theme which i m using in drupal..So i have added the template.php.txt file in my page.tpl.php file into a seperate PHP tag between the body tag..but i m unable to find out the the view_name and view_field of my views..
what is the process for finding the name of view_field and view_name... .
please describe me in detail..
i am using AD_NOVASE theme.there is no template.php file in this theme..so i put the preprocessor funcation in page.tpl.php

have i done right thing..
Please solve this...
I m attatching page.tpl.php file with this..Should i insert preprocessor function in this file or not..???

Comments

nevets’s picture

Add a template.php file to your theme and had the preprocessor function there. You will also need to clear the theme registry.

ppblaauw’s picture

Assigned: techdefine » Unassigned
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Like nevets says: you need to create the template.php file yourself, when a theme does not have one itself and copy the preprocess function for the ddblock slideshow into it.
Clear the cache at administer > site configuration > performance

Drupal should find the preprocess functions now.

Hope this helps you further, please let me know.

Tips:
Leave Assigned to unassigned, when you assign an issue to yourself, you say I am solving this myself nobody else needs to do something at the moment.

Putting a support request to Critical will not help getting support quicker, maybe even the opposite. Giving detailed information about your issue will improve getting quick and the right answers. (have also a look at other similar issue in the issue queue for what is normally asked, you can search on all issues to find similar issues)

You can read more in the Issue queue handbook to make you posts in issue queues and your journey with Drupal more fruitful.

techdefine’s picture

Status: Postponed (maintainer needs more info) » Active

hi ..tnx for suggestion..but it is not helpful..
On creating template.php on root folder of theme and inserting preprocessor function there....i m getting this error..

Parse error: syntax error, unexpected $end in /opt/lampp/htdocs/drupal-6.15/themes/ad_novus/template.php on line 46

what should i do now...

nevets’s picture

A guess, you placed a closing ?> in the file. It is not required and it is recommended that it not be used. If this is case try removing it.

techdefine’s picture

hi...tnx for giving reply..
i removed the ?> tag in the template.php file..
but can u please tell me how can i know the name of view_name and view_field.
bcoz these both name have to be change in the template.php.
i m new to drupal dats y i m finding some difficulties..
please help me out.

techdefine’s picture

plz help anyone..

airen2011’s picture

Status: Active » Postponed (maintainer needs more info)

Did you use another view name and fields than the news_item view and field names we provided by default?

If yes, then you need to change the view name and field names in both preprocess function in the template.php file.

To find out the field names generated by cck/views you can uncomment the drupal_set_message lines at the top of the content preprocess function. This will show the viewname you use and the fieldnames generated by cck/views.

Have a look also at our FAQ Images not showing, only grey box for more information.

Do you have a link to your Internet site?

Hope this helps you further, please let me know.

techdefine’s picture

tnx for ur support..but i just want to know which view name and view field i m using..

i have uncommented the the drupal_set_message lines at the top of the content preprocess function.
But pls tell me how this will show the viewname you use and the fieldnames generated by cck/views.????
i m very new to Drupal..plz help me..

techdefine’s picture

Status: Postponed (maintainer needs more info) » Active

plz help anybody...

ppblaauw’s picture

People can only help you better by explaining more detailed what you did, what you expect, what results you have, and e.g. attaching screenshots, code you use, page source of the particular page.

Repeating plz help anybody will not solve your problem.

techdefine’s picture

i just want to know that after uncommenting drupal_set_message what should i do now to know the name of view name and view field..
I have uncommented drupal_set_message already but dont know what to do next..

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

Do you see the result of the debug lines when you reload the page with the slideshow?
Please attach the result, your template.php file and a link to the site, so I can help you better.

SiphonElectronics’s picture

I had the same problem with my theme; But I built it from scratch you will need to build a brand new template.php file in your theme or use a different theme. If your theme does not have the template.php then preprocess functions will be hard to initiate without the file.

ppblaauw’s picture

Title: Installing Preprocessor Function » Installing Preprocessor Function (Fixed)
Status: Postponed (maintainer needs more info) » Fixed

Set status to fixed.
Assume user solved the issue with the reply.
9 weeks without activity.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.