Skip to content

template or templates? #29

Open
Open

Description

@s22-tech

There are many lines in LiteCore like this:
app://frontend/templates/'.settings::get('template').'/partials/notices.inc.php')
that reference a templates folder, but there's only a template folder (singular) and no default template in lc_settings.

Which way is LC going with this? A single template folder or a templates folder where multiple templates can be placed?

Activity

  1. timint commented on Jul 11, 2026

    @timint
    Collaborator

    Thank you for pointing this out. LiteCart will go with 'app://frontend/templates/'.settings::get('template').'/partials/notices.inc.php' and LiteCore will do 'app://frontend/template/partials/notices.inc.php'. Inconsistencies comes from side by side comparison and copying of lines from LiteCart v3 to LiteCore.

    PR is welcome

  2. s22-tech commented on Jul 11, 2026

    @s22-tech
    ContributorAuthor
  3. timint commented on Jul 11, 2026

    @timint
    Collaborator

    LiteCore aims to be the naked core. not an identical copy that includes everything.

    How is that going to work, with LiteCore being the core of LiteCart, especially with add-ons that populate template folders?

    All addons will not be 100% compatible without some minor adjustment. What comes to templates I have been thinking if templates should be moved to vMod overrides rather than template folders in LiteCart. So they work similarily.

    How will paths be written so they work with either platform?

    As of now, do 'app://frontend/templates/'.settings::get('template').'/partials/notices.inc.php' in LiteCart and 'app://frontend/template/partials/notices.inc.php' in LiteCore. It's possible to add a path alias to vMod if this is a big issue.

  4. s22-tech commented on Jul 12, 2026

    @s22-tech
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions