WilleVaan

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

  • Beginning Developers

    Beginning Developers

    This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking

Activity

  • WilleVaan replied on the discussion topic Cutomizing the index page
    Thank you. Disabling the cache did the trick. Let's see how far I get from here :) view reply
  • WilleVaan replied on the discussion topic Cutomizing the index page
    1. Just to test customizing the index page I added the following line to custom_index/views/default/custom_index/content.php: echo elgg_view('tasks/sidebar', $vars); This worked. 2. Then I tried to create a new view for the task... view reply
  • WilleVaan added a new discussion topic Cutomizing the index page in the group Beginning Developers
    Hello! I'm trying to get into Elgg, but I have hard time getting a grasp of the syntax or finding the appropriate documentation. The tutorial page for customizing the index page is not the most verbose to say the least. :-) However, if you could...
    • 1. Just to test customizing the index page I added the following line to custom_index/views/default/custom_index/content.php:

      echo elgg_view('tasks/sidebar', $vars);

      This worked.

      2. Then I tried to create a new view for the task module. I created a new file 'hello.php' under tasks/views/default/tasks with content: (Tried also plain html)

      <?php
      echo '<h1>Hello, World!</h1>';
      ?>

      I tried calling this file with

      echo elgg_view('tasks/hello');

      in custom_index/views/default/custom_index/content.php

      But this doesn't seem to work.

      The next a little bit more ambitious task is to convert the tasks widget into a view that can be called on the index page.

    • First of all, you should create your own custom plugin and place all the changes there. You can extend and override existing features from there. Never edit code of Elgg core of third-part plugins directly. 

      Make sure to disable the caches from the admin panel while you develop new features. Most likely the view 'tasks/hello' is not working because it's not registered in the cache.

    • Thank you. Disabling the cache did the trick. Let's see how far I get from here :)