I want a block to be visible in some view pages (which is easy) AND in some content types (which could be easy using PHP); but how could I do the two thing?
thanks
I want a block to be visible in some view pages (which is easy) AND in some content types (which could be easy using PHP); but how could I do the two thing?
When you write PHP to determine the content type, check the URL also to see if it's a view and if it's a view you want to include, so add that logic to your PHP.
HTH
F
Lluís ha scritto:
I want a block to be visible in some view pages (which is easy) AND in some content types (which could be easy using PHP); but how could I do the two thing?
thanks
You can use path for views and node-type page, so you don't need to use PHP. You only need to configure when display the block.
M.
by node-type page do you mean node-mytype.tpl.php?
On Tue, Sep 22, 2009 at 4:04 PM, Michel Morelli michel@ziobuddalabs.it wrote:
Lluís ha scritto:
I want a block to be visible in some view pages (which is easy) AND in some content types (which could be easy using PHP); but how could I do the two thing?
thanks
You can use path for views and node-type page, so you don't need to use PHP. You only need to configure when display the block.
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
-- [ Drupal support list | http://lists.drupal.org/ ]
Lluís ha scritto:
by node-type page do you mean node-mytype.tpl.php?
no, via pathauto module you can set that your_content_type's node have path XYZ/[title] Now set for the views the same path (XYZ) and in the "Page specific visibility settings" of block's configuration page choice "Show on only the listed pages" and write "XYZ/*"
M.
This is exactly what the Context module excels at. I strongly recommend checking it out as what you are trying to do is just a few clicks with it.
-Mike __________________ Michael Prasuhn 503.512.0822 office 503.539.3864 cell 503.661.7574 home mike@mikeyp.net http://mikeyp.net
On Sep 22, 2009, at 3:02 AM, Lluís wrote:
I want a block to be visible in some view pages (which is easy) AND in some content types (which could be easy using PHP); but how could I do the two thing?
thanks
-- *La vida és com una taronja, què esperes a exprimir-la? *Si creus que l'educació és cara, prova la ignorància. *La vida és com una moneda, la pots gastar en el que vulguis però només una vegada.
*Abans d'imprimir aquest missatge, pensa en el medi ambient.
[ Drupal support list | http://lists.drupal.org/ ]
On Tue, Sep 22, 2009 at 7:37 PM, Michael Prasuhn mike@mikeyp.net wrote:
This is exactly what the Context module excels at. I strongly recommend checking it out as what you are trying to do is just a few clicks with it.
Nothing versus Context module or the Michael's solution, but if my memory does not wrong, more modules do you install and more slowly your site will be. Or better: don't install another modules if you can do the same thing with the installed modules.
M.
ok, thanks.
I suppose I will need to use PHP to set block visibility
On Sat, Sep 26, 2009 at 8:51 PM, Michel Morelli michel@ziobuddalabs.it wrote:
On Tue, Sep 22, 2009 at 7:37 PM, Michael Prasuhn mike@mikeyp.net wrote:
This is exactly what the Context module excels at. I strongly recommend checking it out as what you are trying to do is just a few clicks with it.
Nothing versus Context module or the Michael's solution, but if my memory does not wrong, more modules do you install and more slowly your site will be. Or better: don't install another modules if you can do the same thing with the installed modules.
M.
-- Michel Morelli michel@ziobuddalabs.it Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: +39 393 9890025 -- Fax: +39-0291390660
-- [ Drupal support list | http://lists.drupal.org/ ]
how can i know how many times somebody click in the node, fot obtain the "#### readings" for each node??
thks in advanced
Hi
You can enable the core Statistics module and check its possibilities. If you need some advanced statistics, check Statistics Advanced modul (http://drupal.org/project/statistics_advanced).
Cheers
Ramon
2009/9/29 Aldo Martinez Selleras aldo@caonao.cu:
how can i know how many times somebody click in the node, fot obtain the "#### readings" for each node??
thks in advanced
[ Drupal support list | http://lists.drupal.org/ ]