Passing GUID in querystring
-
Do I need to use the premium version of the plugin to be able to pass a GUID from a list of records to a detail page?
I was reading previous forum posts and I feel like it’s possible, but when I try it, I just get a blank page back.
My FetchXML is correct — since it runs in FetxhXML Builder just fine — but even hard coding the GUID in the condition returns no results.
This is all of my Twig and HTML:
{% set projectid = request.params['id'] %} {% fetchxml collection="project" %} <fetch mapping="logical" returntotalrecordcount="true"> <entity name="jcma_project"> <attribute name="jcma_projectid" /> <attribute name="jcma_name" /> <attribute name="jcma_difficulty" /> <attribute name="jcma_projectdescription" /> <attribute name="jcma_requiredpreferredskills" /> <attribute name="jcma_city" /> <attribute name="jcma_stateprovince" /> <filter type="and"> <condition attribute="jcma_projectid" operator="eq" value="{{ projectid }}" /> </filter> </entity> </fetch> {% endfetchxml %} {% for projectdetail in project.entities.results %} <div> <h1>{{ projectdetail["jcma_name"] }}</h1><br> <i>{{ projectdetail["jcma_city"] }}, {{ projectdetail | formatted_value(["jcma_stateprovince"]) }}</i> </div> <div> <h3>Description</h3><br> <p>{{ projectdetail["jcma_projectdescription"] }}</p> </div> <div> <h3>Required or Preferred Skills</h3><br> <p>{{ projectdetail["jcma_requiredpreferredskills"] }}</p> </div> {% endfor %}
Any assistance would be appreciated.
Joe
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Passing GUID in querystring’ is closed to new replies.