Skip to content

Instantly share code, notes, and snippets.

@SantoshSrinivas79
Last active November 27, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SantoshSrinivas79/5d9a88b2c83a5a019455 to your computer and use it in GitHub Desktop.
Save SantoshSrinivas79/5d9a88b2c83a5a019455 to your computer and use it in GitHub Desktop.
Working on the Tobwis project

Working on the Tobwis project

Task 2: Related Toolkits

  • Create the database using latest data dump called tobwis_production_2015-10-05_8-04 PM.sql as stated in https://trello.com/c/miRexqN3/30-related-toolkits-8-8

  • Change to the database using use tobwis;

  • Add tobwis.mypad.in to the entries in core_sites table

  • Add the test users using the sql in project/tobwis-at-dev.sql using source /home/ghost/tempBucket/tobwis/tobwis-at-dev.sql;

  • Import the database in the mysql command using source /home/ghost/tempBucket/tobwis/tobwis_production_2015-10-05_8-04 PM.sql;

  • Don't forget to enable Toolkits module from the admin. This is deliverable from Mission #1.

  • Update the dummy title using a trigger

  • First add a dummy field to the database. Add a field call dummy_title of type Text to the toolkit page type.

  • Populate the database for existing records using the following query

UPDATE tobwis_pages_toolkit
SET tobwis_pages_toolkit.dummy_title = NULL

UPDATE tobwis_pages_toolkit
INNER JOIN tobwis_pages ON (tobwis_pages_toolkit.id = tobwis_pages.entry_id AND tobwis_pages.type_id=4)
SET tobwis_pages_toolkit.dummy_title = tobwis_pages.title
  • The update_page_fields event in /system/cms/modules/pages/events.php takes care of auto updating the fields every time the page gets created or updated.

Task 3: Home Module

Welcome Message

  • Create a messages stream.
    • Create a sample entry for the initial welcome message for the user
    • Included code in the dashboard view to show the WYSIWIG for the message

Featured Toolkits

Updates

  • Create the updates stream

  • Add Is Spotlight field to the updates stream

  • Make chris aware that the edit modal controller for the stream update has been put in to the news module. It is hacky!

  • The updates displayed are limited to 10 and are sorted by created date

  • The updates can be edited directly from the dashboard - DONE

    • TO DO: The confirmation alert doesn't show up for the edits to updates made from the modal. Need to fix!
  • Spotlight

    • Completed which update needs to be shown in the spotlight
      • Move all other updates to Spotlight is "No" when one update gets triggered - This has been done via an events hack on the streams events.php
  • Files Module Improvement

The files to be modified is: /system/cms/modules/files/controllers/files_front.php

Installing apache

sudo apt-get install apache2
sudo apt-get install libapache2-mod-rpaf

  • Call - 18-Nov-2015
      • Use bootstrap 4 (jquery 1.11)
    • Implementing the designs
    • Create a new theme
    • JS and CSS loaded in a user friendly way

##Theme Update

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment