Closed (fixed)
Project:
Dynamic display block
Version:
6.x-1.0-rc6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2010 at 06:31 UTC
Updated:
9 May 2010 at 02:00 UTC
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
Comment #1
nevets commentedAdd a template.php file to your theme and had the preprocessor function there. You will also need to clear the theme registry.
Comment #2
ppblaauw commentedLike 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.
Comment #3
techdefine commentedhi ..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...
Comment #4
nevets commentedA 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.Comment #5
techdefine commentedhi...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.
Comment #6
techdefine commentedplz help anyone..
Comment #7
airen2011 commentedDid 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.
Comment #8
techdefine commentedtnx 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..
Comment #9
techdefine commentedplz help anybody...
Comment #10
ppblaauw commentedPeople 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.
Comment #11
techdefine commentedi 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..
Comment #12
ppblaauw commentedDo 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.
Comment #13
SiphonElectronics commentedI 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.
Comment #14
ppblaauw commentedSet status to fixed.
Assume user solved the issue with the reply.
9 weeks without activity.