Replies: 5 comments
-
I would actually not recommend having two different sets of pages. Instead I would have one set, but include a different WordPress Template for rendering the results with if the url has "customers" in it. You should be able to do this with the In the callback use |
Beta Was this translation helpful? Give feedback.
-
Hi @Shelob9 , Nice solution to include a different template. But I think it would not pass down any HTTP headers? Excuse me for that complex sentence ;-) But that is really my problem. I do not use any Wordpress page. I use only the Pod Page content. |
Beta Was this translation helpful? Give feedback.
-
So why not do something similar, but return different page content using the |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you, I will try it tomorrow and place my findings here. |
Beta Was this translation helpful? Give feedback.
-
Awesome. Please let us know how it works out. Would make for a great code example or tutorial. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have build a custom api. With the following URL's:
However I have overridden one as follows:
You can already guessed it :-) Pods does not use /api/customers/* at all.
I have for example this request: /api/customers/121. Instead it requests /api//
I know you will add it to your todo list, but is there a small fix for it?
Edit: Pods version 2.5.1.1 (latest)
Also tested with Pods 2.4.3.
Beta Was this translation helpful? Give feedback.
All reactions