Schedule Content New Window

  • Howard Theriot
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 1 month ago #110056 by Howard Theriot
Schedule Content New Window was created by Howard Theriot
My scheduled content opens in a new window. I created the following override, but it has no affect. How can I fix this so scheduled content links do not open in a new window?

templates/my_template/html/com_osmembership/schedulecontent/default.php


Changed this…
Code:
<a href="<?php echo $articleLink ?>" target="_blank"><?php echo $item->title; ?></a>

to this…
Code:
<a href="<?php echo $articleLink ?>"><?php echo $item->title; ?></a>

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #110061 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Schedule Content New Window
The change looks good. I don't know who it doesn't have effect, please submit a support ticket sending us:

1. Super admin account
2. A subscriber account
3. Link to the page which we can see this content

We are going to check to see why it doesn't work and get it sorted for you

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Howard Theriot
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 1 month ago #110111 by Howard Theriot
Replied by Howard Theriot on topic Schedule Content New Window
I submitted the ticket.

Thanks,
Howard

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #110112 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Schedule Content New Window
Hi Howard

Since it is in profile, the correct file to modify code is plugins/system/schedulecontent/schedulecontent.php, method drawScheduleContent

Unfortunately, this could not be implemented using override (at least for the momen), so please modify, then make a backup of the file and re-install it each time you update Membership Pro

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #110113 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Schedule Content New Window
I decided to add a parameter to the plugin to allow you to update easier:

1. Install this updated version of the plugin (will be included in core package on next release)

2. Go to Extensions -> Plugins, find the plugin System - Membership Schedule Content, click on it to edit, set the parameter Open the article to On same window

It should work as expected

Regards,

Tuan
Attachments:

Please Log in or Create an account to join the conversation.

  • Howard Theriot
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 1 month ago #110115 by Howard Theriot
Replied by Howard Theriot on topic Schedule Content New Window
Perfect!

Thanks,
Howard

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #110863 by Chris Knudtson
Replied by Chris Knudtson on topic Schedule Content New Window
Any idea when the next core release is? I also need this functionality and don't want to have to update the plugin each time. Thx!

Please Log in or Create an account to join the conversation.