0

I am using Drealty module in Drupal 7. I have created custom url for properties.

I am getting path using;

<a href="<?php print drupal_get_path_alias("drealty_listing/$id"); ?>"><?php print t('More Detail'); ?></a>

This code is not working for me properly. For some properties it gives page not found but Property exists.

0

Using the url() function should give you what you need:

<a href="<?php print url("drealty_listing/$id"); ?>"><?php print t('More Detail'); ?></a>

The url will be converted automatically to the alias.

  • Its working as well my code that I mention above.. still getting same issue for some listings. – jsh Sep 29 '15 at 7:25
  • Do you have a link to the pages with the problem? – i.bajrai Sep 29 '15 at 23:28
  • Yes I have a link. – jsh Sep 30 '15 at 7:00
  • I mean a link to where you are having the problem to clarify what the issue is? – i.bajrai Sep 30 '15 at 22:59
  • Issue is link is showing page not found. But when i click on edit . Property is available. – jsh Oct 1 '15 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.