jDownloadsownloads.com


Author Topic: Possible to display Inquiry Form without site template?  (Read 39 times)

0 Members and 1 Guest are viewing this topic.

Offline sixdeuces

  • Newbie
  • *
  • Posts: 2
Hi, first, thanks very much for the great component. 3.9 is looking really solid and fixes a lot of the previous version's issues.

I have successfully set up my downloads to use the Inquiry Form. I'd like to open the form in a modal window, which I can do, but when it loads it's got the site template applied to it, with the full site header, menus, showcase, etc.

Is there a way to simply output the form on its own? I don't mind using a component override if needed. Or, if easier, can I specify which template gets applied? It's weird, as it's applying a template that isn't the default or the template used on the page where the download link is generated.

Thanks very much.

Offline sixdeuces

  • Newbie
  • *
  • Posts: 2
Re: Possible to display Inquiry Form without site template?
« Reply #1 on: 04.12.2019 17:54:30 »
For now I was able to get the result I was looking for by amending /controllers/download.php line 572 from
Code: [Select]
                $survey_url = JRoute::_($root_url.'index.php?option=com_jdownloads&view=survey&id='.$fileid.'&catid='.$catid.'&Itemid='.$itemid);

to

Code: [Select]
                $survey_url = JRoute::_($root_url.'index.php?option=com_jdownloads&view=survey&tmpl=component&id='.$fileid.'&catid='.$catid.'&Itemid='.$itemid);