Anyone else just not get this thing to work.
In the exact place on a chunk where I used to have [pagetitle] I know have [[GetField? &docid=`48` &field=`pagetitle`]]
assumeing the id is the same as the page I’m on shouldn’t at least that much work?
-
☆ A M B ☆
- 24,524 Posts
Works for me...are you sure the name of the snippet is GetField, not getField or some other spelling? And that 48 is the correct ID of the document you want?
[[GetField? &docid=`5` &field=`pagetitle`]]
Did you install it correctly, with the getfield.inc.php file in the assets/snippets/getfield/ folder?
That’s a great tool.
I would like to use the pagetitle instead of the pageID so that the same code can work on different installations where the resource structure is not the same.
Is there a way to retrieve the ID of a given page title?
That worked.
Thanks a million.
Hi
Potentially very useful snippet. However, I have a problem. I want to get the title of an unpublished parent page (ie: I’m using the parent purely as a container - it shouldn’t be published as a page). This doesn’t work - it only works when the container is published. Is this a bug or should I do this a different way?
All the best
Nick