Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ContentHandlers for Articles not for Pages
#5
(03-24-2023, 07:15 PM)DanBarclay Wrote:
(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

It is important to me what ID/Key of detail article read from adress bar of web browser?
Reply


Messages In This Thread
RE: ContentHandlers for Articles not for Pages - by matija - 03-27-2023, 06:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)