Skip to Content Skip to Menu

[SOLVED] Display different description for 'current' vs 'available' plans?

  • cpaschen
  • cpaschen
  • OFFLINE
  • Posts: 327
  • Thanks: 42
  • Karma: 9
6 years 11 months ago - 6 years 11 months ago #294502 by cpaschen
Is there any way to display a different (or even no) description for plans when they are 'current' (active) than the full description of a plan when it is 'available'?

We have lengthy descriptions of plans, but don't want to annoy our users with long descriptions of what they already have.

I tried searching the forum and the manual but can't really tell what to search for, so if it's in the manual, please just tell me what this feature would be called or where it might be found.

Thanks.
Last edit: 6 years 11 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68609
  • Thanks: 9109
  • Karma: 1434
6 years 11 months ago #294511 by krileon
Yup, that's doable. CBSubs provides a content prepare usage to condition content. You can enable content prepare usage for plan name and description under the presentation tab of your plan by setting "Prepare content using CMS Content plugins" to "Yes, prepare content with CMS content plugins". Next you can use the below to condition the description to long or short based off having an active subscription or not.

[cbsubs:if plan="PLAN_ID_HERE" status="A"]SHORT DESCRIPTION[cbsubs:else]LONG DESCRIPTION[/cbsubs:else][/cbsubs:if]

For more details of this usage see the description of the CBSubs Joomla system plugin within Extensions > Plugins.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • cpaschen
  • cpaschen
  • OFFLINE
  • Posts: 327
  • Thanks: 42
  • Karma: 9
6 years 11 months ago #294694 by cpaschen
Thanks that worked perfectly
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn