Skip to content

Redirect on Click of Control Card #1

@BOSS294

Description

@BOSS294

📝 To Do: Redirect on Click of Control Card

Description:

  • Implement functionality so that when a user clicks on a control card, they are redirected to the specific page related to that card.

Steps:

  1. Create the page that the control card will redirect to.
  2. Inside the Content folder, create an include file for the new page.
    • The include file should follow the naming convention: TWS-(FILE NAME FIRST LETTERS IN CAPITAL).
    • Example: If the page is for "Dashboard", the include file name should be TWS-D.
  3. Use the include in the newly created page.
  4. Add an event listener for the click action on each control card.
  5. Ensure each card has a unique URL associated with it (can be dynamically set or hardcoded).
  6. Use JavaScript to handle the redirection logic when the user clicks on a control card.
  7. Test to ensure the redirection works as expected.

Additional Notes:

  • Ensure the URL for the redirection is dynamically fetched or passed to the event listener based on the control card clicked.
  • Apply proper validation and error handling to ensure smooth redirection.
  • Keep consistent naming conventions and organization of files to maintain structure.

File is inside

Assets/Accounts/Contents

TWC-DCC.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requesttodo

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions