Closed (fixed)
Project:
Taxonews
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2009 at 18:25 UTC
Updated:
25 Jun 2009 at 05:50 UTC
Hello my friends
how to make block title linked to archive?
thanks and best regards
Comments
Comment #1
fgmHi,
I'm not sure I understand your question. If you want to have the title of a taxonews block be a A HREF like the "archive" link at the bottom of the block, there is just no direct way: Block titles in Drupal are typically not links, so this would break consistency and you can't do it in the block admin UI, and taxonews itself has no mechanism for this.
Since this would not be consistent with the rest of Drupal, I suggest you don't do this, and theme the "archive" link instead, to give it more visibility.
Does this answer your question ?
Comment #2
math_1048 commentedyes that exactly what Iam looking for;
thank you for your help,I just try using
_preprocess_block(&$vars)function in my theme
by adding the lines
while the variable $taxonews_block_title - carry the $tid form the theming function of the taxonews as a global variable
theme_taxonews_block_view()but its get success for just one block display of taxonews blocks - if more that one all blocks title will link to latest block link value :(
any suggestion
thank you
Comment #3
fgmThis might be because you don't differentiate on the block delta.
Comment #4
math_1048 commentedyes, you get right, and its works now :)
my modification on
_preprocess_block(&$vars)was:
and on
theme_taxonews_block_view()was:
thank you very much
best regards
Comment #5
fgmGlad it works.