By Satya Komatineni on
I have about 2 days worth of experience on drupal.
what I want to do:
if I hit a url like this
http://mydrupalsite.com/getfield/node/57/field_x
Then I want this URL to return the actual value of "field_x" of node "57".
Is there a way to do this natively in drupal?
is there a module that can do this?
do I need to write a menu hook and theme hook to retrieve the node part and return?
Your help is so much appreciated
Comments
This is some kind of API
This is some kind of API thing!
You can use Views and a theme you create that has no header, sidebars, etc and then use that theme for those special URLs .
Also, give a try to Views Bonus module that support CSV output format.
There is a modu7le called Services that handle API calls. If you are ready for that, use Services module.
What's new and changing in PHP 8.4