Keyword

k2 frontend list & edit unpublish & publish items

  • Vlachos Evaggelos
  • Vlachos Evaggelos's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133854 by Vlachos Evaggelos
k2 frontend list & edit unpublish & publish items was created by Vlachos Evaggelos
Hi,
how can i see from the frontend user menu list of the my (unpublish and publish) items like Moderate comments to my published items link.
I want to my users have the ability to view items from frontend in list like backend.
Is this possible with same extra code?
What php files need modifications?

Thanks for your time.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133859 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 frontend list & edit unpublish & publish items
You can see your own unpublished items from your user page.
If you log in, then from this view (K2 user page - blog) you can see your unpublished items.

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

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

  • Vlachos Evaggelos
  • Vlachos Evaggelos's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133863 by Vlachos Evaggelos
Replied by Vlachos Evaggelos on topic k2 frontend list & edit unpublish & publish items
Native link in My Page have in end "&Itemid=160". This filter items and not see the latest items

imgur.com/xkLuRHT,uzlPDs2#1

If remove by hand the text from url "&Itemid=160" its all ok

imgur.com/xkLuRHT,uzlPDs2#0

How edit the native My Page link in module?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133868 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 frontend list & edit unpublish & publish items
This is the same view, the only difference is that it is rendered through a menu item.

Which version of K2 and Joomla! are you using?

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

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

  • Vlachos Evaggelos
  • Vlachos Evaggelos's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133879 by Vlachos Evaggelos
Replied by Vlachos Evaggelos on topic k2 frontend list & edit unpublish & publish items
Joomla 3.3.4
K2 2.6.7

Change modules/mod_k2_user/tmpl/userblock.php line 39

from

<a href="<?php echo JRoute::_(K2HelperRoute::getUserRoute($user->id)); ?>"><?php echo JText::_('K2_MY_PAGE'); ?></a>

to

<a href="<?php echo JRoute::_("index.php?option=com_k2&view=itemlist&task=user&id=$user->id"); ?>"><?php echo JText::_('K2_MY_PAGE'); ?></a>

and link is ok.

This is right solution?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133913 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 frontend list & edit unpublish & publish items
The link seems to be ok.
You need to override the module though so you won't lose your changes when you update K2.

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

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


Powered by Kunena Forum