Keyword

[SOLVED] Author in Tag Listings

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #112866 by Tom
[SOLVED] Author in Tag Listings was created by Tom
Hi there,

Have found several threads requesting the same thing, but none seem to have an answer.

Basically, I would like to be able to add the author (linked) to items listed under a particular tag.

The usual php approaches don't seem to work this time.

Any help greatly appreciated.

Thanks, Tom.

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
10 years 11 months ago #112867 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Author in Tag Listings
Can you explain an example for what you want to do?

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #112868 by Tom
Replied by Tom on topic Re: Author in Tag Listings
Hi Mohamed,

Thanks for coming back to me.

In short. I am working on a news site that has several titles listed (individually) as categories.

Each category has a subsequent "tag" which is the issue number of that particular title.

Therefore, when someone clicks through the "tag" they see all items from that issue.

The problem is that items have different authors which for some reason, are unable to be displayed in the tag listing layout.

I have tried inserting various bits of PHP into the tag layout file, but this doesn't work. There seems to be several topics on this, but not a concrete answer.

Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #112869 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Author in Tag Listings
Have you tried
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #112870 by Tom
Replied by Tom on topic Re: Author in Tag Listings
Hi Krikor,

No joy - unfortunately.

Just seems a bit odd that it isn't an option in the tag listing settings.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #112871 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Author in Tag Listings
Sorry about my late reply

For the author name this should do the trick
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #112872 by Tom
Replied by Tom on topic Re: Author in Tag Listings
Hi Krikor,

Many thanks for this - think this has got me 75% of the way!

Is there anything extra that could be inserted to make the authors linked?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #112873 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Author in Tag Listings
You can use the var_dump() command to see all the elements of the object.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #112874 by Tom
Replied by Tom on topic Re: Author in Tag Listings
Hi Krikor,

Thank you for your response.

I'm afraid the above exposes my lack of knowledge with regards to PHP...

Not quite sure how to proceed - I just want the author names to be linked, such as with other layouts (category item etc.)

Also having trouble getting the Author into the search results page. I am using the k2 filter and search module, so am editing filter.php as opposed to generic.php - it's the right file, but none of the author approaches have worked thus far.

Again, many thanks in advance for any assistance.

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

  • Tom
  • Tom's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #112875 by Tom
Replied by Tom on topic Re: Author in Tag Listings
To partly answer my own secondary question - the code Krikor has provided works on the filter.php in the same way as tag listings.

Just need to get the links functioning and I'll be a happy chappy.

Thanks!

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