Pesquisa
Itens ativos
Posts mais lidos hoje
Login do usuário
Assine o RSS do Drupal-BR
Hora e minutos no pathauto
Olá...
usei o pathauto para criar urls com a data e a hora. mas só consigo mostrar a data, usando: [yy][mm][dd]
mas eu queria colocar alem disso: [hora][min]
como posso fazer isso?
Enviado por a.luiz.n em 19/09/2008 - 17:06
- Se logue ou se registre para poder enviar comentários
- 206 leituras




Olá, André!!
No próprio pathauto existe a tabela dos argumentos que vc pode usar para gerar o alias para o endereço. A tabela é a seguinte:
[title]
The title of the node, with spaces and punctuation replaced by the separator.
[nid]
The id number of the node.
[user]
The name of the user who created the node.
[type]
The node type (e.g., "page", "story", etc.).
[yyyy]
The year the node was created.
[mm]
The two-digit month (01-12) the node was created.
[mon]
The three-letter month (jan-dec) the node was created.
[dd]
The two-digit day of the month (00-31) the node was created.
[day]
The three-letter day of the week (sun-sat) that the node was created.
[hour]
The two-digit hour (00-23) the node was created.
[min]
The two-digit minute (00-59) the node was created.
[sec]
The two-digit second (00-59) the node was created.
[week]
The week number (1-52) of the year the node was created.
[vocab]
The vocabulary that the page's first category belongs to.
[cat]
The name of the lowest-weight category that the page belongs to.
[catpath]
As [cat], but including its supercategories.
[catalias]
The alias for the lowest-weight category that the page belongs to. This is useful for long category names. You must first set up aliases for your categories.
[field_foto]
Foto
[field_palavras_chave]
Palavras-chave
[field_descricao]
Descrição
[field_info]
Informações técnicas
[menu]
The name of the menu the node belongs to.
[menupath]
The menu path (as reflected in the breadcrumb), not including Home or [menu].
Da mesma maneira como você fez usando [yy][mm][dd], vc faz com as outras variáveis.
Qualquer dúvida, posta de novo aqui!!
Abç,
Harald Wölfl Essert
http://www.harald.essert.nom.br
olá...obrigado pela resposta...mas aqui nao tem o argumento [hour] e nem [min]... eu tentei usar assim mesmo..mas ele mostra a mensagem de erro:
* You are using the token [hour] which is not valid within the scope of tokens where you are using it.
* You are using the token [min] which is not valid within the scope of tokens where you are using it.
e na url mostra [hour][min]...
eu uso o drupal 6.4 e o views 2.0 rc3
o q há de diferente?
os armumentos aqui sao:
[yyyy]
Node creation year (four digit)
[yy]
Node creation year (two digit)
[month]
Node creation month (full word)
[mon]
Node creation month (abbreviated)
[mm]
Node creation month (two digit, zero padded)
[m]
Node creation month (one or two digit)
[ww]
Node creation week (two digit)
[date]
Node creation date (day of month)
[day]
Node creation day (full word)
[ddd]
Node creation day (abbreviation)
[dd]
Node creation day (two digit, zero-padded)
[d]
Node creation day (one or two digit)
---------------------
André Luiz de Noronha