Keyword

Tag.php question about code to display the tag

  • Steven Johnson
  • Steven Johnson's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #114069 by Steven Johnson
Tag.php question about code to display the tag was created by Steven Johnson
Working on the tag.php page

I want to display the tag that page is using. Having a hard time explaining here are a couple of examples:

say a user clicked a tag labeled 'iPhone' and they are taken to the iPhone tag page.

how would I display the tag (iPhone) on the page?

I am sure there is a php code snipped to display this, just not sure what it is.


Thanks! -- Steven

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

  • Steven Johnson
  • Steven Johnson's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #114070 by Steven Johnson
Replied by Steven Johnson on topic Re: Tag.php question about code to display the tag
I found this code snippet
Displaying items by tag: definitions


Still looking for the code that will output just the tag text. EX:

definitions

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

  • Andrey Miasoedov
  • Andrey Miasoedov's Avatar
  • Offline
  • Senior Member
More
11 years 4 months ago #114071 by Andrey Miasoedov
Replied by Andrey Miasoedov on topic Re: Tag.php question about code to display the tag
Hello, Steven.

For display current tag on tag page you ca use the following code:
<?php echo JRequest::getVar("tag"); ?>

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

  • Steven Johnson
  • Steven Johnson's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #114072 by Steven Johnson
Replied by Steven Johnson on topic Re: Tag.php question about code to display the tag
Thanks so much!

Worked Great!

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


Powered by Kunena Forum