Remove Details button from Default layout

  • Beckles
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago - 11 years 7 months ago #35187 by Beckles
Hi

I'd like to remove the Details button from the Plans view - I have no need for the website user to use this option.

Can you please explain how this is done - I would assume it is one of the php files that needs to be edited? Happy to do this, just need some directions.





Thanks

Beck
Attachments:
Last edit: 11 years 7 months ago by Beckles. Reason: added screenshot

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
11 years 7 months ago #35242 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove Details button from Default layout
Hi Beck

Open the file modules/mod_membershipplans/tmpl/default.php, find the code below and remove it :
Code:
<li> <a href="<?php echo $url; ?>"> <?php echo JText::_('OSM_DETAILS'); ?> </a> </li>

After that, the button will be removed !

Regards,

Tuan
The following user(s) said Thank You: Beckles

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

  • Beckles
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #35296 by Beckles
Replied by Beckles on topic Re: Remove Details button from Default layout
Perfect! Thank you!

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

  • Beckles
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #35299 by Beckles
Replied by Beckles on topic Re: Remove Details button from Default layout
Is there anyway to stop the Plan title from being hyperlinked as well?

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
11 years 7 months ago #35328 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove Details button from Default layout
In the same file, find the code below :
Code:
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>"> <?php echo $item->title; ?> </a>

Change it to :
Code:
<?php echo $item->title; ?>

After that, it will work as expected !

Regards,

Tuan

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