Detectar entidad por url
Saludos compañeros y de antemano gracias por la ayuda.
Con la función arg() puedo hacer ciertas consideraciones sobre las rutas en drupal y hasta determinar el tipo de entidad.
¿Drupal tiene alguna función que al ingresar la url detecte de forma directa el tipo de entidad?
Gracias
Read moreEnkla Short-URLs
Jag undrar ifall någon kan hjälpa mig med följande scenario. Jag vill något som skulle kunna kallas för Short URL på alla mina sidor.
T.ex. så har http://www.allatalarsvenska.se/tv/tva-panka-tjejer/and-the-break-up-scene en Short URL som är http://www.allatalarsvenska.se/7340 vilket i grund och botten bara är baseurl + nod-id:t och som i min Drupal 6-version är en URL Redirect.
Read moreCambiar la url de sitio local
mi sitio lo tengo hosteado en mi servidor local , pero esta de la siguiente manera la url
ubuntuserver.dominio/mi_sitio
y quiero cambiarlo para
www.misitio.dominio o
misitio.dominio
Read moreRest Service path
Hi,
I have been playing with the Services module for a couple of days. According to REST API best practices, the GET URL paths I want to use are:
/buildings
/buildings/4
/buildings/4/rooms
/buildings/4/rooms/5
'Building' and 'room' are both content types, and '4' and '5', the node-ids.
Using the Services module, I can create the following calls:
/node/type=building
/node/4
And with the Services Views module, I can customise the path a little more:
/buildings
But the only way to get a specific building is by:
/buildings?nid=4
Translated nodes don't
I have come across something strange that I am hoping this group knows how to fix. I have path alias enabled on my site which creates unique paths depending on the type of node and fields selected.
So the URL for one of my nodes would look something like this: http://www.sitename.com/europe/listing/united-kingdom/food-drinks/1869/defectors-weld-london
That would be the English page, and if I had a translated version of that node, it would look like this:
http://www.sitename.com/zh-hant/europe/listing/united-kingdom/food-drinks/1880/defectors-weld-london
Feed URL
Hi
I'd like to have my department site follow the news on my project and personal sites.
1) What are the URL's to the feeds of OpenScholar sites?
2) How do I control the timing of the reader's updates (is there a "check now?" button)
3) How do I control what information comes through the feed (News and Event updates but not changes to Bio).
Coger datos de la url para iniciar sesión
Pues eso, necesito iniciar sesión en drupal a través de un servicio externo.
Tengo un formulario de login que al iniciar sesión genera una url (esto tiene que ser así, esa url la devuelve otra web que comprueba las credenciales), y en esa url están el correo y la contraseña, con los que debo iniciar sesión en drupal.
Alguna idea?
He visto algún módulo como http://drupal.org/project/urllogin, pero aún no lo he probado y no puedo permitirme ir dando palos de ciego...
Muchas gracias de antemano!
Read moreD7, Bartik - how to swap logo and main header colour depending on URL or path?
Hi all
Does anyone know if there's an easy way (or even just a way!) of changing the logo and main header colour depending on the URL/path (I'm using the Bartik theme for D7)? For example on http://www.cerebraluk.com/ I would like it for instance to change to a different logo and green main header when I click on 'market research services'. Similarly, it would change to other different logos/colour headings when clicking on other main navigation areas.
Any help or advice would be greatly appreciated.
Thank you
Stephen
Read moreLink de menú apunte al último nodo de un cierto Type
Les comparto esta pequeña función que escribí para poder hacer que el link de un elemento del menú (en general cualquier link) cargue el último nodo de un cierto tipo.
Esto por ejemplo cuando no tienen una vista que muestre todos los nodos de un tipo X y quieren que el link del menú que debe cargar todos esos nodos unicamente cargue el último nodo.
Una buena solución es usar una Page de Views que cargue únicamente el último nodo, pero si no se quiere utilizar Views y que el link enlace directo al node, esta función podría ayudar a algunos.
/**
Följa upp gamla URL:er
Tjipp och välkomna till ....
Jag står inför en migrering av en gammal webbplats med ~5000 noder som har importerats in i Drupal och därmed kommer att få snygga fina URL:er medelst Pathauto och andra liknande moduler. Dock hade jag ju på något snyggt sätt fått med det gamla ID:t och på så sätt slussa folk från de gamla URL:erna av typen http://skrattnet.se/kategorier/skamt.php?cat=14&sub=59&id=516 till de nya URL:erna av typen http://skrattnet.se/text/principer-for-de-som-alltid-skjuter-pa-saker-oc...
Read more

