Keyword

Blog-like items, based on author

  • Andreas
  • Andreas's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago - 10 years 3 months ago #129708 by Andreas
Blog-like items, based on author was created by Andreas
Hello all,

I have build Joomla websites before however I am fairly new to K2.

What I need to achieve is the following:

I want to have a menu item pointing to a page that will show a list of all my authors (of a specific category). I have achieved this through the K2 module>Author list. However I want to display a medium photo of each author along some specific details (i.e. Name, Education, Style, Achievements etc). Ideally this list will be alphabetically listed, with letter separators (i.e. A-Z).

Attachment not found



Then, when you select the author I want to display all the articles published by the specific author in a blog-style manner in a big left-mid section of the page and on the right show the Author's avatar with his/her details again as in the previous page's list.

Attachment not found



Attached is a blueprint on how I want these to appear.

Is there a way to achieve the above with K2 or will I need additional extensions?

Thank you very much, Andreas.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129709 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Blog-like items, based on author
Hello Andreas,

No additional extensions are needed.

All you need is some templating knowledge eg. HTML/CSS stuff.

For .1 you need to use the mod_k2_users module (and tweak its template).
For 2. This can be achieved by creating a menu towards a user's items (User Page, blog).

You need to either edit the template and have the user info display on the right, or publish another k2 user module in that menu item.

These posts will help you:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

nuevvo.com/blog/item/84-k2-inheritance-sub-templating

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

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

  • Andreas
  • Andreas's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago - 10 years 3 months ago #129710 by Andreas
Replied by Andreas on topic Re: Blog-like items, based on author
Hello Krikor,

Thank you very much for your suggestions. I will have a look at the links and see how to move forward.

For 1, why are you suggesting to use mod_k2_users instead of the k2_tools>Author list as I am currently using? Is there additional functionality on k2_users?

Could you please state which template files (is it the user.php or the item.php) should be edited to achieve point 2?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129711 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Blog-like items, based on author
Yes,

You can filter your users, which is essential for larger scale websites.
For point 2 you need to edit the user.php file. To locate this file you might need to read the links I sent you.

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

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

  • Andreas
  • Andreas's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #129712 by Andreas
Replied by Andreas on topic Re: Blog-like items, based on author
I have found the files Krikor, your links are really helpful.

Thank you for your help so far! :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129713 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Blog-like items, based on author
You 're welcome Andreas.

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

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

  • Andreas
  • Andreas's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago - 10 years 3 months ago #129714 by Andreas
Replied by Andreas on topic Re: Blog-like items, based on author
Hi again Krikor,

I am still having some troubles achieving this. Is CSS4K2 not applicable for Joomla v3.x? If not, the only way to apply CSS on subtemplates is through in-line css?

Additionally is there any list that I can get all the predifined parameters and the classes used in the php files by K2? E.g. $this->item->featured, K2_TAGGED_UNDER and class="itemAuthor" as well as the predifined functions e.g. JText, JHTML, K2HelperUtilities etc?


Andreas

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


Powered by Kunena Forum