Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Return text instead of module .... posible?

Return text instead of module .... posible?

if
(
  $option == 'com_xxxxx'
  and
  JRequest::getVar("task") == 'cats'
  and
  JRequest::getVar("cat") == '44'
or
  JRequest::getVar("cid") == '99'
or
  JRequest::getVar("pid") == '99'

) return TEXT;


I would like to see text (where normally the return would show a module) in this case a name, is this possible.

Looking forward to your reply. smile

kitesurfer
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Return text instead of module .... posible?

Hi kitesurfer,

yes, that's easy to do: use an "echo" statement.

e.g.

if (options here...) {
  echo "Hello World!";
}

You don't need a return statement to do this.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10113
Newest User:
michael2066
Members Online:
1
Guests Online:
291

Online: 
michael2066

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked