How to know the path of a tpl.php file
Hi all, with Theme Developer I can find that the content of one of my page (created from a view with Node output style) is build from "node.tpl.php" file (but no vars information are displayed like usal, and this is strange). Now I have a problem with this file in: in my template directory there is one node.tpl.php file, but is different at 100% from the output that I can see online and I have a file called node-view-VIEWNAME.tpl.php that it is not considerated from template engine (Theme Developer give me this file like a possible template file, but is not used). How can I know which is or where is (path) this template file ? Thanks in advance. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.net Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
On Fri, Jun 18, 2010 at 11:52 AM, Michel Morelli <michel@ziobuddalabs.it> wrote:
node-view-VIEWNAME.tpl.php that it is not considerated from template engine (Theme Developer give me this file like a possible template file, but is not used).
How can I know which is or where is (path) this template file ?
Have you looked into the "Theme: Information" section of the view? Thanks, Adnan
Progga ha scritto:
On Fri, Jun 18, 2010 at 11:52 AM, Michel Morelli <michel@ziobuddalabs.it> wrote:
node-view-VIEWNAME.tpl.php that it is not considerated from template engine (Theme Developer give me this file like a possible template file, but is not used).
How can I know which is or where is (path) this template file ?
Have you looked into the "Theme: Information" section of the view?
Yes, I have rescan the theme directory but nothing: node-view-VIEWNAME is not considerated. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
HI! Have you a simple node.tpl.php file in the theme directory? The engine is process the special node template files if and only if a simple node.tpl.php file is int he theme directory. Best regards! George Bobak Hungary From: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] On Behalf Of Michel Morelli Sent: Wednesday, June 30, 2010 2:33 PM To: A list for theme developers Subject: Re: [themes] How to know the path of a tpl.php file Progga ha scritto: On Fri, Jun 18, 2010 at 11:52 AM, Michel Morelli <mailto:michel@ziobuddalabs.it> <michel@ziobuddalabs.it> wrote: node-view-VIEWNAME.tpl.php that it is not considerated from template engine (Theme Developer give me this file like a possible template file, but is not used). How can I know which is or where is (path) this template file ? Have you looked into the "Theme: Information" section of the view? Yes, I have rescan the theme directory but nothing: node-view-VIEWNAME is not considerated. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it __________ ESET Smart Security - Vírusdefiníciós adatbázis: 5239 (20100630) __________ Az üzenetet az ESET Smart Security ellenõrizte. http://www.eset.hu __________ ESET Smart Security - Vírusdefiníciós adatbázis: 5239 (20100630) __________ Az üzenetet az ESET Smart Security ellenõrizte. http://www.eset.hu
In your directory tree, goto sites/all/. In here you should have created a folder named modules and one named themes. Inside the themes folder, go into the folder of the theme you are using. The 'node.tpl.php' file should be in there. If you have not made these folders, go ahead and do it. You can download a theme from http://drupal.org/project/Themes, or copy one of the core themes from the themes folder. Then go to the admin page, under Site Build click themes. Change to a different theme, any theme will do, it will be changed again, then click save. Then select the theme you want to use, (the new theme or core theme from the site/all/theme folder), and save. Click the configure, and fix all your setting in here. Now you are using the theme that is in you site/all/theme folder To modify the 'node.tpl.php' of just that page, from your site root, go into modules/node and copy the 'node.tpl.php' and paste it into you theme folder in the site/all/theme/{your_theme} folder and name it using the file name that theme developer gave you. Modify the code as needed. Make sure when you start a *.tpl.php that you try to find one to copy from the modules/ folder in the root. These are more likely to not to cause problems. Using theme *.tpl.php files could cause issues. If you need more themeing help, www.lynda.com has a Drupal Themeing title that is very good. Also www.mustardseedmedia.com/podcast is also good. Hope that helps, Cory
Hi Cory G., I know how to build a theme :D However thanks. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
Bobák György ha scritto:
HI!
Have you a simple node.tpl.php file in the theme directory?
Yes, I have it, because I have some node-content_type.tpl.php file that works. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
HI! What is the VIEWNAME? VIEWNAME contain underscores? If yes, try to change the underscores to hyphens. Try to duplicate the hyphen after 'node-view' int he file name, like this: node-view--VIEWNAME.tpl.php I can only guess . George Bobak From: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] On Behalf Of Michel Morelli Sent: Thursday, July 01, 2010 9:22 AM To: A list for theme developers Subject: Re: [themes] How to know the path of a tpl.php file Bobák György ha scritto: HI! Have you a simple node.tpl.php file in the theme directory? Yes, I have it, because I have some node-content_type.tpl.php file that works. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
Bobák György ha scritto:
HI!
What is the VIEWNAME?
VIEWNAME is the name of the view. :D
VIEWNAME contain underscores? If yes, try to change the underscores to hyphens.
Try to duplicate the hyphen after 'node-view' int he file name, like this: node-view--VIEWNAME.tpl.php
I can only guess ...
I will try. Thanks. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
Not knowing what "VIEWNAME" is, I suggest you look at the actual $node (or $page if necessary) variable for that content and see what candidate template files are listed there. In my experience, sometimes the Theme Developer does not output non-letter characters (underscores and hyphens notably correctly always. On Wed, Jun 30, 2010 at 6:33 AM, Michel Morelli <michel@ziobuddalabs.it>wrote:
Progga ha scritto:
On Fri, Jun 18, 2010 at 11:52 AM, Michel Morelli <michel@ziobuddalabs.it> <michel@ziobuddalabs.it> wrote:
node-view-VIEWNAME.tpl.php that it is not considerated from template engine (Theme Developer give me this file like a possible template file, but is not used).
How can I know which is or where is (path) this template file ?
Have you looked into the "Theme: Information" section of the view?
Yes, I have rescan the theme directory but nothing: node-view-VIEWNAME is not considerated.
M.
-- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_buddahttp://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
_______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- Brian Choc Technology Director Teaming for Technology Colorado 2505 18th St. Denver, CO 80211 P: 303.561.2377, F: 303.455.6462 http://www.t4tcolorado.org
Just a question: Do you flushed the theme registry cache? G. -----Original Message----- From: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] On Behalf Of Michel Morelli Sent: Friday, June 18, 2010 12:52 PM To: themes@drupal.org Subject: [themes] How to know the path of a tpl.php file Hi all, with Theme Developer I can find that the content of one of my page (created from a view with Node output style) is build from "node.tpl.php" file (but no vars information are displayed like usal, and this is strange). Now I have a problem with this file in: in my template directory there is one node.tpl.php file, but is different at 100% from the output that I can see online and I have a file called node-view-VIEWNAME.tpl.php that it is not considerated from template engine (Theme Developer give me this file like a possible template file, but is not used). How can I know which is or where is (path) this template file ? Thanks in advance. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.net Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes __________ ESET Smart Security - Vmrusdefinmciss adatbazis: 5206 (20100618) __________ Az |zenetet az ESET Smart Security ellenurizte. http://www.eset.hu __________ ESET Smart Security - Vírusdefiníciós adatbázis: 5206 (20100618) __________ Az üzenetet az ESET Smart Security ellenorizte. http://www.eset.hu
Bobák György ha scritto:
Just a question: Do you flushed the theme registry cache?
Yes, more and more times. M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
participants (5)
-
Bobák György -
Brian Choc -
Cory Gilliam -
Michel Morelli -
Progga