hello everyone.
I'm not sure if this is correct place to post this, if not please move to appropriate group.
I'm on the mission to add icon/image upload ability to Pages plugin so it is displayed like it is on Groups plugin.
I searched community but nothing showed up. I looked at the Item Icon plugin (http://community.elgg.org/pg/plugins/project/384586/developer/dramirez/item-icon) but documentation is not very clear.
Has anyone ventured into this with success or can point me in the right direction or share any tips it would be greatly appreciated :)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cash@costelloc
Cash - 0 likes
- This Script Lover@elgglover
This Script Lover - 0 likes
- Cash@costelloc
Cash - 0 likes
- This Script Lover@elgglover
This Script Lover - 0 likes
- This Script Lover@elgglover
This Script Lover - 0 likes
- Cash@costelloc
Cash - 0 likes
- This Script Lover@elgglover
This Script Lover - 0 likes
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- ansheng@ansheng
ansheng - 0 likes
You must log in to post replies.I don't know what "so it is displayed like it is on Groups plugin" means.
hey Cash,
thanks for taking the time to help:)
What I mean is when creating a Page to have field to upload image to be used as that page's icon just like when creating a Group.
Than when viewing a list of pages for example, have that icon/image displayed next to the title just like on Groups listing. I will be using a code on frontpage to display "Recent" pages along with Blogs, Groups, Members, etc.
I will possibly add a large icon display on "full view" of the page again like on Groups but need to figure out how to add the icon upload function first :)
Thanks a lot.
I understand now. Do you know PHP?
I'm fairly good with PHP ( I do mostly copy&paste than hack :)
Have you given up on me? Please dont :)
You'll need to replace the form for creating a page and create a new one with the file upload (making sure to change the enctype of the form). You'll need to create a new action to accept the form. You'll need to override the icon hook for pages and return a URL to the icon.
Should I use Group code for reference to see how it works?
Thanks.
Yes, you can use the group code (1.7 and 1.8) as a reference or the profile plugin (in 1.7 series). As cash said, you need to add a field for icon upload, process the icon in the upload action and then register a icon for the entity type and use it for display.
have you solved this problem? If yes, can you psot the code or upload the plugin? tnx