NS Pro module shows on direct-link article pages
- Mary
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
1 year 8 months ago - 1 year 8 months ago #1
by Mary
NS Pro module shows on direct-link article pages was created by Mary
I am working on a script to directly retrieve article links from the Joomla database as a shortcut to assembling our newsletter before pasting it into NSPro to send. I want to use the "direct' link to an article, for example:
https://www.grantcountybeat.com/index.php?option=com_content&view=article&id=86062
When you click that link, you'll see the NSPro opt-in box showing at the top, even though we specify that it should only show on the home page. You'll also see banners, but we do have those set to appear on all pages, so clearly there's something in the opt-in box code that is not observing the instruction to only appear on the designated page.
Can you fix it so that this opt-in box doesn't appear on the directly-linked article pages?
https://www.grantcountybeat.com/index.php?option=com_content&view=article&id=86062
When you click that link, you'll see the NSPro opt-in box showing at the top, even though we specify that it should only show on the home page. You'll also see banners, but we do have those set to appear on all pages, so clearly there's something in the opt-in box code that is not observing the instruction to only appear on the designated page.
Can you fix it so that this opt-in box doesn't appear on the directly-linked article pages?
Last edit: 1 year 8 months ago by Mary.
Please Log in or Create an account to join the conversation.
- Christopher Mavros
-
- Offline
- Administrator
-
1 year 8 months ago #2
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic NS Pro module shows on direct-link article pages
Hello Mary and thank you for posting.
The appearance of a module depends solely on your configuration.
The article link you provided IS the home page, from Joomla's perspective. You manually set the content by writing option and the rest, but you have to specify an Itemid=123 parameter in the URL, to let Joomla know that this is not the home page, and thus the home page modules must not appear.
The simplest way to do this is to create a single menu item in a hidden menu (a menu without a module to show it) and link to that.
So, create the menu item, take its ID and add it to your URLs as &Itemid=123 where 123 is the ID. Then, you can control which modules appear in this page, like a normal menu item.
Of course, you can create as many menu items as you wish.
Hope this helps!
The appearance of a module depends solely on your configuration.
The article link you provided IS the home page, from Joomla's perspective. You manually set the content by writing option and the rest, but you have to specify an Itemid=123 parameter in the URL, to let Joomla know that this is not the home page, and thus the home page modules must not appear.
The simplest way to do this is to create a single menu item in a hidden menu (a menu without a module to show it) and link to that.
So, create the menu item, take its ID and add it to your URLs as &Itemid=123 where 123 is the ID. Then, you can control which modules appear in this page, like a normal menu item.
Of course, you can create as many menu items as you wish.
Hope this helps!
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Please Log in or Create an account to join the conversation.
- Mary
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
1 year 8 months ago #3
by Mary
Replied by Mary on topic NS Pro module shows on direct-link article pages
Hi Christopher, this does not help me. I'm not trying to attach an article to a menu item, I already know how to do that. What I'm talking about is creating a SQL query of com_content and generating a hyperlink for each article created since the last time I sent a newsletter from NSPro. Then my readers could click a link and see ONLY that article. The reason we're considering doing this is because manually adding an article at a time through the interface is too time-consuming on a daily basis.
We like having that NSPro opt-in box where it is because it has increased subscriptions. Is there any way to suppress that NSPro module (or any other module) when using a link as described here? I include the previous link for quick reference.
https://www.grantcountybeat.com/index.php?option=com_content&view=article&id=86062
We like having that NSPro opt-in box where it is because it has increased subscriptions. Is there any way to suppress that NSPro module (or any other module) when using a link as described here? I include the previous link for quick reference.
https://www.grantcountybeat.com/index.php?option=com_content&view=article&id=86062
Please Log in or Create an account to join the conversation.
- Christopher Mavros
-
- Offline
- Administrator
-
1 year 8 months ago #4
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic NS Pro module shows on direct-link article pages
I understand.
Please read through my instructions again and note that I'm not saying that you have to create a menu item for each article. You only have to create it once and attach its Itemid to your URL so that you can control the modules of that page.
I hope it makes more sense now.
Please read through my instructions again and note that I'm not saying that you have to create a menu item for each article. You only have to create it once and attach its Itemid to your URL so that you can control the modules of that page.
I hope it makes more sense now.
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Please Log in or Create an account to join the conversation.
- Mary
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
1 year 8 months ago #5
by Mary
Replied by Mary on topic NS Pro module shows on direct-link article pages
What you mean is as I loop through the retrieved records, I just need to use a variable to append each value to the end of the URL to create the link. Yes?
Please Log in or Create an account to join the conversation.
- Christopher Mavros
-
- Offline
- Administrator
-
1 year 8 months ago - 1 year 8 months ago #6
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic NS Pro module shows on direct-link article pages
When you create the direct link to the article, add a static Itemid value. The same one for all your articles.
https://www.grantcountybeat.com/index.php?option=com_content&view=article&id=86062&Itemid=123
Where 123 is a single menu item you make for this purpose.
This way you can control the modules you want to have in this direct link page.
https://www.grantcountybeat.com/index.php?option=com_content&view=article&id=86062&Itemid=123
Where 123 is a single menu item you make for this purpose.
This way you can control the modules you want to have in this direct link page.
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Last edit: 1 year 8 months ago by Christopher Mavros.
Please Log in or Create an account to join the conversation.
Moderators: Christopher Mavros