• Cadastro
  • Fóruns
  • Manual
  • Projetos
  • Seminário
  • Tradução
  • Tutoriais
Início

Treinamento Drupal 31 de Janeiro em São Paulo

Pesquisa

Google

Itens ativos

  • Upload de imagens em massa
  • Treinamento Drupal
  • Foto do usuário no topo do blog
  • Tamanho do backup do banco de dados
  • Site fora do ar Personalizado
  • É possível fazer isso com o Drupal?
  • Erro de e-mails no Drupal Brasil
  • Formulario personalizado
  • Views e rss
  • Onde hospedar site com Drupal?
mais

Posts mais lidos hoje

  • Foto do usuário no topo do blog
  • Tutoriais
  • Treinamento Drupal
  • Manual
  • Como instalar e configurar o TinyMCE no Drupal
  • Site fora do ar Personalizado
  • Tutorial Para Iniciantes
  • Upload de imagens em massa
  • Desenvolvendo Portais com o CMS Drupal
  • Sobre o Drupal

Login do usuário

  • Criar uma conta
  • Recuperar senha

Parceiros

Assine o RSS do Drupal-BR

RSS dos itens mais ativos

RSS do conteúdo

RSS dos comentários

Início » Fórum » Suporte » Módulos

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?

‹ Juntar o "Image" no "TinyMCE" Atribuir papel a usuário por PHP ›
Enviado por a.luiz.n em 19/09/2008 - 17:06
  • Módulos
  • 6.x
  • Se logue ou se registre para poder enviar comentários
  • 206 leituras
Em 19/09/2008 - 17:45 haraldessert disse:

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

  • Se logue ou se registre para poder enviar comentários
Em 23/09/2008 - 16:35 a.luiz.n disse:

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

  • Se logue ou se registre para poder enviar comentários
Designimage

Este site é feito, orgulhosamente, com Drupal.