By Nnet on
Hello, I have one problem with block.
I want show block only on pages with story with taxonomy name: "Animatorska setkani".
But I am dont know how :( I am try everything but nothing work.
Content type: Calendar
Content taxonomy:
name: Typ akce
Therms: Animatorska setkani; skolni rok; Prazdniny
$taxArray=taxonomy_node_get_terms;
if ($taxArray[1]->name == "Animatorska setkani")
{
return TRUE;
}
else {
return FALSE;
}
What is wrong here? :(
I am try use modul Devel, its write me "Taxonomy name: Animatorska setkan"i but when i try use it in code nothing happend.
Pls. help me
Comments
go to properties of that
go to properties of that block, and you will see the text area in bottom,
there you can decide where the block will be shown
examples:
admin* = all admin sites will or will not be shown
story/* = all story type pages will or will not be shown
you can manage story/id or any other name with pathauto, and token you can make settings for any content type, and with that you'll be in able to put specific blocks anywhere. even on specific categories
example
in autopath settings you can put
[node-type]/[nid]/[tid]/[title-raw]
which gives story/node id of the node/id of category, e.g. Hello category/this is title
and in block settings you can put
story/*/5/*
that will show you / hide you block only on nodes "story" who have / do not have category 5 (which will be the named taxonomy e.g. FRUITS (id5) etc..
Dont work fine
Hello , thank for answer but it dowsn work...
adres:
http://myweb.com/node/13
http://myweb.com/node/17
http://myweb.com/node/11
This all is in Content type: Calendar.
And taxonomy tem:
Content taxonomy:
name: Type
Therm: Term1 (id 2)
Now say me what I must write there....
I try Calendar/*/2/* but nothing happend :(
thats why you didnt
thats why you didnt understood me correctly, i said that you have to install pathauto and token in order to generate
calender/termID/nodeID/title
and those node/number must be edited - saved in order to apply pathauto settings, or just when saving pathauto settings check the "Bulk generate aliases for nodes that are not aliased checkbox" you can find settings at : http://www.example.com/admin/build/path/pathauto
It is amazingly !! Thank you!
It is amazingly !! Thank you! That is SUPER ;) Thx Work fine really fine