friends,
I'm trying to include content in the front page of my site. I'm not using the custom_index - I'm just using the theme. I am however using the RiverDashboard which includes a post form.
In the front page I'd like to include new users, the dashboard and other content. Can anyone recommend how to tackle this? Should I a) work from the theme I have activated or should I work from a different place?
Still trying to understand how things come into place on Elgg, but loving and enjoying it. My php is still at the beginning stages but I'm up for the challenge. Any help is 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.
- Untamed@jazzer666
Untamed - 0 likes
You must log in to post replies.Hmm, perhaps you should start from the custom_index mod and modify that to your hearts content. Thus, you can use your customized index easily, including being able to one-click enable/disable it.
Here is the main file that is what your front page [aka index] is replaced with when enabling custom_index:
\mod\custom_index\views\default\canvas\layouts\new_index.php
I have edited this to include upcoming events, which works for me. If you want to include things like the dashboard... well, I just created a plugin for you [and anyone else who wants to use it] to show how widgets work and are displayed, etc etc.
It is extremely simple and all it does is add a link to the main menu as well as giving users another place to place widgets. Take a look through the code to get a better feel of how you can add widgets to any other mod, such as the custom_index mod.
Link to my plugin: http://community.elgg.org/pg/plugins/project/621377/developer/jazzer666/my-widget-board
I JUST made this, specifically for this topic. I hope it helps teach you how to make mods and how to use/display widgets.
Also, if you are using Windows, I suggest using Notepad++ for programming in PHP (or pretty much any other language). It is simple, quick, clean, and has nice PHP syntax-displaying features. Just google "Notepad++".
Good luck! If you have any other questions/problems, feel free to post.