- Posts: 3856
- Thank you received: 515
Obtain the title of the article that contains the form
- Demis [Fox-Labs]
-
Topic Author
- Offline
Less
More
05 Apr 2019 18:21 - 05 Apr 2019 22:36 #1
by Demis [Fox-Labs]
Obtain the title of the article that contains the form was created by Demis [Fox-Labs]
Page title or Article title?
By default, Fox Contact includes in the notification email the title of the page where the form is located, which usually corresponds to the title of the active menu item.
However, when the form is loaded within an article through a module loader (such as Joomla native Loadmodule plugin or Regular Labs Modules Anywhere), the title of the page can differ from the title of the current article.
The same applies to third party content managers, such as K2.
If you load the same Fox Contact module within several different articles, you may find useful to see the title of the article, rather than the title of the page.
In this case, all you have to do is download and install this plugin:
"Fox Contact Integration with module loaders"
"Provides better integration when loaded within articles through module loaders such as Joomla native Loadmodule plugin or Regular Labs Modules Anywhere"
Just install it. There's nothing else to configure.
Why it is necessary an additional plugin?
A Joomla module can not easily determine by itself whether it has been loaded in a standard module position or within an article through a module loader. And even in case it determines that it's living within an article, in no case the module can access any of the properties of the article itself, including the article's title.
Our plugin acts like a bridge between the form and the container article, passing the article's title to the form.
By default, Fox Contact includes in the notification email the title of the page where the form is located, which usually corresponds to the title of the active menu item.
However, when the form is loaded within an article through a module loader (such as Joomla native Loadmodule plugin or Regular Labs Modules Anywhere), the title of the page can differ from the title of the current article.
The same applies to third party content managers, such as K2.
If you load the same Fox Contact module within several different articles, you may find useful to see the title of the article, rather than the title of the page.
In this case, all you have to do is download and install this plugin:
"Fox Contact Integration with module loaders"
"Provides better integration when loaded within articles through module loaders such as Joomla native Loadmodule plugin or Regular Labs Modules Anywhere"
Just install it. There's nothing else to configure.
Why it is necessary an additional plugin?
A Joomla module can not easily determine by itself whether it has been loaded in a standard module position or within an article through a module loader. And even in case it determines that it's living within an article, in no case the module can access any of the properties of the article itself, including the article's title.
Our plugin acts like a bridge between the form and the container article, passing the article's title to the form.
This procedure applies to both Joomla articles and K2 articles. If you need to work with articles of any other extensions, please ask to our technical support.
Please Log in or Create an account to join the conversation.