Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ContentHandlers for Articles not for Pages
#4
(03-23-2023, 12:49 PM)matija Wrote: How can we implement show in one form my details articles?

I know an example from the pages!

THandlers.AddRootHandler('', '/', FormHandler)
with THandlers.Add('', '1', TContentForm.Create(TShopForm)) do
  begin
    CanStartSession := true;
    RequiresSessionStart := false;
 end;

Example:
http://localhost/shop/1 -> Details for article 1
http://localhost/shop/2 -> Details for article 2
http://localhost/shop/3 -> Details for article 3

Is there any demo?

If I recall, the ContentHandler demo does exactly what you may be asking about.  It returns xml (html) to the sender as a response, after doing whatever else it was going to do.   Check it out; send a page to be rendered instead of what's in the demo.

Dan
Reply


Messages In This Thread
RE: ContentHandlers for Articles not for Pages - by DanBarclay - 03-24-2023, 07:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)